Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Side by Side Diff: services/service_manager/public/tools/test/service_test.gni

Issue 2897123004: Move display_service_unittests to services_unittests. (Closed)
Patch Set: services -> service_manager Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2017 The Chromium Authors. All rights reserved. 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 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("//testing/test.gni") 6 import("//testing/test.gni")
7 7
8 # Generates a unittest binary with a baked-in Service Manager catalog manifest. 8 # Generates a unittest binary with a baked-in Service Manager catalog manifest.
9 # 9 #
10 # Parameters: 10 # Parameters:
11 # 11 #
12 # catalog 12 # catalog
13 # The catalog target whose output should be used as the static catalog 13 # The catalog target whose output should be used as the static catalog
14 # manifest for this test binary. 14 # manifest for this test binary.
15 # 15 #
16 template("service_test") { 16 template("service_test") {
17 assert(defined(invoker.catalog), "service_test must specify a catalog") 17 assert(defined(invoker.catalog), "service_test must specify a catalog")
18 18
19 catalog_source_target = "${target_name}__catalog_source" 19 catalog_source_target = "${target_name}__catalog_source"
20 20
21 test(target_name) { 21 test(target_name) {
22 forward_variables_from(invoker, "*", [ "catalog" ]) 22 forward_variables_from(invoker,
23 "*",
24 [
25 "catalog",
26 "test_runner",
27 ])
23 28
24 if (!defined(deps)) { 29 if (!defined(deps)) {
25 deps = [] 30 deps = []
26 } 31 }
27 deps += [ 32 deps += [ ":$catalog_source_target" ]
28 ":$catalog_source_target", 33 if (defined(invoker.test_runner)) {
29 "//services/service_manager/public/cpp/test:run_all_service_tests", 34 deps += [ invoker.test_runner ]
30 ] 35 } else {
36 deps +=
37 [ "//services/service_manager/public/cpp/test:run_all_service_tests" ]
38 }
31 } 39 }
32 40
33 catalog_cpp_source(catalog_source_target) { 41 catalog_cpp_source(catalog_source_target) {
34 testonly = true 42 testonly = true
35 catalog = invoker.catalog 43 catalog = invoker.catalog
36 generated_function_name = "service_manager::test::CreateTestCatalog" 44 generated_function_name = "service_manager::test::CreateTestCatalog"
37 } 45 }
38 } 46 }
OLDNEW
« no previous file with comments | « services/service_manager/public/cpp/test/run_all_service_tests.cc ('k') | services/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698