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 | 6 |
7 if (is_android) { | 7 if (is_android) { |
8 import("//build/config/android/rules.gni") | 8 import("//build/config/android/rules.gni") |
9 } | 9 } |
10 | 10 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 ":url_java", | 108 ":url_java", |
109 ":url_jni_headers", | 109 ":url_jni_headers", |
110 "//base", | 110 "//base", |
111 "//base/third_party/dynamic_annotations", | 111 "//base/third_party/dynamic_annotations", |
112 ] | 112 ] |
113 } | 113 } |
114 } | 114 } |
115 | 115 |
116 # TODO(dpranke): crbug.com/360936. Get this to build and run on Android. | 116 # TODO(dpranke): crbug.com/360936. Get this to build and run on Android. |
117 if (!is_android) { | 117 if (!is_android) { |
| 118 # TODO(GYP): Delete this after we've converted everything to GN. |
| 119 # The _run targets exist only for compatibility w/ GYP. |
| 120 group("url_unittests_run") { |
| 121 testonly = true |
| 122 deps = [ |
| 123 ":url_unittests", |
| 124 ] |
| 125 } |
| 126 |
118 test("url_unittests") { | 127 test("url_unittests") { |
119 sources = [ | 128 sources = [ |
120 "gurl_unittest.cc", | 129 "gurl_unittest.cc", |
121 "origin_unittest.cc", | 130 "origin_unittest.cc", |
122 "scheme_host_port_unittest.cc", | 131 "scheme_host_port_unittest.cc", |
123 "url_canon_icu_unittest.cc", | 132 "url_canon_icu_unittest.cc", |
124 "url_canon_unittest.cc", | 133 "url_canon_unittest.cc", |
125 "url_parse_unittest.cc", | 134 "url_parse_unittest.cc", |
126 "url_test_utils.h", | 135 "url_test_utils.h", |
127 "url_util_unittest.cc", | 136 "url_util_unittest.cc", |
128 ] | 137 ] |
129 | 138 |
130 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 139 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
131 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 140 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
132 | 141 |
133 deps = [ | 142 deps = [ |
134 ":url", | 143 ":url", |
135 "//base", | 144 "//base", |
136 "//base/test:run_all_unittests", | 145 "//base/test:run_all_unittests", |
137 "//testing/gtest", | 146 "//testing/gtest", |
138 "//third_party/icu:icuuc", | 147 "//third_party/icu:icuuc", |
139 ] | 148 ] |
140 } | 149 } |
141 } | 150 } |
OLD | NEW |