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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 deps += [ | 261 deps += [ |
258 "//components/printing/browser", | 262 "//components/printing/browser", |
259 "//components/printing/common", | 263 "//components/printing/common", |
260 "//components/printing/renderer", | 264 "//components/printing/renderer", |
261 ] | 265 ] |
262 } | 266 } |
263 | 267 |
264 if (safe_browsing_mode == 2) { | 268 if (safe_browsing_mode == 2) { |
265 deps += [ "//components/safe_browsing_db:unit_tests_mobile" ] | 269 deps += [ "//components/safe_browsing_db:unit_tests_mobile" ] |
266 } | 270 } |
| 271 |
| 272 if (is_ios) { |
| 273 assert_no_deps = ios_assert_no_deps |
| 274 } |
267 } | 275 } |
268 | 276 |
269 repack("components_tests_pak") { | 277 repack("components_tests_pak") { |
270 sources = [ | 278 sources = [ |
271 "$root_gen_dir/components/components_resources.pak", | 279 "$root_gen_dir/components/components_resources.pak", |
272 "$root_gen_dir/components/strings/components_strings_en-US.pak", | 280 "$root_gen_dir/components/strings/components_strings_en-US.pak", |
273 ] | 281 ] |
274 | 282 |
275 output = "$root_out_dir/components_tests_resources.pak" | 283 output = "$root_out_dir/components_tests_resources.pak" |
276 deps = [ | 284 deps = [ |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 "//base/test:test_support_perf", | 438 "//base/test:test_support_perf", |
431 "//components/scheduler", | 439 "//components/scheduler", |
432 "//components/visitedlink/browser", | 440 "//components/visitedlink/browser", |
433 "//content/test:test_support", | 441 "//content/test:test_support", |
434 "//testing/gtest", | 442 "//testing/gtest", |
435 "//testing/perf", | 443 "//testing/perf", |
436 "//url", | 444 "//url", |
437 ] | 445 ] |
438 } | 446 } |
439 } | 447 } |
OLD | NEW |