OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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("//services/catalog/public/tools/catalog.gni") | 5 import("//services/catalog/public/tools/catalog.gni") |
6 import("//services/service_manager/public/tools/test/service_test.gni") | 6 import("//services/service_manager/public/tools/test/service_test.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 | 8 |
9 # One Big Target for services to register their unit test sources. This exists | 9 # One Big Target for services to register their unit test sources. This exists |
10 # to avoid having to maintain a separate test binary for every service. | 10 # to avoid having to maintain a separate test binary for every service. |
11 # | 11 # |
12 # To add tests for a new service, please define a "tests" source_set in the | 12 # To add tests for a new service, please define a "tests" source_set in the |
13 # service subdirectory and add it as a dependency here. If your unit tests | 13 # service subdirectory and add it as a dependency here. If your unit tests |
14 # use the ServiceTest framework, you must also include corresponding catalog | 14 # use the ServiceTest framework, you must also include corresponding catalog |
15 # entries in the "service_unittests_catalog" target below. | 15 # entries in the "service_unittests_catalog" target below. |
16 service_test("service_unittests") { | 16 service_test("service_unittests") { |
17 deps = [ | 17 deps = [ |
18 "//services/device:tests", | 18 "//services/device:tests", |
19 "//services/image_decoder:tests", | 19 "//services/image_decoder:tests", |
20 "//services/memory_instrumentation:tests", | 20 "//services/memory_instrumentation:tests", |
21 "//services/shape_detection:tests", | |
22 ] | 21 ] |
23 | 22 |
24 if (is_android) { | 23 if (is_android) { |
25 # Some tests need to initialize V8. | 24 # Some tests need to initialize V8. |
26 deps += [ "//v8:v8_external_startup_data_assets" ] | 25 deps += [ "//v8:v8_external_startup_data_assets" ] |
27 } else { | 26 } else { |
28 # NOTE: We do not currently support standalone service binaries on Android, | 27 # NOTE: We do not currently support standalone service binaries on Android, |
29 # so any tests which use the ServiceTest framework to connect to standalone | 28 # so any tests which use the ServiceTest framework to connect to standalone |
30 # services must be added here. | 29 # services must be added here. |
31 deps += [ "//services/video_capture:tests" ] | 30 deps += [ "//services/video_capture:tests" ] |
32 } | 31 } |
33 | 32 |
34 catalog = ":service_unittests_catalog" | 33 catalog = ":service_unittests_catalog" |
35 } | 34 } |
36 | 35 |
37 catalog("service_unittests_catalog") { | 36 catalog("service_unittests_catalog") { |
38 catalog_deps = [ "//services/video_capture:tests_catalog" ] | 37 catalog_deps = [ "//services/video_capture:tests_catalog" ] |
39 } | 38 } |
OLD | NEW |