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

Side by Side Diff: chrome/browser/safe_browsing/ping_manager_unittest.cc

Issue 15906011: Use a direct include of strings headers in chrome/browser/r*-s*/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 5
6 #include "base/logging.h" 6 #include "base/logging.h"
7 #include "base/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "base/time.h" 8 #include "base/time.h"
9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "chrome/browser/safe_browsing/ping_manager.h" 9 #include "chrome/browser/safe_browsing/ping_manager.h"
11 #include "google_apis/google_api_keys.h" 10 #include "google_apis/google_api_keys.h"
12 #include "net/base/escape.h" 11 #include "net/base/escape.h"
12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 using base::Time; 14 using base::Time;
15 using base::TimeDelta; 15 using base::TimeDelta;
16 16
17 static const char kUrlPrefix[] = "https://prefix.com/foo"; 17 static const char kUrlPrefix[] = "https://prefix.com/foo";
18 static const char kClient[] = "unittest"; 18 static const char kClient[] = "unittest";
19 static const char kAppVer[] = "1.0"; 19 static const char kAppVer[] = "1.0";
20 20
21 class SafeBrowsingPingManagerTest : public testing::Test { 21 class SafeBrowsingPingManagerTest : public testing::Test {
22 protected: 22 protected:
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 SafeBrowsingProtocolConfig config; 93 SafeBrowsingProtocolConfig config;
94 config.client_name = kClient; 94 config.client_name = kClient;
95 config.url_prefix = kUrlPrefix; 95 config.url_prefix = kUrlPrefix;
96 SafeBrowsingPingManager pm(NULL, config); 96 SafeBrowsingPingManager pm(NULL, config);
97 97
98 pm.version_ = kAppVer; 98 pm.version_ = kAppVer;
99 EXPECT_EQ("https://prefix.com/foo/clientreport/malware?" 99 EXPECT_EQ("https://prefix.com/foo/clientreport/malware?"
100 "client=unittest&appver=1.0&pver=1.0" + key_param_, 100 "client=unittest&appver=1.0&pver=1.0" + key_param_,
101 pm.MalwareDetailsUrl().spec()); 101 pm.MalwareDetailsUrl().spec());
102 } 102 }
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/ping_manager.cc ('k') | chrome/browser/safe_browsing/protocol_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698