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

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

Issue 4822002: Send malware reports when a user opts-in from the safe browsing interstitial ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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_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);

Powered by Google App Engine
This is Rietveld 408576698