Index: components/leveldb/BUILD.gn |
diff --git a/components/leveldb/BUILD.gn b/components/leveldb/BUILD.gn |
index db4f708965026a8238ec18eef16fb40da21b9d28..5930be901afad6b06844cce875706b8d421a14cd 100644 |
--- a/components/leveldb/BUILD.gn |
+++ b/components/leveldb/BUILD.gn |
@@ -2,6 +2,7 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
+import("//services/catalog/public/tools/catalog.gni") |
import("//services/service_manager/public/cpp/service.gni") |
import("//services/service_manager/public/service_manifest.gni") |
import("//testing/test.gni") |
@@ -63,25 +64,28 @@ test("leveldb_service_unittests") { |
sources = [ |
"leveldb_service_unittest.cc", |
"remote_iterator_unittest.cc", |
+ "run_all_unittests.cc", |
] |
deps = [ |
"//base", |
+ "//base/test:test_support", |
"//components/filesystem/public/interfaces", |
"//components/leveldb/public/cpp", |
"//components/leveldb/public/interfaces", |
"//mojo/common", |
+ "//mojo/edk/system", |
"//mojo/public/cpp/bindings", |
"//mojo/public/cpp/system", |
+ "//services/catalog:lib", |
"//services/service_manager/public/cpp:service_test_support", |
"//services/service_manager/public/cpp:sources", |
- "//services/service_manager/public/cpp/test:run_all_service_tests", |
"//third_party/leveldatabase", |
] |
data_deps = [ |
- ":test_manifest", |
":leveldb", |
+ ":leveldb_service_unittests_catalog_copy", |
"//components/filesystem:filesystem", |
] |
} |
@@ -90,3 +94,21 @@ service_manifest("test_manifest") { |
name = "leveldb_service_unittests" |
source = "test_manifest.json" |
} |
+ |
+catalog("leveldb_service_unittests_catalog") { |
+ embedded_services = [ ":test_manifest" ] |
+ standalone_services = [ |
+ ":manifest", |
+ "//components/filesystem:manifest", |
+ ] |
+} |
+ |
+copy("leveldb_service_unittests_catalog_copy") { |
+ sources = get_target_outputs(":leveldb_service_unittests_catalog") |
+ outputs = [ |
+ "${root_out_dir}/leveldb_service_unittests_catalog.json", |
+ ] |
+ deps = [ |
+ ":leveldb_service_unittests_catalog", |
+ ] |
+} |