OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |