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("//testing/test.gni") | 5 import("//testing/test.gni") |
6 | 6 |
7 source_set("unit_tests") { | 7 source_set("unit_tests") { |
8 testonly = true | 8 testonly = true |
9 sources = [ | 9 sources = [ |
10 "clients/mojo_audio_decoder_unittest.cc", | 10 "clients/mojo_audio_decoder_unittest.cc", |
11 "clients/mojo_cdm_unittest.cc", | 11 "clients/mojo_cdm_unittest.cc", |
12 "clients/mojo_renderer_unittest.cc", | 12 "clients/mojo_renderer_unittest.cc", |
13 "common/media_type_converters_unittest.cc", | 13 "common/media_type_converters_unittest.cc", |
14 "common/mojo_decoder_buffer_converter_unittest.cc", | 14 "common/mojo_decoder_buffer_converter_unittest.cc", |
15 "common/mojo_shared_buffer_video_frame_unittest.cc", | 15 "common/mojo_shared_buffer_video_frame_unittest.cc", |
16 "services/mojo_cdm_allocator_unittest.cc", | 16 "services/mojo_cdm_allocator_unittest.cc", |
17 ] | 17 ] |
18 | 18 |
19 # As long as //media/mojo/services:lib is a source_set, this needs to be | |
20 # set as the source will be bundled with this test code. | |
21 # http://crbug.com/670094 | |
22 defines = [ "MEDIA_MOJO_IMPLEMENTATION" ] | |
23 | |
19 deps = [ | 24 deps = [ |
20 "//base", | 25 "//base", |
21 "//base/test:test_support", | 26 "//base/test:test_support", |
22 "//media", | 27 "//media", |
23 "//media:cdm_api", | 28 "//media:cdm_api", |
24 "//media/base:test_support", | 29 "//media/base:test_support", |
25 "//media/mojo/clients", | 30 "//media/mojo/clients", |
26 "//media/mojo/common", | 31 "//media/mojo/common", |
27 "//media/mojo/interfaces", | 32 "//media/mojo/interfaces", |
28 "//media/mojo/services:lib", | 33 "//media/mojo/services:lib", |
xhwang
2017/03/08 00:35:18
Can you depend on //media/mojo/services instead th
| |
29 "//services/service_manager/tests:interfaces", | 34 "//services/service_manager/tests:interfaces", |
30 "//testing/gmock", | 35 "//testing/gmock", |
31 "//testing/gtest", | 36 "//testing/gtest", |
32 "//ui/gfx:test_support", | 37 "//ui/gfx:test_support", |
33 ] | 38 ] |
34 } | 39 } |
35 | 40 |
36 test("media_mojo_unittests") { | 41 test("media_mojo_unittests") { |
37 # crbug.com/676418: Suppress symbol import warnings. | |
38 if (is_win && is_component_build) { | |
39 ldflags = [ | |
40 "/ignore:4217", | |
41 "/ignore:4049", | |
42 ] | |
43 } | |
44 | |
45 deps = [ | 42 deps = [ |
46 ":unit_tests", | 43 ":unit_tests", |
47 "//mojo/edk/test:run_all_unittests", | 44 "//mojo/edk/test:run_all_unittests", |
48 ] | 45 ] |
49 } | 46 } |
OLD | NEW |