Index: services/test/BUILD.gn |
diff --git a/services/test/BUILD.gn b/services/test/BUILD.gn |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6a28acdd9202efa548dac89d5d6ab2c20666ad1f |
--- /dev/null |
+++ b/services/test/BUILD.gn |
@@ -0,0 +1,59 @@ |
+# Copyright 2016 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+import("//services/service_manager/public/cpp/service.gni") |
+import("//services/service_manager/public/service_manifest.gni") |
+import("//services/service_manager/public/tools/test/service_test.gni") |
+import("//testing/test.gni") |
+ |
+service("test") { |
+ sources = [ |
+ "service_impl.cc", |
+ "service_impl.h", |
+ "service_main.cc", |
+ ] |
+ |
+ deps = [ |
+ "//mojo/public/cpp/system", |
+ "//services/service_manager/public/cpp", |
+ "//services/test/public/interfaces", |
+ ] |
+} |
+ |
+service_manifest("manifest") { |
+ name = "test" |
+ source = "service_manifest.json" |
+} |
+ |
+source_set("tests") { |
+ testonly = true |
+ |
+ sources = [ |
+ "service_unittest.cc", |
+ ] |
+ |
+ deps = [ |
+ ":test", |
+ "//base/test:test_support", |
+ "//services/service_manager/public/cpp", |
+ "//services/service_manager/public/cpp:service_test_support", |
+ "//services/test/public/interfaces", |
+ "//testing/gmock", |
+ "//testing/gtest", |
+ ] |
+ |
+ data_deps = [ |
+ ":test", |
+ ] |
+} |
+ |
+service_manifest("unittest_manifest") { |
+ name = "test_unittests" |
+ source = "service_unittest_manifest.json" |
+} |
+ |
+catalog("tests_catalog") { |
+ embedded_services = [ ":unittest_manifest" ] |
+ standalone_services = [ ":manifest" ] |
+} |