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("//build/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
6 import("//media/media_options.gni") | 6 import("//media/media_options.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 | 8 |
9 buildflag_header("features") { | 9 buildflag_header("features") { |
10 header = "features.h" | 10 header = "features.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 source_set("unit_tests") { | 67 source_set("unit_tests") { |
68 testonly = true | 68 testonly = true |
69 sources = [ | 69 sources = [ |
70 "clients/mojo_audio_decoder_unittest.cc", | 70 "clients/mojo_audio_decoder_unittest.cc", |
71 "clients/mojo_cdm_unittest.cc", | 71 "clients/mojo_cdm_unittest.cc", |
72 "clients/mojo_decryptor_unittest.cc", | 72 "clients/mojo_decryptor_unittest.cc", |
73 "clients/mojo_renderer_unittest.cc", | 73 "clients/mojo_renderer_unittest.cc", |
74 "common/media_type_converters_unittest.cc", | 74 "common/media_type_converters_unittest.cc", |
75 "common/mojo_decoder_buffer_converter_unittest.cc", | 75 "common/mojo_decoder_buffer_converter_unittest.cc", |
76 "common/mojo_shared_buffer_video_frame_unittest.cc", | 76 "common/mojo_shared_buffer_video_frame_unittest.cc", |
| 77 "interfaces/video_frame_struct_traits_unittest.cc", |
77 "services/mojo_audio_output_stream_unittest.cc", | 78 "services/mojo_audio_output_stream_unittest.cc", |
78 "services/mojo_cdm_allocator_unittest.cc", | 79 "services/mojo_cdm_allocator_unittest.cc", |
79 ] | 80 ] |
80 | 81 |
81 if (is_android) { | 82 if (is_android) { |
82 sources += [ "clients/mojo_android_overlay_unittest.cc" ] | 83 sources += [ "clients/mojo_android_overlay_unittest.cc" ] |
83 } | 84 } |
84 | 85 |
85 deps = [ | 86 deps = [ |
86 "//base", | 87 "//base", |
87 "//base/test:test_support", | 88 "//base/test:test_support", |
88 "//media", | 89 "//media", |
89 "//media:cdm_api", | 90 "//media:cdm_api", |
90 "//media/base:test_support", | 91 "//media/base:test_support", |
91 "//media/mojo/clients", | 92 "//media/mojo/clients", |
92 "//media/mojo/common", | 93 "//media/mojo/common", |
93 "//media/mojo/common:mojo_shared_buffer_video_frame", | 94 "//media/mojo/common:mojo_shared_buffer_video_frame", |
94 "//media/mojo/interfaces", | 95 "//media/mojo/interfaces", |
| 96 "//media/mojo/interfaces:test_interfaces", |
95 "//media/mojo/services:lib", | 97 "//media/mojo/services:lib", |
96 "//services/service_manager/tests:interfaces", | 98 "//services/service_manager/tests:interfaces", |
97 "//testing/gmock", | 99 "//testing/gmock", |
98 "//testing/gtest", | 100 "//testing/gtest", |
99 "//ui/gfx:test_support", | 101 "//ui/gfx:test_support", |
100 ] | 102 ] |
101 | 103 |
102 if (is_android) { | 104 if (is_android) { |
103 deps += [ | 105 deps += [ |
104 "//gpu/ipc/common:common", | 106 "//gpu/ipc/common:common", |
105 "//ui/gl:gl", | 107 "//ui/gl:gl", |
106 ] | 108 ] |
107 } | 109 } |
108 } | 110 } |
109 | 111 |
110 test("media_mojo_unittests") { | 112 test("media_mojo_unittests") { |
111 # crbug.com/676418: Suppress symbol import warnings. | 113 # crbug.com/676418: Suppress symbol import warnings. |
112 if (is_win && is_component_build) { | 114 if (is_win && is_component_build) { |
113 ldflags = [ | 115 ldflags = [ |
114 "/ignore:4217", | 116 "/ignore:4217", |
115 "/ignore:4049", | 117 "/ignore:4049", |
116 ] | 118 ] |
117 } | 119 } |
118 | 120 |
119 deps = [ | 121 deps = [ |
120 ":unit_tests", | 122 ":unit_tests", |
121 "//mojo/edk/test:run_all_unittests", | 123 "//mojo/edk/test:run_all_unittests", |
122 ] | 124 ] |
123 } | 125 } |
OLD | NEW |