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

Unified Diff: components/precache/core/precache_fetcher_unittest.cc

Issue 818103002: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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: components/precache/core/precache_fetcher_unittest.cc
diff --git a/components/precache/core/precache_fetcher_unittest.cc b/components/precache/core/precache_fetcher_unittest.cc
index 999e51c849c0d5be519dd90d1070b125873a0623..7788443f925d455f1b5a51a0e6778bde53d7f50d 100644
--- a/components/precache/core/precache_fetcher_unittest.cc
+++ b/components/precache/core/precache_fetcher_unittest.cc
@@ -102,9 +102,9 @@ const char kForcedStartingURLManifestURL[] =
"http%253A%252F%252Fforced-starting-url.com%252F";
TEST_F(PrecacheFetcherTest, FullPrecache) {
- CommandLine::ForCurrentProcess()->AppendSwitchASCII(
+ base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
switches::kPrecacheConfigSettingsURL, kConfigURL);
- CommandLine::ForCurrentProcess()->AppendSwitchASCII(
+ base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
switches::kPrecacheManifestURLPrefix, kManfiestURLPrefix);
std::list<GURL> starting_urls;
@@ -164,7 +164,7 @@ TEST_F(PrecacheFetcherTest, FullPrecache) {
}
TEST_F(PrecacheFetcherTest, ConfigFetchFailure) {
- CommandLine::ForCurrentProcess()->AppendSwitchASCII(
+ base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
switches::kPrecacheConfigSettingsURL, kConfigURL);
std::list<GURL> starting_urls(1, GURL("http://starting-url.com"));
@@ -187,7 +187,7 @@ TEST_F(PrecacheFetcherTest, ConfigFetchFailure) {
}
TEST_F(PrecacheFetcherTest, BadConfig) {
- CommandLine::ForCurrentProcess()->AppendSwitchASCII(
+ base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
switches::kPrecacheConfigSettingsURL, kConfigURL);
std::list<GURL> starting_urls(1, GURL("http://starting-url.com"));
@@ -209,7 +209,7 @@ TEST_F(PrecacheFetcherTest, BadConfig) {
}
TEST_F(PrecacheFetcherTest, Cancel) {
- CommandLine::ForCurrentProcess()->AppendSwitchASCII(
+ base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
switches::kPrecacheConfigSettingsURL, kConfigURL);
std::list<GURL> starting_urls(1, GURL("http://starting-url.com"));
@@ -271,7 +271,7 @@ TEST_F(PrecacheFetcherTest, PrecacheUsingDefaultConfigSettingsURL) {
// If the default precache manifest URL prefix is defined, then test that it
// works with the PrecacheFetcher.
TEST_F(PrecacheFetcherTest, PrecacheUsingDefaultManifestURLPrefix) {
- CommandLine::ForCurrentProcess()->AppendSwitchASCII(
+ base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
switches::kPrecacheConfigSettingsURL, kConfigURL);
std::list<GURL> starting_urls(1, GURL("http://starting-url.com"));
« no previous file with comments | « components/precache/core/precache_fetcher.cc ('k') | components/proximity_auth/cryptauth/cryptauth_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698