OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 source_set("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 ] |
| 14 |
| 15 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 16 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 17 |
| 18 deps = [ |
| 19 "//base", |
| 20 "//third_party/icu", |
| 21 "//net", |
| 22 "//url", |
| 23 ] |
| 24 |
| 25 if (!is_android) { |
| 26 deps += [ "//ui/gfx" ] |
| 27 } |
| 28 } |
| 29 |
| 30 source_set("unit_tests") { |
| 31 testonly = true |
| 32 sources = [ |
| 33 "elide_url_unittest.cc", |
| 34 "url_fixer_unittest.cc", |
| 35 "url_formatter_unittest.cc", |
| 36 ] |
| 37 |
| 38 deps = [ |
| 39 ":url_formatter", |
| 40 "//base", |
| 41 "//net", |
| 42 "//testing/gtest", |
| 43 "//ui/gfx", |
| 44 "//url", |
| 45 ] |
| 46 |
| 47 if (is_android) { |
| 48 deps -= [ "//ui/gfx" ] |
| 49 } |
| 50 } |
OLD | NEW |