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("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//build/config/nacl/config.gni") | 6 import("//build/config/nacl/config.gni") |
7 | 7 |
8 if (is_android) { | 8 if (is_android) { |
9 import("//build/config/android/rules.gni") | 9 import("//build/config/android/rules.gni") |
10 } | 10 } |
11 | 11 |
12 source_set("test_config") { | 12 static_library("test_config") { |
13 testonly = true | 13 testonly = true |
14 sources = [ | 14 sources = [ |
15 "test_switches.cc", | 15 "test_switches.cc", |
16 "test_switches.h", | 16 "test_switches.h", |
17 "test_timeouts.cc", | 17 "test_timeouts.cc", |
18 "test_timeouts.h", | 18 "test_timeouts.h", |
19 ] | 19 ] |
20 deps = [ | 20 deps = [ |
21 "//base", | 21 "//base", |
22 ] | 22 ] |
23 } | 23 } |
24 | 24 |
25 # GYP: //base/base.gyp:test_support_base | 25 # GYP: //base/base.gyp:test_support_base |
26 source_set("test_support") { | 26 static_library("test_support") { |
27 testonly = true | 27 testonly = true |
28 sources = [ | 28 sources = [ |
29 "gtest_util.cc", | 29 "gtest_util.cc", |
30 "gtest_util.h", | 30 "gtest_util.h", |
31 "gtest_xml_unittest_result_printer.cc", | 31 "gtest_xml_unittest_result_printer.cc", |
32 "gtest_xml_unittest_result_printer.h", | 32 "gtest_xml_unittest_result_printer.h", |
33 "gtest_xml_util.cc", | 33 "gtest_xml_util.cc", |
34 "gtest_xml_util.h", | 34 "gtest_xml_util.h", |
35 "histogram_tester.cc", | 35 "histogram_tester.cc", |
36 "histogram_tester.h", | 36 "histogram_tester.h", |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 "//third_party/icu:icuuc", | 209 "//third_party/icu:icuuc", |
210 "//third_party/libxml", | 210 "//third_party/libxml", |
211 ] | 211 ] |
212 } | 212 } |
213 } | 213 } |
214 | 214 |
215 config("perf_test_config") { | 215 config("perf_test_config") { |
216 defines = [ "PERF_TEST" ] | 216 defines = [ "PERF_TEST" ] |
217 } | 217 } |
218 | 218 |
| 219 # This is a source set instead of a static library because it seems like some |
| 220 # linkers get confused when "main" is in a static library, and if you link to |
| 221 # this, you always want the object file anyway. |
219 source_set("test_support_perf") { | 222 source_set("test_support_perf") { |
220 testonly = true | 223 testonly = true |
221 sources = [ | 224 sources = [ |
222 "run_all_perftests.cc", | 225 "run_all_perftests.cc", |
223 ] | 226 ] |
224 deps = [ | 227 deps = [ |
225 ":test_support", | 228 ":test_support", |
226 "//base", | 229 "//base", |
227 "//testing/gtest", | 230 "//testing/gtest", |
228 ] | 231 ] |
229 | 232 |
230 public_configs = [ ":perf_test_config" ] | 233 public_configs = [ ":perf_test_config" ] |
231 } | 234 } |
232 | 235 |
233 source_set("test_launcher_nacl_nonsfi") { | 236 static_library("test_launcher_nacl_nonsfi") { |
234 testonly = true | 237 testonly = true |
235 sources = [ | 238 sources = [ |
236 "launcher/test_launcher_nacl_nonsfi.cc", | 239 "launcher/test_launcher_nacl_nonsfi.cc", |
237 "launcher/test_launcher_nacl_nonsfi.h", | 240 "launcher/test_launcher_nacl_nonsfi.h", |
238 ] | 241 ] |
239 deps = [ | 242 deps = [ |
240 ":test_support", | 243 ":test_support", |
241 ] | 244 ] |
242 } | 245 } |
243 | 246 |
244 source_set("run_all_unittests") { | 247 static_library("run_all_unittests") { |
245 testonly = true | 248 testonly = true |
246 sources = [ | 249 sources = [ |
247 "run_all_unittests.cc", | 250 "run_all_unittests.cc", |
248 ] | 251 ] |
249 deps = [ | 252 deps = [ |
250 ":test_support", | 253 ":test_support", |
251 ] | 254 ] |
252 } | 255 } |
253 | 256 |
254 if (is_linux) { | 257 if (is_linux) { |
(...skipping 11 matching lines...) Expand all Loading... |
266 | 269 |
267 if (is_android) { | 270 if (is_android) { |
268 generate_jni("base_unittests_jni_headers") { | 271 generate_jni("base_unittests_jni_headers") { |
269 sources = [ | 272 sources = [ |
270 "android/java/src/org/chromium/base/ContentUriTestUtils.java", | 273 "android/java/src/org/chromium/base/ContentUriTestUtils.java", |
271 "android/java/src/org/chromium/base/TestUiThread.java", | 274 "android/java/src/org/chromium/base/TestUiThread.java", |
272 ] | 275 ] |
273 jni_package = "base" | 276 jni_package = "base" |
274 } | 277 } |
275 } | 278 } |
OLD | NEW |