OLD | NEW |
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 -D eff
ective_tld_names_unittest1.gperf > effective_tld_names_unittest1.cc | 7 // gperf -a -L "C++" -C -c -o -t -k '*' -NFindDomain -ZPerfect_Hash_Test1 -D eff
ective_tld_names_unittest1.gperf > effective_tld_names_unittest1.cc |
8 // to generate the perfect hashmap. | 8 // to generate the perfect hashmap. |
9 %} | 9 %} |
10 struct DomainRule { | 10 struct DomainRule { |
11 const char *name; | 11 const char *name; |
12 int type; // 1: exception, 2: wildcard | 12 int type; // 1: exception, 2: wildcard |
| 13 bool is_private; |
13 }; | 14 }; |
14 %% | 15 %% |
15 jp, 0 | 16 jp, 0, false |
16 ac.jp, 0 | 17 ac.jp, 0, false |
17 bar.jp, 2 | 18 bar.jp, 2, false |
18 baz.bar.jp, 2 | 19 baz.bar.jp, 2, false |
19 pref.bar.jp, 1 | 20 pref.bar.jp, 1, false |
20 bar.baz.com, 0 | 21 bar.baz.com, 0, false |
21 c, 2 | 22 c, 2, false |
22 b.c, 1 | 23 b.c, 1, false |
| 24 no, 0, false |
| 25 priv.no, 0, true |
| 26 private, 0, true |
23 %% | 27 %% |
OLD | NEW |