| 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/macros.h" | 
| 6 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" | 
| 7 #include "components/google/core/browser/google_switches.h" | 8 #include "components/google/core/browser/google_switches.h" | 
| 8 #include "components/google/core/browser/google_url_tracker.h" | 9 #include "components/google/core/browser/google_url_tracker.h" | 
| 9 #include "components/google/core/browser/google_util.h" | 10 #include "components/google/core/browser/google_util.h" | 
| 10 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" | 
| 11 | 12 | 
| 12 using google_util::IsGoogleDomainUrl; | 13 using google_util::IsGoogleDomainUrl; | 
| 13 | 14 | 
| 14 | 15 | 
| 15 // Helpers -------------------------------------------------------------------- | 16 // Helpers -------------------------------------------------------------------- | 
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 415   EXPECT_FALSE(IsYoutubeDomainUrl(GURL("http://www.youtube.com:123"), | 416   EXPECT_FALSE(IsYoutubeDomainUrl(GURL("http://www.youtube.com:123"), | 
| 416                                   google_util::DISALLOW_SUBDOMAIN, | 417                                   google_util::DISALLOW_SUBDOMAIN, | 
| 417                                   google_util::DISALLOW_NON_STANDARD_PORTS)); | 418                                   google_util::DISALLOW_NON_STANDARD_PORTS)); | 
| 418   EXPECT_TRUE(IsYoutubeDomainUrl(GURL("http://www.youtube.com:123"), | 419   EXPECT_TRUE(IsYoutubeDomainUrl(GURL("http://www.youtube.com:123"), | 
| 419                                  google_util::DISALLOW_SUBDOMAIN, | 420                                  google_util::DISALLOW_SUBDOMAIN, | 
| 420                                  google_util::ALLOW_NON_STANDARD_PORTS)); | 421                                  google_util::ALLOW_NON_STANDARD_PORTS)); | 
| 421   EXPECT_FALSE(IsYoutubeDomainUrl(GURL("file://www.youtube.com"), | 422   EXPECT_FALSE(IsYoutubeDomainUrl(GURL("file://www.youtube.com"), | 
| 422                                   google_util::DISALLOW_SUBDOMAIN, | 423                                   google_util::DISALLOW_SUBDOMAIN, | 
| 423                                   google_util::DISALLOW_NON_STANDARD_PORTS)); | 424                                   google_util::DISALLOW_NON_STANDARD_PORTS)); | 
| 424 } | 425 } | 
| OLD | NEW | 
|---|