Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(574)

Unified Diff: chrome/browser/safe_browsing/safe_browsing_util_unittest.cc

Issue 1399843003: Move prefix_set and parts of s_b_util into a new component safe_browsing_db. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use group instead of a static_library for targets that have no sources. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_util.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/safe_browsing_util_unittest.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_util_unittest.cc b/chrome/browser/safe_browsing/safe_browsing_util_unittest.cc
index 62056f68592469af0cba6411ef588437429c68d1..3c875bb93adda6e8646968743c35f375faf96ed2 100644
--- a/chrome/browser/safe_browsing/safe_browsing_util_unittest.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_util_unittest.cc
@@ -320,20 +320,4 @@ TEST(SafeBrowsingUtilTest, StringToSBFullHashAndSBFullHashToString) {
EXPECT_EQ(hash_in, hash_final);
}
-TEST(SafeBrowsingUtilTest, FullHashOperators) {
- const SBFullHash kHash1 = SBFullHashForString("one");
- const SBFullHash kHash2 = SBFullHashForString("two");
-
- EXPECT_TRUE(SBFullHashEqual(kHash1, kHash1));
- EXPECT_TRUE(SBFullHashEqual(kHash2, kHash2));
- EXPECT_FALSE(SBFullHashEqual(kHash1, kHash2));
- EXPECT_FALSE(SBFullHashEqual(kHash2, kHash1));
-
- EXPECT_FALSE(SBFullHashLess(kHash1, kHash2));
- EXPECT_TRUE(SBFullHashLess(kHash2, kHash1));
-
- EXPECT_FALSE(SBFullHashLess(kHash1, kHash1));
- EXPECT_FALSE(SBFullHashLess(kHash2, kHash2));
-}
-
} // namespace
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_util.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698