| OLD | NEW |
| (Empty) | |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import("//ios/build/config.gni") |
| 6 import("//testing/test.gni") |
| 7 |
| 8 # All tests needs to be listed in that target to be built as part of |
| 9 # "gn_all" target (i.e. by the bots). |
| 10 group("all_tests") { |
| 11 testonly = true |
| 12 deps = [ |
| 13 ":ios_components_unittests", |
| 14 ] |
| 15 } |
| 16 |
| 17 # To add a unit test to this target, make a "unit_tests" source_set in your |
| 18 # component (it's important to use a source_set instead of a static library or |
| 19 # no tests will run) and add a reference here. You can add more than one unit |
| 20 # test target if convenient. |
| 21 test("ios_components_unittests") { |
| 22 # Add only ":unit_tests" dependencies here. If your tests have dependencies |
| 23 # (this would at least include the component itself), they should be on the |
| 24 # test source set and not here. |
| 25 |
| 26 deps = [ |
| 27 "//base", |
| 28 "//base/test:run_all_unittests", |
| 29 "//ios/components/io_thread:unit_tests", |
| 30 ] |
| 31 |
| 32 assert_no_deps = ios_assert_no_deps |
| 33 } |
| OLD | NEW |