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

Side by Side Diff: net/base/registry_controlled_domains/registry_controlled_domain_unittest.cc

Issue 859663003: GetEffectiveDomain should handle ws scheme as same as http scheme. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 "net/base/registry_controlled_domains/registry_controlled_domain.h" 5 #include "net/base/registry_controlled_domains/registry_controlled_domain.h"
6 #include "net/base/registry_controlled_domains/test_util.h"
Adam Rice 2015/01/19 06:05:57 Please remove this too.
yhirano 2015/01/19 06:11:53 Done.
6 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
7 #include "url/gurl.h" 8 #include "url/gurl.h"
8 9
9 namespace { 10 namespace {
10 namespace test1 { 11 namespace test1 {
11 #include "net/base/registry_controlled_domains/effective_tld_names_unittest1-inc .cc" 12 #include "net/base/registry_controlled_domains/effective_tld_names_unittest1-inc .cc"
12 } 13 }
13 namespace test2 { 14 namespace test2 {
14 #include "net/base/registry_controlled_domains/effective_tld_names_unittest2-inc .cc" 15 #include "net/base/registry_controlled_domains/effective_tld_names_unittest2-inc .cc"
15 } 16 }
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 GetRegistryLengthFromHostIncludingPrivate( 492 GetRegistryLengthFromHostIncludingPrivate(
492 key4, EXCLUDE_UNKNOWN_REGISTRIES)); 493 key4, EXCLUDE_UNKNOWN_REGISTRIES));
493 EXPECT_EQ(0U, 494 EXPECT_EQ(0U,
494 GetRegistryLengthFromHostIncludingPrivate( 495 GetRegistryLengthFromHostIncludingPrivate(
495 key5, EXCLUDE_UNKNOWN_REGISTRIES)); 496 key5, EXCLUDE_UNKNOWN_REGISTRIES));
496 EXPECT_EQ(5U, GetRegistryLengthFromHost(key6, EXCLUDE_UNKNOWN_REGISTRIES)); 497 EXPECT_EQ(5U, GetRegistryLengthFromHost(key6, EXCLUDE_UNKNOWN_REGISTRIES));
497 EXPECT_EQ(5U, GetRegistryLengthFromHost(key7, EXCLUDE_UNKNOWN_REGISTRIES)); 498 EXPECT_EQ(5U, GetRegistryLengthFromHost(key7, EXCLUDE_UNKNOWN_REGISTRIES));
498 } 499 }
499 } // namespace registry_controlled_domains 500 } // namespace registry_controlled_domains
500 } // namespace net 501 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/base/registry_controlled_domains/test_util.h » ('j') | net/cookies/cookie_util_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698