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 # There should be only one resource coordinator. It is currently | 5 # There should be only one resource coordinator. It is currently |
6 # in the browser process. So, only //content/browser should link to this target. | 6 # in the browser process. So, only //content/browser should link to this target. |
7 # Others modules should only need the public targets. | 7 # Others modules should only need the public targets. |
8 import("//services/catalog/public/tools/catalog.gni") | 8 import("//services/catalog/public/tools/catalog.gni") |
9 import("//services/service_manager/public/cpp/service.gni") | 9 import("//services/service_manager/public/cpp/service.gni") |
10 import("//services/service_manager/public/service_manifest.gni") | 10 import("//services/service_manager/public/service_manifest.gni") |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 testonly = true | 51 testonly = true |
52 | 52 |
53 sources = [ | 53 sources = [ |
54 "coordination_unit/coordination_unit_impl_unittest.cc", | 54 "coordination_unit/coordination_unit_impl_unittest.cc", |
55 "memory_instrumentation/coordinator_impl_unittest.cc", | 55 "memory_instrumentation/coordinator_impl_unittest.cc", |
56 "memory_instrumentation/process_map_unittest.cc", | 56 "memory_instrumentation/process_map_unittest.cc", |
57 "public/cpp/memory_instrumentation/client_process_impl_unittest.cc", | 57 "public/cpp/memory_instrumentation/client_process_impl_unittest.cc", |
58 "public/cpp/tracing/chrome_trace_event_agent_unittest.cc", | 58 "public/cpp/tracing/chrome_trace_event_agent_unittest.cc", |
59 ] | 59 ] |
60 | 60 |
| 61 if (!is_android) { |
| 62 sources += [ "resource_coordinator_service_unittest.cc" ] |
| 63 } |
| 64 |
61 deps = [ | 65 deps = [ |
62 ":lib", | 66 ":lib", |
63 "//base", | 67 "//base", |
64 "//base/test:test_support", | 68 "//base/test:test_support", |
65 "//mojo/public/cpp/bindings", | 69 "//mojo/public/cpp/bindings", |
66 "//services/resource_coordinator/public/cpp:resource_coordinator_cpp", | 70 "//services/resource_coordinator/public/cpp:resource_coordinator_cpp", |
67 "//testing/gtest", | |
68 ] | |
69 | |
70 data_deps = [ | |
71 ":lib", | |
72 ] | |
73 } | |
74 | |
75 service_test("resource_coordinator_unittests") { | |
76 testonly = true | |
77 | |
78 sources = [ | |
79 "resource_coordinator_service_unittest.cc", | |
80 ] | |
81 | |
82 catalog = ":resource_coordinator_unittests_catalog" | |
83 | |
84 deps = [ | |
85 "//base", | |
86 "//mojo/public/cpp/bindings", | |
87 "//services/resource_coordinator/public/cpp:resource_coordinator_cpp", | |
88 "//services/service_manager/public/cpp", | 71 "//services/service_manager/public/cpp", |
89 "//services/service_manager/public/cpp:service_test_support", | 72 "//services/service_manager/public/cpp:service_test_support", |
90 "//services/service_manager/public/interfaces", | 73 "//services/service_manager/public/interfaces", |
91 "//testing/gtest", | 74 "//testing/gtest", |
92 ] | 75 ] |
93 | 76 |
94 data_deps = [ | 77 data_deps = [ |
95 ":resource_coordinator", | 78 ":resource_coordinator", |
| 79 ":lib", |
96 ] | 80 ] |
97 } | 81 } |
98 | 82 |
99 service_manifest("unittest_manifest") { | 83 service_manifest("unittest_manifest") { |
100 name = "resource_coordinator_unittests" | 84 name = "resource_coordinator_unittests" |
101 source = "unittest_manifest.json" | 85 source = "unittest_manifest.json" |
102 } | 86 } |
103 | 87 |
104 catalog("resource_coordinator_unittests_catalog") { | 88 catalog("tests_catalog") { |
| 89 testonly = true |
105 embedded_services = [ ":unittest_manifest" ] | 90 embedded_services = [ ":unittest_manifest" ] |
106 standalone_services = [ ":manifest" ] | 91 standalone_services = [ ":manifest" ] |
107 } | 92 } |
OLD | NEW |