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

Side by Side Diff: services/ui/clipboard/BUILD.gn

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
« no previous file with comments | « services/service_manager/public/tools/test/service_test.gni ('k') | services/ui/clipboard/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/cpp/service.gni") 6 import("//services/service_manager/public/cpp/service.gni")
7 import("//services/service_manager/public/service_manifest.gni") 7 import("//services/service_manager/public/service_manifest.gni")
8 import("//services/service_manager/public/tools/test/service_test.gni")
8 import("//testing/test.gni") 9 import("//testing/test.gni")
9 10
10 source_set("lib") { 11 source_set("lib") {
11 sources = [ 12 sources = [
12 "clipboard_impl.cc", 13 "clipboard_impl.cc",
13 "clipboard_impl.h", 14 "clipboard_impl.h",
14 ] 15 ]
15 16
16 deps = [ 17 deps = [
17 "//base", 18 "//base",
18 "//mojo/common", 19 "//mojo/common",
19 "//mojo/public/cpp/bindings", 20 "//mojo/public/cpp/bindings",
20 "//services/service_manager/public/cpp", 21 "//services/service_manager/public/cpp",
21 "//services/tracing/public/cpp", 22 "//services/tracing/public/cpp",
22 "//services/ui/public/interfaces", 23 "//services/ui/public/interfaces",
23 ] 24 ]
24 } 25 }
25 26
26 group("tests") { 27 group("tests") {
27 testonly = true 28 testonly = true
28 deps = [ 29 deps = [
29 ":mus_clipboard_unittests", 30 ":mus_clipboard_unittests",
30 ] 31 ]
31 } 32 }
32 33
33 test("mus_clipboard_unittests") { 34 service_test("mus_clipboard_unittests") {
34 sources = [ 35 sources = [
35 "clipboard_unittest.cc", 36 "clipboard_unittest.cc",
36 "run_all_unittests.cc",
37 ] 37 ]
38 38
39 catalog = ":mus_clipboard_unittests_catalog"
40
39 deps = [ 41 deps = [
40 "//base", 42 "//base",
41 "//base/test:test_support",
42 "//mojo/common", 43 "//mojo/common",
43 "//mojo/edk/system",
44 "//services/catalog:lib",
45 "//services/service_manager/public/cpp:service_test_support", 44 "//services/service_manager/public/cpp:service_test_support",
46 "//services/service_manager/public/cpp:sources", 45 "//services/service_manager/public/cpp:sources",
47 "//services/ui/public/interfaces", 46 "//services/ui/public/interfaces",
48 ] 47 ]
49 48
50 data_deps = [ 49 data_deps = [
51 ":lib", 50 ":lib",
52 ":mus_clipboard_unittests_catalog_copy",
53 "//services/ui", 51 "//services/ui",
54 ] 52 ]
55 } 53 }
56 54
57 service_manifest("test_manifest") { 55 service_manifest("test_manifest") {
58 name = "mus_clipboard_unittests" 56 name = "mus_clipboard_unittests"
59 source = "test_manifest.json" 57 source = "test_manifest.json"
60 } 58 }
61 59
62 catalog("mus_clipboard_unittests_catalog") { 60 catalog("mus_clipboard_unittests_catalog") {
63 embedded_services = [ ":test_manifest" ] 61 embedded_services = [ ":test_manifest" ]
64 standalone_services = [ "//services/ui:manifest" ] 62 standalone_services = [ "//services/ui:manifest" ]
65 } 63 }
66
67 copy("mus_clipboard_unittests_catalog_copy") {
68 sources = get_target_outputs(":mus_clipboard_unittests_catalog")
69 outputs = [
70 "${root_out_dir}/mus_clipboard_unittests_catalog.json",
71 ]
72 deps = [
73 ":mus_clipboard_unittests_catalog",
74 ]
75 }
OLDNEW
« no previous file with comments | « services/service_manager/public/tools/test/service_test.gni ('k') | services/ui/clipboard/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698