OLD | NEW |
1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 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/service_manager/public/cpp/service.gni") | 5 import("//services/service_manager/public/cpp/service.gni") |
6 import("//services/service_manager/public/service_manifest.gni") | 6 import("//services/service_manager/public/service_manifest.gni") |
| 7 import("//services/service_manager/public/tools/test/service_test.gni") |
7 | 8 |
8 static_library("service") { | 9 static_library("service") { |
9 sources = [ | 10 sources = [ |
10 "pdf_compositor_impl.cc", | 11 "pdf_compositor_impl.cc", |
11 "pdf_compositor_impl.h", | 12 "pdf_compositor_impl.h", |
12 "pdf_compositor_service.cc", | 13 "pdf_compositor_service.cc", |
13 "pdf_compositor_service.h", | 14 "pdf_compositor_service.h", |
14 ] | 15 ] |
15 | 16 |
16 deps = [ | 17 deps = [ |
17 "//base", | 18 "//base", |
18 "//components/discardable_memory/client", | 19 "//components/discardable_memory/client", |
19 "//components/discardable_memory/public/interfaces", | 20 "//components/discardable_memory/public/interfaces", |
20 "//content/public/common:service_names", | 21 "//content/public/common:service_names", |
21 "//content/public/utility", | 22 "//content/public/utility", |
22 "//printing/common", | 23 "//printing/common", |
23 "//skia", | 24 "//skia", |
24 ] | 25 ] |
25 | 26 |
26 public_deps = [ | 27 public_deps = [ |
27 "//components/printing/service/public/interfaces", | 28 "//components/printing/service/public/interfaces", |
28 "//services/service_manager/public/cpp", | 29 "//services/service_manager/public/cpp", |
29 ] | 30 ] |
30 } | 31 } |
31 | 32 |
32 service_manifest("pdf_compositor_manifest") { | 33 service_manifest("pdf_compositor_manifest") { |
33 name = "pdf_compositor" | 34 name = "pdf_compositor" |
34 source = "pdf_compositor_manifest.json" | 35 source = "pdf_compositor_manifest.json" |
35 } | 36 } |
| 37 |
| 38 service("pdf_compositor") { |
| 39 testonly = true |
| 40 |
| 41 sources = [ |
| 42 "service_main.cc", |
| 43 ] |
| 44 |
| 45 deps = [ |
| 46 ":service", |
| 47 "//base", |
| 48 "//base/test:test_support", |
| 49 ] |
| 50 } |
| 51 |
| 52 service_test("pdf_compositor_service_unittest") { |
| 53 testonly = true |
| 54 |
| 55 sources = [ |
| 56 "pdf_compositor_service_unittest.cc", |
| 57 ] |
| 58 |
| 59 catalog = ":pdf_compositor_service_unittest_catalog" |
| 60 |
| 61 include_dirs = [ "testing/gmock/include" ] |
| 62 deps = [ |
| 63 ":pdf_compositor", |
| 64 "//base", |
| 65 "//components/printing/service/public/interfaces", |
| 66 "//mojo/common", |
| 67 "//services/service_manager/public/cpp:service_test_support", |
| 68 "//testing/gmock", |
| 69 "//testing/gtest", |
| 70 ] |
| 71 } |
| 72 |
| 73 service_manifest("pdf_compositor_service_unittest_manifest") { |
| 74 name = "pdf_compositor_service_unittest" |
| 75 source = "pdf_compositor_service_unittest_manifest.json" |
| 76 } |
| 77 |
| 78 catalog("pdf_compositor_service_unittest_catalog") { |
| 79 testonly = true |
| 80 embedded_services = [ ":pdf_compositor_service_unittest_manifest" ] |
| 81 standalone_services = [ ":pdf_compositor_manifest" ] |
| 82 } |
OLD | NEW |