summaryrefslogtreecommitdiffstats
path: root/media/cast/cast_testing.gypi
blob: f8c2553463c0dcdf8b26429098c5d193504593ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  'variables': {
    'include_cast_utility_apps%': 0,
  },
  'targets': [
    {
      'target_name': 'cast_test_utility',
      'type': 'static_library',
      'include_dirs': [
         '<(DEPTH)/',
      ],
      'dependencies': [
        'cast_receiver',
        'cast_transport',
        '<(DEPTH)/testing/gtest.gyp:gtest',
        '<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',
        '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
      ],
      'sources': [
        'test/fake_single_thread_task_runner.cc',
        'test/fake_single_thread_task_runner.h',
        'test/utility/audio_utility.cc',
        'test/utility/audio_utility.h',
        'test/utility/barcode.cc',
        'test/utility/barcode.h',
        'test/utility/default_config.cc',
        'test/utility/default_config.h',
        'test/utility/in_process_receiver.cc',
        'test/utility/in_process_receiver.h',
        'test/utility/input_builder.cc',
        'test/utility/input_builder.h',
        'test/utility/standalone_cast_environment.cc',
        'test/utility/standalone_cast_environment.h',
        'test/utility/video_utility.cc',
        'test/utility/video_utility.h',
        'test/utility/udp_proxy.cc',
        'test/utility/udp_proxy.h',
      ], # source
    },
    {
      'target_name': 'cast_unittests',
      'type': '<(gtest_target_type)',
      'include_dirs': [
        '<(DEPTH)/',
      ],
      'dependencies': [
        'cast_base',
        'cast_receiver',
        'cast_rtcp',
        'cast_sender',
        'cast_test_utility',
        'cast_transport',
        '<(DEPTH)/base/base.gyp:test_support_base',
        '<(DEPTH)/net/net.gyp:net',
        '<(DEPTH)/testing/gmock.gyp:gmock',
        '<(DEPTH)/testing/gtest.gyp:gtest',
      ],
      'sources': [
        '<(DEPTH)/media/base/run_all_unittests.cc',
        'audio_receiver/audio_decoder_unittest.cc',
        'audio_receiver/audio_receiver_unittest.cc',
        'audio_sender/audio_encoder_unittest.cc',
        'audio_sender/audio_sender_unittest.cc',
        'congestion_control/congestion_control_unittest.cc',
        'framer/cast_message_builder_unittest.cc',
        'framer/frame_buffer_unittest.cc',
        'framer/framer_unittest.cc',
        'logging/encoding_event_subscriber_unittest.cc',
        'logging/serialize_deserialize_test.cc',
        'logging/logging_impl_unittest.cc',
        'logging/logging_raw_unittest.cc',
        'logging/receiver_time_offset_estimator_impl_unittest.cc',
        'logging/simple_event_subscriber_unittest.cc',
        'logging/stats_event_subscriber_unittest.cc',
        'rtcp/mock_rtcp_receiver_feedback.cc',
        'rtcp/mock_rtcp_receiver_feedback.h',
        'rtcp/mock_rtcp_sender_feedback.cc',
        'rtcp/mock_rtcp_sender_feedback.h',
        'rtcp/rtcp_receiver_unittest.cc',
        'rtcp/rtcp_sender_unittest.cc',
        'rtcp/rtcp_unittest.cc',
        'rtcp/receiver_rtcp_event_subscriber_unittest.cc',
        'rtcp/sender_rtcp_event_subscriber_unittest.cc',
# TODO(miu): The following two are test utility modules.  Rename/move the files.
        'rtcp/test_rtcp_packet_builder.cc',
        'rtcp/test_rtcp_packet_builder.h',
        'rtp_receiver/rtp_receiver_defines.h',
        'rtp_receiver/mock_rtp_payload_feedback.cc',
        'rtp_receiver/mock_rtp_payload_feedback.h',
        'rtp_receiver/receiver_stats_unittest.cc',
        'rtp_receiver/rtp_parser/test/rtp_packet_builder.cc',
        'rtp_receiver/rtp_parser/rtp_parser_unittest.cc',
        'test/end2end_unittest.cc',
        'test/fake_receiver_time_offset_estimator.cc',
        'test/fake_receiver_time_offset_estimator.h',
        'test/fake_single_thread_task_runner.cc',
        'test/fake_single_thread_task_runner.h',
        'test/fake_video_encode_accelerator.cc',
        'test/fake_video_encode_accelerator.h',
        'test/utility/audio_utility_unittest.cc',
        'test/utility/barcode_unittest.cc',
        'transport/cast_transport_sender_impl_unittest.cc',
        'transport/pacing/mock_paced_packet_sender.cc',
        'transport/pacing/mock_paced_packet_sender.h',
        'transport/pacing/paced_sender_unittest.cc',
        'transport/rtp_sender/packet_storage/packet_storage_unittest.cc',
        'transport/rtp_sender/rtp_packetizer/rtp_packetizer_unittest.cc',
        'transport/rtp_sender/rtp_packetizer/test/rtp_header_parser.cc',
        'transport/rtp_sender/rtp_packetizer/test/rtp_header_parser.h',
        'transport/transport/udp_transport_unittest.cc',
        'video_receiver/video_decoder_unittest.cc',
        'video_receiver/video_receiver_unittest.cc',
        'video_sender/external_video_encoder_unittest.cc',
        'video_sender/video_encoder_impl_unittest.cc',
        'video_sender/video_sender_unittest.cc',
      ], # source
    },
  ], # targets
  'conditions': [
    ['include_cast_utility_apps==1', {
      'targets': [
        {
          'target_name': 'cast_receiver_app',
          'type': 'executable',
          'include_dirs': [
            '<(DEPTH)/',
          ],
          'dependencies': [
            'cast_base',
            'cast_receiver',
            'cast_test_utility',
            'cast_transport',
            '<(DEPTH)/net/net.gyp:net_test_support',
            '<(DEPTH)/media/media.gyp:media',
            '<(DEPTH)/testing/gtest.gyp:gtest',
            '<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',
          ],
          'sources': [
            '<(DEPTH)/media/cast/test/receiver.cc',
          ],
          'conditions': [
            ['OS == "linux" and use_x11==1', {
              'dependencies': [
                '<(DEPTH)/build/linux/system.gyp:x11',
                '<(DEPTH)/build/linux/system.gyp:xext',
              ],
              'sources': [
                '<(DEPTH)/media/cast/test/linux_output_window.cc',
                '<(DEPTH)/media/cast/test/linux_output_window.h',
                '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
              ],
            }],
          ],
        },
        {
          'target_name': 'cast_sender_app',
          'type': 'executable',
          'include_dirs': [
            '<(DEPTH)/',
          ],
          'dependencies': [
            'cast_base',
            'cast_sender',
            'cast_test_utility',
            'cast_transport',
            '<(DEPTH)/net/net.gyp:net_test_support',
            '<(DEPTH)/media/media.gyp:media',
            '<(DEPTH)/testing/gtest.gyp:gtest',
            '<(DEPTH)/third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
            '<(DEPTH)/third_party/opus/opus.gyp:opus',
            '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
          ],
          'sources': [
            '<(DEPTH)/media/cast/test/sender.cc',
          ],
        },
        {
          'target_name': 'generate_barcode_video',
          'type': 'executable',
          'include_dirs': [
            '<(DEPTH)/',
          ],
          'dependencies': [
            'cast_test_utility',
            '<(DEPTH)/base/base.gyp:base',
            '<(DEPTH)/media/media.gyp:media',
          ],
          'sources': [
            'test/utility/generate_barcode_video.cc',
          ],
        },
        {
          'target_name': 'generate_timecode_audio',
          'type': 'executable',
          'include_dirs': [
            '<(DEPTH)/',
          ],
          'dependencies': [
            'cast_base',
            'cast_test_utility',
            'cast_transport',
            '<(DEPTH)/base/base.gyp:base',
            '<(DEPTH)/media/media.gyp:media',
          ],
          'sources': [
            'test/utility/generate_timecode_audio.cc',
          ],
        },
        {
          'target_name': 'udp_proxy',
          'type': 'executable',
          'include_dirs': [
            '<(DEPTH)/',
          ],
          'dependencies': [
            'cast_test_utility',
            '<(DEPTH)/base/base.gyp:base',
            '<(DEPTH)/media/media.gyp:media',
          ],
          'sources': [
            'test/utility/udp_proxy_main.cc',
          ],
        },
      ], # targets
    }],
  ], # conditions
}