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 import("//testing/test.gni") | 5 import("//testing/test.gni") |
6 import("//url/config.gni") | 6 import("//url/config.gni") |
7 | 7 |
8 # Sets the USE_ICU_ALTERNATIVES_ON_ANDROID define based on the build flag. | 8 # Sets the USE_ICU_ALTERNATIVES_ON_ANDROID define based on the build flag. |
9 config("url_icu_config") { | 9 config("url_icu_config") { |
10 if (use_icu_alternatives_on_android) { | 10 if (use_icu_alternatives_on_android) { |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 sources += [ | 89 sources += [ |
90 "url_canon_icu_alternatives_android.cc", | 90 "url_canon_icu_alternatives_android.cc", |
91 "url_canon_icu_alternatives_android.h", | 91 "url_canon_icu_alternatives_android.h", |
92 ] | 92 ] |
93 } | 93 } |
94 } | 94 } |
95 | 95 |
96 # TODO(dpranke): crbug.com/360936. Get this to build and run on Android. | 96 # TODO(dpranke): crbug.com/360936. Get this to build and run on Android. |
97 if (!is_android) { | 97 if (!is_android) { |
| 98 # TODO(GYP): Delete this after we've converted everything to GN. |
| 99 # The _run targets exist only for compatibility w/ GYP. |
| 100 group("url_unittests_run") { |
| 101 testonly = true |
| 102 deps = [ |
| 103 ":url_unittests", |
| 104 ] |
| 105 } |
| 106 |
98 test("url_unittests") { | 107 test("url_unittests") { |
99 sources = [ | 108 sources = [ |
100 "deprecated_serialized_origin_unittest.cc", | 109 "deprecated_serialized_origin_unittest.cc", |
101 "gurl_unittest.cc", | 110 "gurl_unittest.cc", |
102 "origin_unittest.cc", | 111 "origin_unittest.cc", |
103 "scheme_host_port_unittest.cc", | 112 "scheme_host_port_unittest.cc", |
104 "url_canon_icu_unittest.cc", | 113 "url_canon_icu_unittest.cc", |
105 "url_canon_unittest.cc", | 114 "url_canon_unittest.cc", |
106 "url_parse_unittest.cc", | 115 "url_parse_unittest.cc", |
107 "url_test_utils.h", | 116 "url_test_utils.h", |
(...skipping 16 matching lines...) Expand all Loading... |
124 "//testing/gtest", | 133 "//testing/gtest", |
125 "//third_party/icu:icuuc", | 134 "//third_party/icu:icuuc", |
126 ] | 135 ] |
127 | 136 |
128 if (use_icu_alternatives_on_android) { | 137 if (use_icu_alternatives_on_android) { |
129 sources -= [ "url_canon_icu_unittest.cc" ] | 138 sources -= [ "url_canon_icu_unittest.cc" ] |
130 deps -= [ "//third_party/icu:icuuc" ] | 139 deps -= [ "//third_party/icu:icuuc" ] |
131 } | 140 } |
132 } | 141 } |
133 } | 142 } |
OLD | NEW |