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

Side by Side Diff: components/leveldb/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 | « components/filesystem/run_all_unittests.cc ('k') | components/leveldb/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 static_library("lib") { 11 static_library("lib") {
11 sources = [ 12 sources = [
12 "env_mojo.cc", 13 "env_mojo.cc",
13 "env_mojo.h", 14 "env_mojo.h",
14 "leveldb_database_impl.cc", 15 "leveldb_database_impl.cc",
15 "leveldb_database_impl.h", 16 "leveldb_database_impl.h",
16 "leveldb_mojo_proxy.cc", 17 "leveldb_mojo_proxy.cc",
17 "leveldb_mojo_proxy.h", 18 "leveldb_mojo_proxy.h",
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 data_deps = [ 54 data_deps = [
54 ":manifest", 55 ":manifest",
55 ] 56 ]
56 } 57 }
57 58
58 service_manifest("manifest") { 59 service_manifest("manifest") {
59 name = "leveldb" 60 name = "leveldb"
60 source = "manifest.json" 61 source = "manifest.json"
61 } 62 }
62 63
63 test("leveldb_service_unittests") { 64 service_test("leveldb_service_unittests") {
64 sources = [ 65 sources = [
65 "leveldb_service_unittest.cc", 66 "leveldb_service_unittest.cc",
66 "remote_iterator_unittest.cc", 67 "remote_iterator_unittest.cc",
67 "run_all_unittests.cc",
68 ] 68 ]
69 69
70 catalog = ":leveldb_service_unittests_catalog"
71
70 deps = [ 72 deps = [
71 "//base", 73 "//base",
72 "//base/test:test_support",
73 "//components/filesystem/public/interfaces", 74 "//components/filesystem/public/interfaces",
74 "//components/leveldb/public/cpp", 75 "//components/leveldb/public/cpp",
75 "//components/leveldb/public/interfaces", 76 "//components/leveldb/public/interfaces",
76 "//mojo/common", 77 "//mojo/common",
77 "//mojo/edk/system",
78 "//mojo/public/cpp/bindings", 78 "//mojo/public/cpp/bindings",
79 "//mojo/public/cpp/system", 79 "//mojo/public/cpp/system",
80 "//services/catalog:lib",
81 "//services/service_manager/public/cpp:service_test_support", 80 "//services/service_manager/public/cpp:service_test_support",
82 "//services/service_manager/public/cpp:sources", 81 "//services/service_manager/public/cpp:sources",
83 "//third_party/leveldatabase", 82 "//third_party/leveldatabase",
84 ] 83 ]
85 84
86 data_deps = [ 85 data_deps = [
87 ":leveldb", 86 ":leveldb",
88 ":leveldb_service_unittests_catalog_copy",
89 "//components/filesystem:filesystem", 87 "//components/filesystem:filesystem",
90 ] 88 ]
91 } 89 }
92 90
93 service_manifest("test_manifest") { 91 service_manifest("test_manifest") {
94 name = "leveldb_service_unittests" 92 name = "leveldb_service_unittests"
95 source = "test_manifest.json" 93 source = "test_manifest.json"
96 } 94 }
97 95
98 catalog("leveldb_service_unittests_catalog") { 96 catalog("leveldb_service_unittests_catalog") {
99 embedded_services = [ ":test_manifest" ] 97 embedded_services = [ ":test_manifest" ]
100 standalone_services = [ 98 standalone_services = [
101 ":manifest", 99 ":manifest",
102 "//components/filesystem:manifest", 100 "//components/filesystem:manifest",
103 ] 101 ]
104 } 102 }
105
106 copy("leveldb_service_unittests_catalog_copy") {
107 sources = get_target_outputs(":leveldb_service_unittests_catalog")
108 outputs = [
109 "${root_out_dir}/leveldb_service_unittests_catalog.json",
110 ]
111 deps = [
112 ":leveldb_service_unittests_catalog",
113 ]
114 }
OLDNEW
« no previous file with comments | « components/filesystem/run_all_unittests.cc ('k') | components/leveldb/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698