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

Unified Diff: net/base/registry_controlled_domains/effective_tld_names_unittest1.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 side-by-side diff with in-line comments
Download patch
Index: net/base/registry_controlled_domains/effective_tld_names_unittest1.gperf
diff --git a/net/base/registry_controlled_domains/effective_tld_names_unittest1.gperf b/net/base/registry_controlled_domains/effective_tld_names_unittest1.gperf
deleted file mode 100644
index 0246f17bebe3bca398c6a9630e296ad702d510e4..0000000000000000000000000000000000000000
--- a/net/base/registry_controlled_domains/effective_tld_names_unittest1.gperf
+++ /dev/null
@@ -1,27 +0,0 @@
-%{
-// Copyright (c) 2012 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 -P -K name_offset -Q stringpool1 -D effective_tld_names_unittest1.gperf > effective_tld_names_unittest1.cc
-// to generate the perfect hashmap.
-%}
-struct DomainRule {
- int name_offset;
- int type; // 1: exception, 2: wildcard, 4: private
-};
-%%
-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
-no, 0
-priv.no, 4
-private, 4
-xn--fiqs8s, 0
-%%

Powered by Google App Engine
This is Rietveld 408576698