Index: chrome/browser/safe_browsing/protocol_manager_unittest.cc |
=================================================================== |
--- chrome/browser/safe_browsing/protocol_manager_unittest.cc (revision 66642) |
+++ chrome/browser/safe_browsing/protocol_manager_unittest.cc (working copy) |
@@ -220,6 +220,17 @@ |
false, SafeBrowsingService::URL_PHISHING).spec()); |
} |
+TEST_F(SafeBrowsingProtocolManagerTest, TestMalwareClientUrl) { |
+ SafeBrowsingProtocolManager pm(NULL, kClient, kClientKey, kWrappedKey, NULL, |
+ kInfoUrlPrefix, kMacKeyUrlPrefix, false); |
+ |
+ pm.version_ = kAppVer; |
+ pm.set_additional_query(kAdditionalQuery); // AdditionalQuery is not used. |
+ EXPECT_EQ("https://key.prefix.com/bar/clientreport/malware?" |
+ "client=unittest&appver=1.0&pver=1.0", |
+ pm.MalwareClientReportUrl().spec()); |
+} |
+ |
TEST_F(SafeBrowsingProtocolManagerTest, TestMacKeyUrl) { |
SafeBrowsingProtocolManager pm(NULL, kClient, kClientKey, kWrappedKey, NULL, |
kInfoUrlPrefix, kMacKeyUrlPrefix, false); |