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

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

Issue 333723002: Componentize google_util (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + build fix 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
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_util.h"
7 #include "components/google/core/browser/google_switches.h" 6 #include "components/google/core/browser/google_switches.h"
8 #include "components/google/core/browser/google_url_tracker.h" 7 #include "components/google/core/browser/google_url_tracker.h"
8 #include "components/google/core/browser/google_util.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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 EXPECT_FALSE(IsYoutubeDomainUrl(GURL("http://www.youtube.com:123"), 398 EXPECT_FALSE(IsYoutubeDomainUrl(GURL("http://www.youtube.com:123"),
399 google_util::DISALLOW_SUBDOMAIN, 399 google_util::DISALLOW_SUBDOMAIN,
400 google_util::DISALLOW_NON_STANDARD_PORTS)); 400 google_util::DISALLOW_NON_STANDARD_PORTS));
401 EXPECT_TRUE(IsYoutubeDomainUrl(GURL("http://www.youtube.com:123"), 401 EXPECT_TRUE(IsYoutubeDomainUrl(GURL("http://www.youtube.com:123"),
402 google_util::DISALLOW_SUBDOMAIN, 402 google_util::DISALLOW_SUBDOMAIN,
403 google_util::ALLOW_NON_STANDARD_PORTS)); 403 google_util::ALLOW_NON_STANDARD_PORTS));
404 EXPECT_FALSE(IsYoutubeDomainUrl(GURL("file://www.youtube.com"), 404 EXPECT_FALSE(IsYoutubeDomainUrl(GURL("file://www.youtube.com"),
405 google_util::DISALLOW_SUBDOMAIN, 405 google_util::DISALLOW_SUBDOMAIN,
406 google_util::DISALLOW_NON_STANDARD_PORTS)); 406 google_util::DISALLOW_NON_STANDARD_PORTS));
407 } 407 }
OLDNEW
« no previous file with comments | « chrome/browser/google/google_util.cc ('k') | chrome/browser/infobars/insecure_content_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698