| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 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 component("url") { | 5 component("url") { |
| 6 if (is_win) { | 6 if (is_win) { |
| 7 # Don't conflict with Windows' "url.dll". | 7 # Don't conflict with Windows' "url.dll". |
| 8 output_name = "url_lib" | 8 output_name = "url_lib" |
| 9 } | 9 } |
| 10 sources = [ | 10 sources = [ |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 # 'msvs_disabled_warnings': [ 4267, ] | 47 # 'msvs_disabled_warnings': [ 4267, ] |
| 48 # } | 48 # } |
| 49 | 49 |
| 50 deps = [ | 50 deps = [ |
| 51 "//base", | 51 "//base", |
| 52 "//third_party/icu:icudata", | 52 "//third_party/icu:icudata", |
| 53 "//third_party/icu", | 53 "//third_party/icu", |
| 54 ] | 54 ] |
| 55 } | 55 } |
| 56 | 56 |
| 57 test("url_unittests") { | 57 # TODO(dpranke): crbug.com/360936. Get this to build and run on Android. |
| 58 sources = [ | 58 if (!is_android) { |
| 59 "gurl_unittest.cc", | 59 test("url_unittests") { |
| 60 "url_canon_unittest.cc", | 60 sources = [ |
| 61 "url_parse_unittest.cc", | 61 "gurl_unittest.cc", |
| 62 "url_test_utils.h", | 62 "url_canon_unittest.cc", |
| 63 "url_util_unittest.cc", | 63 "url_parse_unittest.cc", |
| 64 ] | 64 "url_test_utils.h", |
| 65 "url_util_unittest.cc", |
| 66 ] |
| 65 | 67 |
| 66 #if (is_posix && !is_mac && !is_ios) { | 68 #if (is_posix && !is_mac && !is_ios) { |
| 67 # # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 | 69 # # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 |
| 68 # if ((use_allocator!="none" && use_allocator!="see_use_tcmalloc") || (use_al
locator=="see_use_tcmalloc" && linux_use_tcmalloc) { | 70 # if ((use_allocator!="none" && use_allocator!="see_use_tcmalloc") || (use_
allocator=="see_use_tcmalloc" && linux_use_tcmalloc) { |
| 69 # deps += "//base/allocator" | 71 # deps += "//base/allocator" |
| 70 # } | 72 # } |
| 71 #} | 73 #} |
| 72 | 74 |
| 73 # if (is_win) { | 75 # if (is_win) { |
| 74 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 76 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 75 # 'msvs_disabled_warnings': [ 4267, ] | 77 # 'msvs_disabled_warnings': [ 4267, ] |
| 76 # } | 78 # } |
| 77 | 79 |
| 78 deps = [ | 80 deps = [ |
| 79 ":url", | 81 ":url", |
| 80 "//base:i18n", | 82 "//base:i18n", |
| 81 "//base/test:run_all_unittests", | 83 "//base/test:run_all_unittests", |
| 82 "//testing/gtest", | 84 "//testing/gtest", |
| 83 "//third_party/icu:icuuc", | 85 "//third_party/icu:icuuc", |
| 84 ] | 86 ] |
| 87 } |
| 85 } | 88 } |
| OLD | NEW |