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

Side by Side Diff: media/mojo/services/BUILD.gn

Issue 2546633002: media: Fix media_mojo_shell_unittests (Closed)
Patch Set: media: Fix media_mojo_shell_unittests Created 4 years 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 unified diff | Download patch
« no previous file with comments | « media/mojo/BUILD.gn ('k') | media/mojo/services/apptest_manifest.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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("//media/media_options.gni") 5 import("//media/media_options.gni")
6 import("//services/service_manager/public/cpp/service.gni") 6 import("//services/service_manager/public/cpp/service.gni")
7 import("//services/service_manager/public/service_manifest.gni") 7 import("//services/service_manager/public/service_manifest.gni")
8 import("//testing/test.gni") 8 import("//testing/test.gni")
9 9
10 config("mojo_media_config") { 10 config("mojo_media_config") {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 if (enable_test_mojo_media_client) { 43 if (enable_test_mojo_media_client) {
44 defines += [ "ENABLE_TEST_MOJO_MEDIA_CLIENT" ] 44 defines += [ "ENABLE_TEST_MOJO_MEDIA_CLIENT" ]
45 } 45 }
46 } 46 }
47 } 47 }
48 48
49 component("services") { 49 component("services") {
50 output_name = "media_mojo_services" 50 output_name = "media_mojo_services"
51 51
52 public_deps = [
53 ":media_service",
54 ]
55 }
56
57 # TODO(xhwang): Add this intermediate target because ServiceTest doesn't support
58 # services that depend on shared libraries in component build.
59 # See http://crbug.com/670094
60 source_set("media_service") {
alokp 2016/12/01 18:36:11 nit: would it make sense to make "services" target
xhwang 2016/12/01 22:02:13 We did use source_set before that there was a bug
52 sources = [ 61 sources = [
53 "demuxer_stream_provider_shim.cc", 62 "demuxer_stream_provider_shim.cc",
54 "demuxer_stream_provider_shim.h", 63 "demuxer_stream_provider_shim.h",
55 "interface_factory_impl.cc", 64 "interface_factory_impl.cc",
56 "interface_factory_impl.h", 65 "interface_factory_impl.h",
57 "media_mojo_export.h", 66 "media_mojo_export.h",
58 "media_service.cc", 67 "media_service.cc",
59 "media_service.h", 68 "media_service.h",
60 "media_service_factory.cc", 69 "media_service_factory.cc",
61 "media_service_factory.h", 70 "media_service_factory.h",
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 } 128 }
120 129
121 service("media") { 130 service("media") {
122 testonly = true 131 testonly = true
123 132
124 sources = [ 133 sources = [
125 "main.cc", 134 "main.cc",
126 ] 135 ]
127 136
128 public_deps = [ 137 public_deps = [
129 ":services",
130 "//base", 138 "//base",
131 "//media", 139 "//media",
132 ] 140 ]
133 141
134 deps = [ 142 deps = [
143 ":media_service",
135 "//mojo/public/c/system", 144 "//mojo/public/c/system",
136 "//services/service_manager/public/cpp", 145 "//services/service_manager/public/cpp",
137 ] 146 ]
147
148 data_deps = [
149 ":media_manifest",
150 ]
138 } 151 }
139 152
140 test("media_mojo_shell_unittests") { 153 test("media_mojo_shell_unittests") {
141 testonly = true 154 testonly = true
142 155
143 sources = [ 156 sources = [
144 "media_mojo_unittest.cc", 157 "media_mojo_unittest.cc",
145 ] 158 ]
146 159
147 deps = [ 160 deps = [
148 "//media", 161 "//media",
149 "//media/base:test_support", 162 "//media/base:test_support",
150 "//media/mojo/clients", 163 "//media/mojo/clients",
151 "//media/mojo/common", 164 "//media/mojo/common",
152 "//media/mojo/interfaces", 165 "//media/mojo/interfaces",
153 "//services/service_manager/public/cpp:service_test_support", 166 "//services/service_manager/public/cpp:service_test_support",
154 "//services/service_manager/public/cpp/test:run_all_service_tests", 167 "//services/service_manager/public/cpp/test:run_all_service_tests",
155 "//testing/gmock", 168 "//testing/gmock",
156 "//testing/gtest", 169 "//testing/gtest",
157 ] 170 ]
158 171
159 data_deps = [ 172 data_deps = [
160 "//media/mojo/services:test_manifest", 173 ":media",
161 "//media/mojo/services:media", 174 ":test_manifest",
162 ] 175 ]
163 } 176 }
164 177
165 service_manifest("media_manifest") { 178 service_manifest("media_manifest") {
166 name = "media" 179 name = "media"
167 source = "media_manifest.json" 180 source = "media_manifest.json"
168 } 181 }
169 182
170 service_manifest("test_manifest") { 183 service_manifest("test_manifest") {
171 name = "media_mojo_shell_unittests" 184 name = "media_mojo_shell_unittests"
(...skipping 11 matching lines...) Expand all
183 data_deps = [ 196 data_deps = [
184 ":media", 197 ":media",
185 ":pipeline_test_manifest", 198 ":pipeline_test_manifest",
186 ] 199 ]
187 } 200 }
188 201
189 service_manifest("pipeline_test_manifest") { 202 service_manifest("pipeline_test_manifest") {
190 name = "media_pipeline_integration_unittests" 203 name = "media_pipeline_integration_unittests"
191 source = "pipeline_test_manifest.json" 204 source = "pipeline_test_manifest.json"
192 } 205 }
OLDNEW
« no previous file with comments | « media/mojo/BUILD.gn ('k') | media/mojo/services/apptest_manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698