blob: f7bb4280ee69da231b4143da0285eb3cef7b0623 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
%{
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
// Test file used by registry_controlled_domain_unittest.
// We edit this file manually, then run
// gperf -a -L "C++" -C -c -o -t -k '*' -NFindDomain -ZPerfect_Hash_Test1 -D effective_tld_names_unittest1.gperf > effective_tld_names_unittest1.cc
// to generate the perfect hashmap.
%}
struct DomainRule {
const char *name;
int type; // 1: exception, 2: wildcard
};
%%
jp, 0
ac.jp, 0
bar.jp, 2
baz.bar.jp, 2
pref.bar.jp, 1
bar.baz.com, 0
c, 2
b.c, 1
%%
|