summaryrefslogtreecommitdiffstats
path: root/components/url_fixer
diff options
context:
space:
mode:
authorrsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-12 14:49:24 +0000
committerrsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-12 14:51:29 +0000
commit91bf0c13ac35191bfee3b1d96354203249312a9f (patch)
treec4def3b2d629d1a632dfc38688f3415b5cb4c7c7 /components/url_fixer
parent02c967fea46ffb9fd232ec03d7d5f80de11454e6 (diff)
downloadchromium_src-91bf0c13ac35191bfee3b1d96354203249312a9f.zip
chromium_src-91bf0c13ac35191bfee3b1d96354203249312a9f.tar.gz
chromium_src-91bf0c13ac35191bfee3b1d96354203249312a9f.tar.bz2
Refresh Public Suffix List to the latest version
This updates to the following revision: aedf1212d667 2014-08-05 11:00 -0400 It includes changes from revision 131f3403a484 (2014-06-12 07:56 -0400) to revision aedf1212d667 (2014-08-05 11:00 -0400), listed at http://hg.mozilla.org/mozilla-central/log/aedf1212d667/netwerk/dns/effective_tld_names.dat R=pkasting@chromium.org BUG=37436 Review URL: https://codereview.chromium.org/460833002 Cr-Commit-Position: refs/heads/master@{#288965} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288965 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/url_fixer')
-rw-r--r--components/url_fixer/url_fixer_unittest.cc53
1 files changed, 35 insertions, 18 deletions
diff --git a/components/url_fixer/url_fixer_unittest.cc b/components/url_fixer/url_fixer_unittest.cc
index 18820d8..9eb330b 100644
--- a/components/url_fixer/url_fixer_unittest.cc
+++ b/components/url_fixer/url_fixer_unittest.cc
@@ -322,24 +322,41 @@ TEST(URLFixerTest, FixupURL) {
// Check the TLD-appending functionality.
FixupCase tld_cases[] = {
- {"google", "http://www.google.com/"},
- {"google.", "http://www.google.com/"},
- {"google..", "http://www.google.com/"},
- {".google", "http://www.google.com/"},
- {"www.google", "http://www.google.com/"},
- {"google.com", "http://google.com/"},
- {"http://google", "http://www.google.com/"},
- {"..google..", "http://www.google.com/"},
- {"http://www.google", "http://www.google.com/"},
- {"9999999999999999", "http://www.9999999999999999.com/"},
- {"google/foo", "http://www.google.com/foo"},
- {"google.com/foo", "http://google.com/foo"},
- {"google/?foo=.com", "http://www.google.com/?foo=.com"},
- {"www.google/?foo=www.", "http://www.google.com/?foo=www."},
- {"google.com/?foo=.com", "http://google.com/?foo=.com"},
- {"http://www.google.com", "http://www.google.com/"},
- {"google:123", "http://www.google.com:123/"},
- {"http://google:123", "http://www.google.com:123/"},
+ {"somedomainthatwillnotbeagtld",
+ "http://www.somedomainthatwillnotbeagtld.com/"},
+ {"somedomainthatwillnotbeagtld.",
+ "http://www.somedomainthatwillnotbeagtld.com/"},
+ {"somedomainthatwillnotbeagtld..",
+ "http://www.somedomainthatwillnotbeagtld.com/"},
+ {".somedomainthatwillnotbeagtld",
+ "http://www.somedomainthatwillnotbeagtld.com/"},
+ {"www.somedomainthatwillnotbeagtld",
+ "http://www.somedomainthatwillnotbeagtld.com/"},
+ {"somedomainthatwillnotbeagtld.com",
+ "http://somedomainthatwillnotbeagtld.com/"},
+ {"http://somedomainthatwillnotbeagtld",
+ "http://www.somedomainthatwillnotbeagtld.com/"},
+ {"..somedomainthatwillnotbeagtld..",
+ "http://www.somedomainthatwillnotbeagtld.com/"},
+ {"http://www.somedomainthatwillnotbeagtld",
+ "http://www.somedomainthatwillnotbeagtld.com/"},
+ {"9999999999999999", "http://www.9999999999999999.com/"},
+ {"somedomainthatwillnotbeagtld/foo",
+ "http://www.somedomainthatwillnotbeagtld.com/foo"},
+ {"somedomainthatwillnotbeagtld.com/foo",
+ "http://somedomainthatwillnotbeagtld.com/foo"},
+ {"somedomainthatwillnotbeagtld/?foo=.com",
+ "http://www.somedomainthatwillnotbeagtld.com/?foo=.com"},
+ {"www.somedomainthatwillnotbeagtld/?foo=www.",
+ "http://www.somedomainthatwillnotbeagtld.com/?foo=www."},
+ {"somedomainthatwillnotbeagtld.com/?foo=.com",
+ "http://somedomainthatwillnotbeagtld.com/?foo=.com"},
+ {"http://www.somedomainthatwillnotbeagtld.com",
+ "http://www.somedomainthatwillnotbeagtld.com/"},
+ {"somedomainthatwillnotbeagtld:123",
+ "http://www.somedomainthatwillnotbeagtld.com:123/"},
+ {"http://somedomainthatwillnotbeagtld:123",
+ "http://www.somedomainthatwillnotbeagtld.com:123/"},
};
for (size_t i = 0; i < arraysize(tld_cases); ++i) {
FixupCase value = tld_cases[i];