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

Unified Diff: services/test/BUILD.gn

Issue 2829003005: Test service as minimum repro for sharing memory handle (Closed)
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/BUILD.gn ('k') | services/test/public/interfaces/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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" ]
+}
« no previous file with comments | « services/BUILD.gn ('k') | services/test/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698