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

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

Issue 18119005: Misc. cleanup: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 5 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 #include "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/strings/utf_string_conversions.h"
7 #include "chrome/browser/google/google_url_tracker.h" 6 #include "chrome/browser/google/google_url_tracker.h"
8 #include "chrome/browser/google/google_util.h" 7 #include "chrome/browser/google/google_util.h"
9 #include "chrome/common/chrome_switches.h" 8 #include "chrome/common/chrome_switches.h"
10 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
11 10
12 using google_util::IsGoogleDomainUrl; 11 using google_util::IsGoogleDomainUrl;
13 12
14 13
15 // Helpers -------------------------------------------------------------------- 14 // Helpers --------------------------------------------------------------------
16 15
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 EXPECT_TRUE(IsGoogleDomainUrl(GURL("https://www.google.com:443"), 277 EXPECT_TRUE(IsGoogleDomainUrl(GURL("https://www.google.com:443"),
279 google_util::DISALLOW_SUBDOMAIN, 278 google_util::DISALLOW_SUBDOMAIN,
280 google_util::ALLOW_NON_STANDARD_PORTS)); 279 google_util::ALLOW_NON_STANDARD_PORTS));
281 EXPECT_FALSE(IsGoogleDomainUrl(GURL("file://www.google.com"), 280 EXPECT_FALSE(IsGoogleDomainUrl(GURL("file://www.google.com"),
282 google_util::DISALLOW_SUBDOMAIN, 281 google_util::DISALLOW_SUBDOMAIN,
283 google_util::DISALLOW_NON_STANDARD_PORTS)); 282 google_util::DISALLOW_NON_STANDARD_PORTS));
284 EXPECT_FALSE(IsGoogleDomainUrl(GURL("doesnotexist://www.google.com"), 283 EXPECT_FALSE(IsGoogleDomainUrl(GURL("doesnotexist://www.google.com"),
285 google_util::DISALLOW_SUBDOMAIN, 284 google_util::DISALLOW_SUBDOMAIN,
286 google_util::DISALLOW_NON_STANDARD_PORTS)); 285 google_util::DISALLOW_NON_STANDARD_PORTS));
287 } 286 }
OLDNEW
« no previous file with comments | « chrome/browser/google/google_util.cc ('k') | chrome/browser/metro_viewer/chrome_metro_viewer_process_host_aurawin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698