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

Side by Side Diff: components/filesystem/BUILD.gn

Issue 2653713004: Add service_test GN template (Closed)
Patch Set: . Created 3 years, 10 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 | « no previous file | components/filesystem/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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 static_library("lib") { 11 static_library("lib") {
11 sources = [ 12 sources = [
12 "directory_impl.cc", 13 "directory_impl.cc",
13 "directory_impl.h", 14 "directory_impl.h",
14 "file_impl.cc", 15 "file_impl.cc",
15 "file_impl.h", 16 "file_impl.h",
16 "file_system_impl.cc", 17 "file_system_impl.cc",
17 "file_system_impl.h", 18 "file_system_impl.h",
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 data_deps = [ 57 data_deps = [
57 ":manifest", 58 ":manifest",
58 ] 59 ]
59 } 60 }
60 61
61 service_manifest("manifest") { 62 service_manifest("manifest") {
62 name = "filesystem" 63 name = "filesystem"
63 source = "manifest.json" 64 source = "manifest.json"
64 } 65 }
65 66
66 test("filesystem_service_unittests") { 67 service_test("filesystem_service_unittests") {
67 sources = [ 68 sources = [
68 "directory_impl_unittest.cc", 69 "directory_impl_unittest.cc",
69 "file_impl_unittest.cc", 70 "file_impl_unittest.cc",
70 "files_test_base.cc", 71 "files_test_base.cc",
71 "files_test_base.h", 72 "files_test_base.h",
72 "run_all_unittests.cc",
73 ] 73 ]
74 74
75 catalog = ":filesystem_service_unittests_catalog"
76
75 deps = [ 77 deps = [
76 "//base", 78 "//base",
77 "//base/test:test_support",
78 "//components/filesystem/public/interfaces", 79 "//components/filesystem/public/interfaces",
79 "//mojo/common", 80 "//mojo/common",
80 "//mojo/edk/system",
81 "//mojo/public/cpp/bindings", 81 "//mojo/public/cpp/bindings",
82 "//mojo/public/cpp/system", 82 "//mojo/public/cpp/system",
83 "//services/catalog:lib",
84 "//services/service_manager/public/cpp:service_test_support", 83 "//services/service_manager/public/cpp:service_test_support",
85 "//services/service_manager/public/cpp:sources", 84 "//services/service_manager/public/cpp:sources",
86 ] 85 ]
87 86
88 data_deps = [ 87 data_deps = [
89 ":filesystem", 88 ":filesystem",
90 ":filesystem_service_unittests_catalog_copy",
91 ] 89 ]
92 } 90 }
93 91
94 service_manifest("test_manifest") { 92 service_manifest("test_manifest") {
95 name = "filesystem_service_unittests" 93 name = "filesystem_service_unittests"
96 source = "test_manifest.json" 94 source = "test_manifest.json"
97 } 95 }
98 96
99 catalog("filesystem_service_unittests_catalog") { 97 catalog("filesystem_service_unittests_catalog") {
100 embedded_services = [ ":test_manifest" ] 98 embedded_services = [ ":test_manifest" ]
101 standalone_services = [ ":manifest" ] 99 standalone_services = [ ":manifest" ]
102 } 100 }
103
104 copy("filesystem_service_unittests_catalog_copy") {
105 sources = get_target_outputs(":filesystem_service_unittests_catalog")
106 outputs = [
107 "${root_out_dir}/filesystem_service_unittests_catalog.json",
108 ]
109 deps = [
110 ":filesystem_service_unittests_catalog",
111 ]
112 }
OLDNEW
« no previous file with comments | « no previous file | components/filesystem/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698