SafeBrowsing DownloadProtectionService: only check final URL against whitelist.
[chromium-blink-merge.git] / url / BUILD.gn
blob941ba7df5e391a455dcc51ead2350dd7e3b20c77
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 component("url") {
6   external = true
7   if (is_win) {
8     # Don't conflict with Windows' "url.dll".
9     output_name = "url_lib"
10   }
11   sources = [
12     "gurl.cc",
13     "gurl.h",
14     "third_party/mozilla/url_parse.cc",
15     "third_party/mozilla/url_parse.h",
16     "url_canon.h",
17     "url_canon_etc.cc",
18     "url_canon_filesystemurl.cc",
19     "url_canon_fileurl.cc",
20     "url_canon_host.cc",
21     "url_canon_icu.cc",
22     "url_canon_icu.h",
23     "url_canon_internal.cc",
24     "url_canon_internal.h",
25     "url_canon_internal_file.h",
26     "url_canon_ip.cc",
27     "url_canon_ip.h",
28     "url_canon_mailtourl.cc",
29     "url_canon_path.cc",
30     "url_canon_pathurl.cc",
31     "url_canon_query.cc",
32     "url_canon_relative.cc",
33     "url_canon_stdstring.cc",
34     "url_canon_stdstring.h",
35     "url_canon_stdurl.cc",
36     "url_export.h",
37     "url_file.h",
38     "url_parse_file.cc",
39     "url_parse_internal.h",
40     "url_util.cc",
41     "url_util.h",
42   ]
44   defines = [ "URL_IMPLEMENTATION" ]
46   # if (is_win) {
47   #   TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
48   #   'msvs_disabled_warnings': [ 4267, ]
49   # }
51   deps = [
52     "//base",
53     "//third_party/icu:icudata",
54     "//third_party/icu:icui18n",
55     "//third_party/icu:icuuc",
56   ]
59 test("url_unittests") {
60   external = true
61   sources = [
62     "gurl_unittest.cc",
63     "url_canon_unittest.cc",
64     "url_parse_unittest.cc",
65     "url_test_utils.h",
66     "url_util_unittest.cc",
67   ]
69   #if (is_posix && !is_mac && !is_ios) {
70   #  if (linux_use_tcmalloc) {
71   #    deps += "//base/allocator"
72   #  }
73   #}
75   # if (is_win) {
76   #   TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
77   #   'msvs_disabled_warnings': [ 4267, ]
78   # }
80   deps = [
81     ":url",
82     "//base:base_i18n",
83     "//base/test:run_all_unittests",
84     "//testing/gtest",
85     "//third_party/icu:icuuc",
86   ]