OLD | NEW |
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/catalog/public/tools/catalog.gni") | |
7 import("//services/service_manager/public/cpp/service.gni") | 6 import("//services/service_manager/public/cpp/service.gni") |
8 import("//services/service_manager/public/service_manifest.gni") | 7 import("//services/service_manager/public/service_manifest.gni") |
9 import("//testing/test.gni") | 8 import("//testing/test.gni") |
10 | 9 |
11 config("mojo_media_config") { | 10 config("mojo_media_config") { |
12 if (!enable_mojo_media) { | 11 if (!enable_mojo_media) { |
13 assert(mojo_media_services == [], "Mojo media is not enabled") | 12 assert(mojo_media_services == [], "Mojo media is not enabled") |
14 assert(mojo_media_host == "none", "Mojo media is not enabled") | 13 assert(mojo_media_host == "none", "Mojo media is not enabled") |
15 assert(!enable_test_mojo_media_client, "Mojo media is not enabled") | 14 assert(!enable_test_mojo_media_client, "Mojo media is not enabled") |
16 } else { | 15 } else { |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 | 159 |
161 # crbug.com/676055: media_service_unittests currently fails to link in Windows | 160 # crbug.com/676055: media_service_unittests currently fails to link in Windows |
162 # component builds, so don't declare it, otherwise the "all" target will still | 161 # component builds, so don't declare it, otherwise the "all" target will still |
163 # try to build it. | 162 # try to build it. |
164 if (!(is_win && is_component_build)) { | 163 if (!(is_win && is_component_build)) { |
165 test("media_service_unittests") { | 164 test("media_service_unittests") { |
166 testonly = true | 165 testonly = true |
167 | 166 |
168 sources = [ | 167 sources = [ |
169 "media_service_unittest.cc", | 168 "media_service_unittest.cc", |
170 "run_all_unittests.cc", | |
171 ] | 169 ] |
172 | 170 |
173 deps = [ | 171 deps = [ |
174 "//base", | |
175 "//base/test:test_support", | |
176 "//media", | 172 "//media", |
177 "//media/base:test_support", | 173 "//media/base:test_support", |
178 "//media/mojo/clients", | 174 "//media/mojo/clients", |
179 "//media/mojo/common", | 175 "//media/mojo/common", |
180 "//media/mojo/interfaces", | 176 "//media/mojo/interfaces", |
181 "//mojo/edk/system", | |
182 "//services/catalog:lib", | |
183 "//services/service_manager/public/cpp:service_test_support", | 177 "//services/service_manager/public/cpp:service_test_support", |
| 178 "//services/service_manager/public/cpp/test:run_all_service_tests", |
184 "//testing/gmock", | 179 "//testing/gmock", |
185 "//testing/gtest", | 180 "//testing/gtest", |
186 ] | 181 ] |
187 | 182 |
188 data_deps = [ | 183 data_deps = [ |
189 ":media", | 184 ":media", |
190 ":media_service_unittests_catalog_copy", | 185 ":test_manifest", |
191 ] | 186 ] |
192 } | 187 } |
193 } # !(is_win && is_component_build) | 188 } # !(is_win && is_component_build) |
194 | 189 |
195 service_manifest("media_manifest") { | 190 service_manifest("media_manifest") { |
196 name = "media" | 191 name = "media" |
197 source = "media_manifest.json" | 192 source = "media_manifest.json" |
198 } | 193 } |
199 | 194 |
200 service_manifest("test_manifest") { | 195 service_manifest("test_manifest") { |
(...skipping 12 matching lines...) Expand all Loading... |
213 data_deps = [ | 208 data_deps = [ |
214 ":media", | 209 ":media", |
215 ":pipeline_test_manifest", | 210 ":pipeline_test_manifest", |
216 ] | 211 ] |
217 } | 212 } |
218 | 213 |
219 service_manifest("pipeline_test_manifest") { | 214 service_manifest("pipeline_test_manifest") { |
220 name = "media_pipeline_integration_unittests" | 215 name = "media_pipeline_integration_unittests" |
221 source = "pipeline_test_manifest.json" | 216 source = "pipeline_test_manifest.json" |
222 } | 217 } |
223 | |
224 catalog("media_service_unittests_catalog") { | |
225 embedded_services = [ ":test_manifest" ] | |
226 standalone_services = [ ":media_manifest" ] | |
227 } | |
228 | |
229 copy("media_service_unittests_catalog_copy") { | |
230 sources = get_target_outputs(":media_service_unittests_catalog") | |
231 outputs = [ | |
232 "${root_out_dir}/media_service_unittests_catalog.json", | |
233 ] | |
234 deps = [ | |
235 ":media_service_unittests_catalog", | |
236 ] | |
237 } | |
OLD | NEW |