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

Unified Diff: components/printing/service/BUILD.gn

Issue 2919823004: Add error handling and unit test for pdf compositor service (Closed)
Patch Set: rebase Created 3 years, 5 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 | « no previous file | components/printing/service/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/printing/service/BUILD.gn
diff --git a/components/printing/service/BUILD.gn b/components/printing/service/BUILD.gn
index 077ee2813b083694428db8fb504457f3782da5c0..f28f1440fc0b71ead7563109af66ba4a9708dc18 100644
--- a/components/printing/service/BUILD.gn
+++ b/components/printing/service/BUILD.gn
@@ -4,6 +4,7 @@
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")
static_library("service") {
sources = [
@@ -33,3 +34,49 @@ service_manifest("pdf_compositor_manifest") {
name = "pdf_compositor"
source = "pdf_compositor_manifest.json"
}
+
+service("pdf_compositor_test_service") {
+ testonly = true
+
+ sources = [
+ "test_service_main.cc",
+ ]
+
+ deps = [
+ ":service",
+ "//base",
+ "//base/test:test_support",
+ ]
+}
+
+service_test("pdf_compositor_service_unittest") {
+ testonly = true
+
+ sources = [
+ "pdf_compositor_service_unittest.cc",
+ ]
+
+ catalog = ":pdf_compositor_service_unittest_catalog"
+
+ include_dirs = [ "testing/gmock/include" ]
+ deps = [
+ ":pdf_compositor_test_service",
+ "//base",
+ "//components/printing/service/public/interfaces",
+ "//mojo/common",
+ "//services/service_manager/public/cpp:service_test_support",
+ "//testing/gmock",
+ "//testing/gtest",
+ ]
+}
+
+service_manifest("pdf_compositor_service_unittest_manifest") {
+ name = "pdf_compositor_service_unittest"
+ source = "pdf_compositor_service_unittest_manifest.json"
+}
+
+catalog("pdf_compositor_service_unittest_catalog") {
+ testonly = true
+ embedded_services = [ ":pdf_compositor_service_unittest_manifest" ]
+ standalone_services = [ ":pdf_compositor_manifest" ]
+}
« no previous file with comments | « no previous file | components/printing/service/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698