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

Unified Diff: net/cookies/cookie_monster_perftest.cc

Issue 2930893002: Change all "google.com" references in net/cookies to "foo.com" to avoid repeatedly tripping ov… (Closed)
Patch Set: Final pass through to pick up some missed google references. Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/cookies/cookie_monster_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cookies/cookie_monster_perftest.cc
diff --git a/net/cookies/cookie_monster_perftest.cc b/net/cookies/cookie_monster_perftest.cc
index eb9ce7b94354069144974013dbabce58e7f8fa64..ff9513369bd3d91763385ae3177e0b2314adce32 100644
--- a/net/cookies/cookie_monster_perftest.cc
+++ b/net/cookies/cookie_monster_perftest.cc
@@ -25,7 +25,7 @@ namespace {
const int kNumCookies = 20000;
const char kCookieLine[] = "A = \"b=;\\\"\" ;secure;;;";
-const char kGoogleURL[] = "http://www.google.izzle";
+const char kGoogleURL[] = "http://www.foo.com";
int CountInString(const std::string& str, char c) {
return std::count(str.begin(), str.end(), c);
@@ -305,7 +305,7 @@ TEST_F(CookieMonsterTest, TestImport) {
std::unique_ptr<CookieMonster> cm(new CookieMonster(store.get(), nullptr));
// Import will happen on first access.
- GURL gurl("www.google.com");
+ GURL gurl("www.foo.com");
CookieOptions options;
base::PerfTimeLogger timer("Cookie_monster_import_from_store");
getCookiesCallback.GetCookies(cm.get(), gurl);
@@ -319,7 +319,7 @@ TEST_F(CookieMonsterTest, TestGetKey) {
std::unique_ptr<CookieMonster> cm(new CookieMonster(nullptr, nullptr));
base::PerfTimeLogger timer("Cookie_monster_get_key");
for (int i = 0; i < kNumCookies; i++)
- cm->GetKey("www.google.com");
+ cm->GetKey("www.foo.com");
timer.Done();
}
@@ -376,7 +376,7 @@ TEST_F(CookieMonsterTest, TestGCTimes) {
test_case.num_cookies, test_case.num_old_cookies, 0, 0,
CookieMonster::kSafeFromGlobalPurgeDays * 2);
- GURL gurl("http://google.com");
+ GURL gurl("http://foo.com");
std::string cookie_line("z=3");
// Trigger the Garbage collection we're allowed.
setCookieCallback.SetCookie(cm.get(), gurl, cookie_line);
« no previous file with comments | « no previous file | net/cookies/cookie_monster_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698