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

Side by Side Diff: net/base/registry_controlled_domains/effective_tld_names_unittest1.gperf

Issue 2456643005: Reduce buggy usage of the registry controlled domain service. (Closed)
Patch Set: Fix Created 4 years, 1 month 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 %{ 1 %{
2 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 // Test file used by registry_controlled_domain_unittest. 5 // Test file used by registry_controlled_domain_unittest.
6 // We edit this file manually, then run 6 // We edit this file manually, then run
7 // gperf -a -L "C++" -C -c -o -t -k '*' -NFindDomain -ZPerfect_Hash_Test1 -P -K name_offset -Q stringpool1 -D effective_tld_names_unittest1.gperf > effective_t ld_names_unittest1.cc 7 // gperf -a -L "C++" -C -c -o -t -k '*' -NFindDomain -ZPerfect_Hash_Test1 -P -K name_offset -Q stringpool1 -D effective_tld_names_unittest1.gperf > effective_t ld_names_unittest1.cc
8 // to generate the perfect hashmap. 8 // to generate the perfect hashmap.
9 %} 9 %}
10 struct DomainRule { 10 struct DomainRule {
11 int name_offset; 11 int name_offset;
12 int type; // 1: exception, 2: wildcard, 4: private 12 int type; // 1: exception, 2: wildcard, 4: private
13 }; 13 };
14 %% 14 %%
15 jp, 0 15 jp, 0
16 ac.jp, 0 16 ac.jp, 0
17 bar.jp, 2 17 bar.jp, 2
18 baz.bar.jp, 2 18 baz.bar.jp, 2
19 pref.bar.jp, 1 19 pref.bar.jp, 1
20 bar.baz.com, 0 20 bar.baz.com, 0
21 c, 2 21 c, 2
22 b.c, 1 22 b.c, 1
23 no, 0 23 no, 0
24 priv.no, 4 24 priv.no, 4
25 private, 4 25 private, 4
26 xn--fiqs8s, 0
26 %% 27 %%
OLDNEW
« no previous file with comments | « extensions/common/url_pattern.cc ('k') | net/base/registry_controlled_domains/registry_controlled_domain.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698