• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1%{
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
4// found in the LICENSE file.
5// Test file used by registry_controlled_domain_unittest.
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_tld_names_unittest1.cc
8// to generate the perfect hashmap.
9%}
10struct DomainRule {
11  int name_offset;
12  int type;  // 1: exception, 2: wildcard, 4: private
13};
14%%
15jp, 0
16ac.jp, 0
17bar.jp, 2
18baz.bar.jp, 2
19pref.bar.jp, 1
20bar.baz.com, 0
21c, 2
22b.c, 1
23no, 0
24priv.no, 4
25private, 4
26%%
27