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

Side by Side Diff: base/test/dafsa/effective_tld_names_unittest2.gperf

Issue 2784933002: Mitigate spoofing attempt using Latin letters. (Closed)
Patch Set: add similarity check unittests Created 3 years, 8 months 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_Test2 -P -K name_offset -Q stringpool2 -D -T effective_tld_names_unittest2.gperf > effectiv e_tld_names_unittest2.cc 7 // gperf -a -L "C++" -C -c -o -t -k '*' -NFindDomain -ZPerfect_Hash_Test2 -P -K name_offset -Q stringpool2 -D -T effective_tld_names_unittest2.gperf > effectiv e_tld_names_unittest2.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 bar.jp, 0 16 bar.jp, 0
17 %% 17 %%
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698