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

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

Issue 2960: Enable safe browsing tests exercising VerifyMAC.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 12 years, 3 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
Index: chrome/browser/safe_browsing/protocol_parser_unittest.cc
===================================================================
--- chrome/browser/safe_browsing/protocol_parser_unittest.cc (revision 2357)
+++ chrome/browser/safe_browsing/protocol_parser_unittest.cc (working copy)
@@ -455,8 +455,6 @@
EXPECT_EQ(full_hashes[2].list_name, "goog-malware-shavar");
}
-// TODO(port): Enable when we have ported VerifyMAC in safe_browsing_util.cc.
-#if defined(OS_WIN)
TEST(SafeBrowsingProtocolParsingTest, TestGetHashWithMac) {
const unsigned char get_hash[] = {
0x32, 0x56, 0x74, 0x6f, 0x6b, 0x36, 0x64, 0x41,
@@ -492,9 +490,7 @@
EXPECT_EQ(full_hashes.size(), static_cast<size_t>(1));
EXPECT_EQ(memcmp(hash_result, &full_hashes[0].hash, sizeof(SBFullHash)), 0);
}
-#endif // defined(OS_WIN)
-
TEST(SafeBrowsingProtocolParsingTest, TestFormatHash) {
SafeBrowsingProtocolParser parser;
std::vector<SBPrefix> prefixes;
@@ -555,8 +551,6 @@
EXPECT_TRUE(reset);
}
-// TODO(port): Enable when we have ported VerifyMAC in safe_browsing_util.cc.
-#if defined(OS_WIN)
TEST(SafeBrowsingProtocolParsingTest, TestVerifyUpdateMac) {
SafeBrowsingProtocolParser parser;
@@ -615,4 +609,3 @@
safe_browsing_util::FreeChunks(&chunks);
}
-#endif // defined(OS_WIN)

Powered by Google App Engine
This is Rietveld 408576698