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

Side by Side Diff: chrome/browser/google/google_util_unittest.cc

Issue 316203003: Componentize GoogleURLTracker(InfoBarDelegate,MapEntry,NavHelper) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits Created 6 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
« no previous file with comments | « chrome/browser/google/google_util.cc ('k') | chrome/browser/prefs/browser_prefs.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "base/command_line.h" 5 #include "base/command_line.h"
6 #include "chrome/browser/google/google_url_tracker.h"
7 #include "chrome/browser/google/google_util.h" 6 #include "chrome/browser/google/google_util.h"
8 #include "components/google/core/browser/google_switches.h" 7 #include "components/google/core/browser/google_switches.h"
8 #include "components/google/core/browser/google_url_tracker.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 using google_util::IsGoogleDomainUrl; 11 using google_util::IsGoogleDomainUrl;
12 12
13 13
14 // Helpers -------------------------------------------------------------------- 14 // Helpers --------------------------------------------------------------------
15 15
16 namespace { 16 namespace {
17 17
18 // These functions merely provide brevity in the callers. 18 // These functions merely provide brevity in the callers.
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 EXPECT_FALSE(google_util::CommandLineGoogleBaseURL().is_valid()); 347 EXPECT_FALSE(google_util::CommandLineGoogleBaseURL().is_valid());
348 } 348 }
349 349
350 TEST(GoogleUtilTest, GoogleBaseURLFixup) { 350 TEST(GoogleUtilTest, GoogleBaseURLFixup) {
351 CommandLine::ForCurrentProcess()->AppendSwitchASCII(switches::kGoogleBaseURL, 351 CommandLine::ForCurrentProcess()->AppendSwitchASCII(switches::kGoogleBaseURL,
352 "www.foo.com"); 352 "www.foo.com");
353 ASSERT_TRUE(google_util::CommandLineGoogleBaseURL().is_valid()); 353 ASSERT_TRUE(google_util::CommandLineGoogleBaseURL().is_valid());
354 EXPECT_EQ("http://www.foo.com/", 354 EXPECT_EQ("http://www.foo.com/",
355 google_util::CommandLineGoogleBaseURL().spec()); 355 google_util::CommandLineGoogleBaseURL().spec());
356 } 356 }
OLDNEW
« no previous file with comments | « chrome/browser/google/google_util.cc ('k') | chrome/browser/prefs/browser_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698