suppress uninit error at WebEmbeddedWorkerImpl::startWorkerContext
[chromium-blink-merge.git] / media / cast / cast_testing.gypi
blobaef0fbd8c3e9eaba53f7c168e8da3a0a81fc4c4c
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
3 # found in the LICENSE file.
6   'targets': [
7     {
8       'target_name': 'cast_test_utility',
9       'type': 'static_library',
10       'include_dirs': [
11          '<(DEPTH)/',
12       ],
13       'dependencies': [
14         'cast_receiver',
15         'cast_transport',
16         '<(DEPTH)/testing/gtest.gyp:gtest',
17         '<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',
18         '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
19       ],
20       'sources': [
21         'test/fake_single_thread_task_runner.cc',
22         'test/fake_single_thread_task_runner.h',
23         'test/skewed_single_thread_task_runner.cc',
24         'test/skewed_single_thread_task_runner.h',
25         'test/skewed_tick_clock.cc',
26         'test/skewed_tick_clock.h',
27         'test/utility/audio_utility.cc',
28         'test/utility/audio_utility.h',
29         'test/utility/barcode.cc',
30         'test/utility/barcode.h',
31         'test/utility/default_config.cc',
32         'test/utility/default_config.h',
33         'test/utility/in_process_receiver.cc',
34         'test/utility/in_process_receiver.h',
35         'test/utility/input_builder.cc',
36         'test/utility/input_builder.h',
37         'test/utility/net_utility.cc',
38         'test/utility/net_utility.h',
39         'test/utility/standalone_cast_environment.cc',
40         'test/utility/standalone_cast_environment.h',
41         'test/utility/video_utility.cc',
42         'test/utility/video_utility.h',
43         'test/utility/udp_proxy.cc',
44         'test/utility/udp_proxy.h',
45       ], # source
46     },
47     {
48       'target_name': 'cast_unittests',
49       'type': '<(gtest_target_type)',
50       'include_dirs': [
51         '<(DEPTH)/',
52       ],
53       'dependencies': [
54         'cast_base',
55         'cast_receiver',
56         'cast_rtcp',
57         'cast_sender',
58         'cast_test_utility',
59         # Not a true dependency. This is here to make sure the CQ can verify
60         # the tools compile correctly.
61         'cast_tools',
62         'cast_transport',
63         '<(DEPTH)/base/base.gyp:test_support_base',
64         '<(DEPTH)/net/net.gyp:net',
65         '<(DEPTH)/testing/gmock.gyp:gmock',
66         '<(DEPTH)/testing/gtest.gyp:gtest',
67       ],
68       'sources': [
69         '<(DEPTH)/media/base/run_all_unittests.cc',
70         'audio_sender/audio_encoder_unittest.cc',
71         'audio_sender/audio_sender_unittest.cc',
72         'congestion_control/congestion_control_unittest.cc',
73         'framer/cast_message_builder_unittest.cc',
74         'framer/frame_buffer_unittest.cc',
75         'framer/framer_unittest.cc',
76         'logging/encoding_event_subscriber_unittest.cc',
77         'logging/serialize_deserialize_test.cc',
78         'logging/logging_impl_unittest.cc',
79         'logging/logging_raw_unittest.cc',
80         'logging/receiver_time_offset_estimator_impl_unittest.cc',
81         'logging/simple_event_subscriber_unittest.cc',
82         'logging/stats_event_subscriber_unittest.cc',
83         'receiver/audio_decoder_unittest.cc',
84         'receiver/frame_receiver_unittest.cc',
85         'receiver/video_decoder_unittest.cc',
86         'rtcp/mock_rtcp_receiver_feedback.cc',
87         'rtcp/mock_rtcp_receiver_feedback.h',
88         'rtcp/mock_rtcp_sender_feedback.cc',
89         'rtcp/mock_rtcp_sender_feedback.h',
90         'rtcp/rtcp_receiver_unittest.cc',
91         'rtcp/rtcp_sender_unittest.cc',
92         'rtcp/rtcp_unittest.cc',
93         'rtcp/receiver_rtcp_event_subscriber_unittest.cc',
94 # TODO(miu): The following two are test utility modules.  Rename/move the files.
95         'rtcp/test_rtcp_packet_builder.cc',
96         'rtcp/test_rtcp_packet_builder.h',
97         'rtp_receiver/rtp_receiver_defines.h',
98         'rtp_receiver/mock_rtp_payload_feedback.cc',
99         'rtp_receiver/mock_rtp_payload_feedback.h',
100         'rtp_receiver/receiver_stats_unittest.cc',
101         'rtp_receiver/rtp_parser/test/rtp_packet_builder.cc',
102         'rtp_receiver/rtp_parser/rtp_parser_unittest.cc',
103         'test/end2end_unittest.cc',
104         'test/fake_receiver_time_offset_estimator.cc',
105         'test/fake_receiver_time_offset_estimator.h',
106         'test/fake_single_thread_task_runner.cc',
107         'test/fake_single_thread_task_runner.h',
108         'test/fake_video_encode_accelerator.cc',
109         'test/fake_video_encode_accelerator.h',
110         'test/utility/audio_utility_unittest.cc',
111         'test/utility/barcode_unittest.cc',
112         'transport/cast_transport_sender_impl_unittest.cc',
113         'transport/pacing/mock_paced_packet_sender.cc',
114         'transport/pacing/mock_paced_packet_sender.h',
115         'transport/pacing/paced_sender_unittest.cc',
116         'transport/rtp_sender/packet_storage/packet_storage_unittest.cc',
117         'transport/rtp_sender/rtp_packetizer/rtp_packetizer_unittest.cc',
118         'transport/rtp_sender/rtp_packetizer/test/rtp_header_parser.cc',
119         'transport/rtp_sender/rtp_packetizer/test/rtp_header_parser.h',
120         'transport/transport/udp_transport_unittest.cc',
121         'video_sender/external_video_encoder_unittest.cc',
122         'video_sender/video_encoder_impl_unittest.cc',
123         'video_sender/video_sender_unittest.cc',
124       ], # source
125     },
126     {
127       'target_name': 'cast_benchmarks',
128       'type': '<(gtest_target_type)',
129       'include_dirs': [
130         '<(DEPTH)/',
131       ],
132       'dependencies': [
133         'cast_base',
134         'cast_receiver',
135         'cast_rtcp',
136         'cast_sender',
137         'cast_test_utility',
138         'cast_transport',
139         '<(DEPTH)/base/base.gyp:test_support_base',
140         '<(DEPTH)/net/net.gyp:net',
141         '<(DEPTH)/testing/gtest.gyp:gtest',
142       ],
143       'sources': [
144         'test/cast_benchmarks.cc',
145         'test/fake_single_thread_task_runner.cc',
146         'test/fake_single_thread_task_runner.h',
147         'test/fake_video_encode_accelerator.cc',
148         'test/fake_video_encode_accelerator.h',
149         'test/utility/test_util.cc',
150         'test/utility/test_util.h',
151       ], # source
152       'conditions': [
153         ['os_posix==1 and OS!="mac" and OS!="ios" and use_allocator!="none"',
154           {
155             'dependencies': [
156               '<(DEPTH)/base/allocator/allocator.gyp:allocator',
157             ],
158           }
159         ],
160       ],
161     },
162     {
163       # This is a target for the collection of cast development tools.
164       # They are built on bots but not shipped.
165       'target_name': 'cast_tools',
166       'type': 'none',
167       'dependencies': [
168         'cast_receiver_app',
169         'cast_sender_app',
170         'udp_proxy',
171       ],
172     },
173     {
174       'target_name': 'cast_receiver_app',
175       'type': 'executable',
176       'include_dirs': [
177         '<(DEPTH)/',
178       ],
179       'dependencies': [
180         'cast_base',
181         'cast_receiver',
182         'cast_test_utility',
183         'cast_transport',
184         '<(DEPTH)/net/net.gyp:net_test_support',
185         '<(DEPTH)/media/media.gyp:media',
186         '<(DEPTH)/testing/gtest.gyp:gtest',
187         '<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',
188       ],
189       'sources': [
190         '<(DEPTH)/media/cast/test/receiver.cc',
191       ],
192       'conditions': [
193         ['OS == "linux" and use_x11==1', {
194           'dependencies': [
195             '<(DEPTH)/build/linux/system.gyp:x11',
196             '<(DEPTH)/build/linux/system.gyp:xext',
197           ],
198           'sources': [
199             '<(DEPTH)/media/cast/test/linux_output_window.cc',
200             '<(DEPTH)/media/cast/test/linux_output_window.h',
201             '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
202           ],
203         }],
204       ],
205     },
206     {
207       'target_name': 'cast_sender_app',
208       'type': 'executable',
209       'include_dirs': [
210         '<(DEPTH)/',
211       ],
212       'dependencies': [
213         'cast_base',
214         'cast_sender',
215         'cast_test_utility',
216         'cast_transport',
217         '<(DEPTH)/net/net.gyp:net_test_support',
218         '<(DEPTH)/media/media.gyp:media',
219         '<(DEPTH)/testing/gtest.gyp:gtest',
220         '<(DEPTH)/third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
221         '<(DEPTH)/third_party/opus/opus.gyp:opus',
222         '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
223       ],
224       'sources': [
225         '<(DEPTH)/media/cast/test/sender.cc',
226       ],
227     },
228     {
229       'target_name': 'generate_barcode_video',
230       'type': 'executable',
231       'include_dirs': [
232         '<(DEPTH)/',
233       ],
234       'dependencies': [
235         'cast_test_utility',
236         '<(DEPTH)/base/base.gyp:base',
237         '<(DEPTH)/media/media.gyp:media',
238       ],
239       'sources': [
240         'test/utility/generate_barcode_video.cc',
241       ],
242     },
243     {
244       'target_name': 'generate_timecode_audio',
245       'type': 'executable',
246       'include_dirs': [
247         '<(DEPTH)/',
248       ],
249       'dependencies': [
250         'cast_base',
251         'cast_test_utility',
252         'cast_transport',
253         '<(DEPTH)/base/base.gyp:base',
254         '<(DEPTH)/media/media.gyp:media',
255       ],
256       'sources': [
257         'test/utility/generate_timecode_audio.cc',
258       ],
259     },
260     {
261       'target_name': 'udp_proxy',
262       'type': 'executable',
263       'include_dirs': [
264         '<(DEPTH)/',
265       ],
266       'dependencies': [
267         'cast_test_utility',
268         '<(DEPTH)/base/base.gyp:base',
269         '<(DEPTH)/media/media.gyp:media',
270       ],
271       'sources': [
272         'test/utility/udp_proxy_main.cc',
273       ],
274     }
275   ], # targets