OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 import("//tools/grit/repack.gni") | 8 import("//tools/grit/repack.gni") |
9 | 9 |
10 if (is_android) { | 10 if (is_android) { |
11 import("//build/config/android/rules.gni") | 11 import("//build/config/android/rules.gni") |
12 } | 12 } |
13 | 13 |
| 14 if (is_ios) { |
| 15 import("//ios/build/config.gni") |
| 16 } |
| 17 |
14 # To add a unit test to this target, make a "unit_test" source_set in your | 18 # To add a unit test to this target, make a "unit_test" source_set in your |
15 # component (it's important to use a source_set instead of a static library or | 19 # component (it's important to use a source_set instead of a static library or |
16 # no tests will run) and add a reference here. You can add more than one unit | 20 # no tests will run) and add a reference here. You can add more than one unit |
17 # test target if convenient. | 21 # test target if convenient. |
18 test("components_unittests") { | 22 test("components_unittests") { |
19 sources = [ | 23 sources = [ |
20 "test/run_all_unittests.cc", | 24 "test/run_all_unittests.cc", |
21 ] | 25 ] |
22 | 26 |
23 if (is_android || is_linux || is_mac || is_win) { | 27 if (is_android || is_linux || is_mac || is_win) { |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 deps += [ | 258 deps += [ |
255 "//components/printing/browser", | 259 "//components/printing/browser", |
256 "//components/printing/common", | 260 "//components/printing/common", |
257 "//components/printing/renderer", | 261 "//components/printing/renderer", |
258 ] | 262 ] |
259 } | 263 } |
260 | 264 |
261 if (safe_browsing_mode == 2) { | 265 if (safe_browsing_mode == 2) { |
262 deps += [ "//components/safe_browsing_db:unit_tests_mobile" ] | 266 deps += [ "//components/safe_browsing_db:unit_tests_mobile" ] |
263 } | 267 } |
| 268 |
| 269 if (is_ios) { |
| 270 assert_no_deps = ios_assert_no_deps |
| 271 } |
264 } | 272 } |
265 | 273 |
266 repack("components_tests_pak") { | 274 repack("components_tests_pak") { |
267 sources = [ | 275 sources = [ |
268 "$root_gen_dir/components/components_resources.pak", | 276 "$root_gen_dir/components/components_resources.pak", |
269 "$root_gen_dir/components/strings/components_strings_en-US.pak", | 277 "$root_gen_dir/components/strings/components_strings_en-US.pak", |
270 ] | 278 ] |
271 | 279 |
272 output = "$root_out_dir/components_tests_resources.pak" | 280 output = "$root_out_dir/components_tests_resources.pak" |
273 deps = [ | 281 deps = [ |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 "//base/test:test_support_perf", | 435 "//base/test:test_support_perf", |
428 "//components/scheduler", | 436 "//components/scheduler", |
429 "//components/visitedlink/browser", | 437 "//components/visitedlink/browser", |
430 "//content/test:test_support", | 438 "//content/test:test_support", |
431 "//testing/gtest", | 439 "//testing/gtest", |
432 "//testing/perf", | 440 "//testing/perf", |
433 "//url", | 441 "//url", |
434 ] | 442 ] |
435 } | 443 } |
436 } | 444 } |
OLD | NEW |