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

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

Issue 2653713004: Add service_test GN template (Closed)
Patch Set: . Created 3 years, 11 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
(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("//services/catalog/public/tools/catalog.gni")
6 import("//testing/test.gni")
7
8 # Generates a unittest binary with a baked-in Service Manager catalog manifest.
9 #
10 # Parameters:
11 #
12 # catalog
13 # The catalog target whose output should be used as the static catalog
14 # manifest for this test binary.
15 #
16 template("service_test") {
17 assert(defined(invoker.catalog), "service_test must specify a catalog")
18
19 catalog_source_target = "${target_name}__catalog_source"
20
21 test(target_name) {
22 forward_variables_from(invoker, "*", [ "catalog" ])
23
24 if (!defined(deps)) {
25 deps = []
26 }
27 deps += [
28 ":$catalog_source_target",
29 "//services/service_manager/public/cpp/test:run_all_service_tests_with_cat alog",
30 ]
31 }
32
33 catalog_cpp_source(catalog_source_target) {
34 catalog = invoker.catalog
35 output_symbol_name = "service_manager::test::kServiceTestCatalog"
36 }
37 }
OLDNEW
« no previous file with comments | « services/service_manager/public/cpp/test/service_test_catalog.h ('k') | services/ui/clipboard/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698