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

Side by Side Diff: components/google/core/browser/google_util_unittest.cc

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 4 years, 12 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
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/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
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 }
OLDNEW
« no previous file with comments | « components/google/core/browser/google_util.cc ('k') | components/guest_view/browser/guest_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698