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

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

Issue 10796033: Move files related to registry-controlled domains into a new net/base/registry_controlled_domains/ … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Update checkout Created 8 years, 5 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 | Annotate | Revision Log
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 "googleurl/src/gurl.h" 5 #include "googleurl/src/gurl.h"
6 #include "net/base/registry_controlled_domain.h" 6 #include "net/base/registry_controlled_domains/registry_controlled_domain.h"
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 #include "effective_tld_names_unittest1.cc" 9 #include "effective_tld_names_unittest1.cc"
10 #undef TOTAL_KEYWORDS 10 #undef TOTAL_KEYWORDS
11 #undef MIN_WORD_LENGTH 11 #undef MIN_WORD_LENGTH
12 #undef MAX_WORD_LENGTH 12 #undef MAX_WORD_LENGTH
13 #undef MIN_HASH_VALUE 13 #undef MIN_HASH_VALUE
14 #undef MAX_HASH_VALUE 14 #undef MAX_HASH_VALUE
15 #include "effective_tld_names_unittest2.cc" 15 #include "effective_tld_names_unittest2.cc"
16 16
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 EXPECT_EQ(3U, GetRegistryLengthFromURL("http://google.com", false)); 221 EXPECT_EQ(3U, GetRegistryLengthFromURL("http://google.com", false));
222 EXPECT_EQ(3U, GetRegistryLengthFromURL("http://stanford.edu", false)); 222 EXPECT_EQ(3U, GetRegistryLengthFromURL("http://stanford.edu", false));
223 EXPECT_EQ(3U, GetRegistryLengthFromURL("http://ustreas.gov", false)); 223 EXPECT_EQ(3U, GetRegistryLengthFromURL("http://ustreas.gov", false));
224 EXPECT_EQ(3U, GetRegistryLengthFromURL("http://icann.net", false)); 224 EXPECT_EQ(3U, GetRegistryLengthFromURL("http://icann.net", false));
225 EXPECT_EQ(3U, GetRegistryLengthFromURL("http://ferretcentral.org", false)); 225 EXPECT_EQ(3U, GetRegistryLengthFromURL("http://ferretcentral.org", false));
226 EXPECT_EQ(0U, GetRegistryLengthFromURL("http://nowhere.foo", false)); 226 EXPECT_EQ(0U, GetRegistryLengthFromURL("http://nowhere.foo", false));
227 EXPECT_EQ(3U, GetRegistryLengthFromURL("http://nowhere.foo", true)); 227 EXPECT_EQ(3U, GetRegistryLengthFromURL("http://nowhere.foo", true));
228 } 228 }
229 229
230 } // namespace net 230 } // namespace net
OLDNEW
« no previous file with comments | « net/base/registry_controlled_domains/registry_controlled_domain.cc ('k') | net/base/sdch_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698