Stop UI jumping when clicking Contextual Search Results in Custom Tab
[chromium-blink-merge.git] / components / url_formatter / BUILD.gn
blob6a35fb3d0dcbe75080b0cc11a63d1d4d8d980b1a
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
3 # found in the LICENSE file.
5 static_library("url_formatter") {
6   sources = [
7     "elide_url.cc",
8     "elide_url.h",
9     "url_fixer.cc",
10     "url_fixer.h",
11     "url_formatter.cc",
12     "url_formatter.h",
13   ]
15   # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
16   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
18   deps = [
19     "//base",
20     "//third_party/icu",
21     "//net",
22     "//ui/gfx",
23     "//url",
24   ]
26   if (is_android) {
27     deps -= [ "//ui/gfx" ]
28   }
31 source_set("unit_tests") {
32   testonly = true
33   sources = [
34     "elide_url_unittest.cc",
35     "url_fixer_unittest.cc",
36     "url_formatter_unittest.cc",
37   ]
39   deps = [
40     "//base",
41     "//net",
42     "//testing/gtest",
43     "//ui/gfx",
44     "//url",
45     ":url_formatter",
46   ]
48   if (is_android) {
49     deps -= [ "//ui/gfx" ]
50   }