Chromium Code Reviews| Index: components/google/core/browser/google_util_unittest.cc |
| diff --git a/components/google/core/browser/google_util_unittest.cc b/components/google/core/browser/google_util_unittest.cc |
| index 94e9b73259d0e1ac38a56f2997963ed4da16b214..95e9667b7e05039f6f6583c6d15c90ad2ffe5134 100644 |
| --- a/components/google/core/browser/google_util_unittest.cc |
| +++ b/components/google/core/browser/google_util_unittest.cc |
| @@ -310,8 +310,8 @@ TEST(GoogleUtilTest, GoogleBaseURLNotSpecified) { |
| EXPECT_FALSE(IsSearch("http://www.foo.com/search?q=a")); |
| // Override the Google base URL on the command line. |
| - CommandLine::ForCurrentProcess()->AppendSwitchASCII(switches::kGoogleBaseURL, |
| - "http://www.foo.com/"); |
| + base::CommandLine::ForCurrentProcess()->AppendSwitchASCII( |
| + switches::kGoogleBaseURL, "http://www.foo.com/"); |
|
Cait (Slow)
2014/12/03 16:43:21
indent is incorrect here (and below). Should be 4
|
| // Only URLs which start with exactly the string on the command line should |
| // cause StartsWithCommandLineGoogleBaseURL() to return true. |
| @@ -336,20 +336,20 @@ TEST(GoogleUtilTest, GoogleBaseURLNotSpecified) { |
| } |
| TEST(GoogleUtilTest, GoogleBaseURLDisallowQuery) { |
| - CommandLine::ForCurrentProcess()->AppendSwitchASCII(switches::kGoogleBaseURL, |
| - "http://www.foo.com/?q="); |
| + base::CommandLine::ForCurrentProcess()->AppendSwitchASCII( |
| + switches::kGoogleBaseURL, "http://www.foo.com/?q="); |
| EXPECT_FALSE(google_util::CommandLineGoogleBaseURL().is_valid()); |
| } |
| TEST(GoogleUtilTest, GoogleBaseURLDisallowRef) { |
| - CommandLine::ForCurrentProcess()->AppendSwitchASCII(switches::kGoogleBaseURL, |
| - "http://www.foo.com/#q="); |
| + base::CommandLine::ForCurrentProcess()->AppendSwitchASCII( |
| + switches::kGoogleBaseURL, "http://www.foo.com/#q="); |
| EXPECT_FALSE(google_util::CommandLineGoogleBaseURL().is_valid()); |
| } |
| TEST(GoogleUtilTest, GoogleBaseURLFixup) { |
| - CommandLine::ForCurrentProcess()->AppendSwitchASCII(switches::kGoogleBaseURL, |
| - "www.foo.com"); |
| + base::CommandLine::ForCurrentProcess()->AppendSwitchASCII( |
| + switches::kGoogleBaseURL, "www.foo.com"); |
| ASSERT_TRUE(google_util::CommandLineGoogleBaseURL().is_valid()); |
| EXPECT_EQ("http://www.foo.com/", |
| google_util::CommandLineGoogleBaseURL().spec()); |