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