| Index: ios/components/BUILD.gn
|
| diff --git a/ios/components/BUILD.gn b/ios/components/BUILD.gn
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..03fb2b979843de8fcbfd886e837fa3ebd67496fe
|
| --- /dev/null
|
| +++ b/ios/components/BUILD.gn
|
| @@ -0,0 +1,33 @@
|
| +# Copyright 2017 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +import("//ios/build/config.gni")
|
| +import("//testing/test.gni")
|
| +
|
| +# All tests needs to be listed in that target to be built as part of
|
| +# "gn_all" target (i.e. by the bots).
|
| +group("all_tests") {
|
| + testonly = true
|
| + deps = [
|
| + ":ios_components_unittests",
|
| + ]
|
| +}
|
| +
|
| +# To add a unit test to this target, make a "unit_tests" source_set in your
|
| +# component (it's important to use a source_set instead of a static library or
|
| +# no tests will run) and add a reference here. You can add more than one unit
|
| +# test target if convenient.
|
| +test("ios_components_unittests") {
|
| + # Add only ":unit_tests" dependencies here. If your tests have dependencies
|
| + # (this would at least include the component itself), they should be on the
|
| + # test source set and not here.
|
| +
|
| + deps = [
|
| + "//base",
|
| + "//base/test:run_all_unittests",
|
| + "//ios/components/io_thread:unit_tests",
|
| + ]
|
| +
|
| + assert_no_deps = ios_assert_no_deps
|
| +}
|
|
|