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

Side by Side Diff: components/url_formatter/BUILD.gn

Issue 2784933002: Mitigate spoofing attempt using Latin letters. (Closed)
Patch Set: use checked_cast and make win64 happy Created 3 years, 7 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
« no previous file with comments | « no previous file | components/url_formatter/idn_spoof_checker.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 if (is_android) { 5 if (is_android) {
6 import("//build/config/android/rules.gni") 6 import("//build/config/android/rules.gni")
7 } 7 }
8 8
9 static_library("url_formatter") { 9 static_library("url_formatter") {
10 sources = [ 10 sources = [
(...skipping 10 matching lines...) Expand all
21 "url_formatter_android.cc", 21 "url_formatter_android.cc",
22 "url_formatter_android.h", 22 "url_formatter_android.h",
23 ] 23 ]
24 24
25 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 25 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
26 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 26 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
27 27
28 deps = [ 28 deps = [
29 "//base", 29 "//base",
30 "//base:i18n", 30 "//base:i18n",
31 "//components/url_formatter/top_domains",
31 "//net", 32 "//net",
32 "//third_party/icu", 33 "//third_party/icu",
33 "//url", 34 "//url",
34 ] 35 ]
35 36
36 if (is_android) { 37 if (is_android) {
37 deps += [ "android:jni_headers" ] 38 deps += [ "android:jni_headers" ]
38 } else { 39 } else {
39 deps += [ "//ui/gfx" ] 40 deps += [ "//ui/gfx" ]
40 } 41 }
41 } 42 }
42 43
43 source_set("unit_tests") { 44 source_set("unit_tests") {
44 testonly = true 45 testonly = true
45 sources = [ 46 sources = [
46 "elide_url_unittest.cc", 47 "elide_url_unittest.cc",
47 "url_fixer_unittest.cc", 48 "url_fixer_unittest.cc",
48 "url_formatter_unittest.cc", 49 "url_formatter_unittest.cc",
49 ] 50 ]
50 51
51 deps = [ 52 deps = [
52 ":url_formatter", 53 ":url_formatter",
53 "//base", 54 "//base",
55 "//components/url_formatter/top_domains",
54 "//net", 56 "//net",
55 "//testing/gtest", 57 "//testing/gtest",
56 "//ui/gfx", 58 "//ui/gfx",
57 "//url", 59 "//url",
58 ] 60 ]
59 61
60 if (is_android) { 62 if (is_android) {
61 deps -= [ "//ui/gfx" ] 63 deps -= [ "//ui/gfx" ]
62 } 64 }
63 } 65 }
OLDNEW
« no previous file with comments | « no previous file | components/url_formatter/idn_spoof_checker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698