| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 { | |
| 6 'includes': [ 'cast_testing_tools.gypi' ], | |
| 7 'targets': [ | |
| 8 { | |
| 9 # GN version: //media/cast:test_support | |
| 10 'target_name': 'cast_test_utility', | |
| 11 'type': 'static_library', | |
| 12 'include_dirs': [ | |
| 13 '<(DEPTH)/', | |
| 14 ], | |
| 15 'dependencies': [ | |
| 16 'cast_net', | |
| 17 'cast_receiver', | |
| 18 '<(DEPTH)/base/base.gyp:test_support_base', | |
| 19 '<(DEPTH)/media/media.gyp:media_features', | |
| 20 '<(DEPTH)/media/media.gyp:media_test_support', | |
| 21 '<(DEPTH)/testing/gtest.gyp:gtest', | |
| 22 '<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv', | |
| 23 '<(DEPTH)/third_party/mt19937ar/mt19937ar.gyp:mt19937ar', | |
| 24 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_test_support', | |
| 25 ], | |
| 26 'sources': [ | |
| 27 'test/fake_receiver_time_offset_estimator.cc', | |
| 28 'test/fake_receiver_time_offset_estimator.h', | |
| 29 'test/loopback_transport.cc', | |
| 30 'test/loopback_transport.h', | |
| 31 'test/skewed_single_thread_task_runner.cc', | |
| 32 'test/skewed_single_thread_task_runner.h', | |
| 33 'test/skewed_tick_clock.cc', | |
| 34 'test/skewed_tick_clock.h', | |
| 35 'test/utility/audio_utility.cc', | |
| 36 'test/utility/audio_utility.h', | |
| 37 'test/utility/barcode.cc', | |
| 38 'test/utility/barcode.h', | |
| 39 'test/utility/default_config.cc', | |
| 40 'test/utility/default_config.h', | |
| 41 'test/utility/in_process_receiver.cc', | |
| 42 'test/utility/in_process_receiver.h', | |
| 43 'test/utility/input_builder.cc', | |
| 44 'test/utility/input_builder.h', | |
| 45 'test/utility/net_utility.cc', | |
| 46 'test/utility/net_utility.h', | |
| 47 'test/utility/standalone_cast_environment.cc', | |
| 48 'test/utility/standalone_cast_environment.h', | |
| 49 'test/utility/test_util.cc', | |
| 50 'test/utility/test_util.h', | |
| 51 'test/utility/udp_proxy.cc', | |
| 52 'test/utility/udp_proxy.h', | |
| 53 'test/utility/video_utility.cc', | |
| 54 'test/utility/video_utility.h', | |
| 55 ], # sources | |
| 56 'conditions': [ | |
| 57 # FFMPEG software video decoders are not available on Android and/or | |
| 58 # Chromecast content_shell builds. | |
| 59 # | |
| 60 # TODO(miu): There *are* hardware decoder APIs available via FFMPEG, and | |
| 61 # we should use those for the Android receiver. See media.gyp for usage | |
| 62 # details. http://crbug.com/558714 | |
| 63 ['OS!="android" and chromecast==0', { | |
| 64 'dependencies': [ | |
| 65 '<(DEPTH)/third_party/ffmpeg/ffmpeg.gyp:ffmpeg', | |
| 66 ], | |
| 67 'sources': [ | |
| 68 'test/fake_media_source.cc', | |
| 69 'test/fake_media_source.h', | |
| 70 ], | |
| 71 }], | |
| 72 ], # conditions | |
| 73 }, | |
| 74 { | |
| 75 # GN version: //media/cast:cast_unittests | |
| 76 'target_name': 'cast_unittests', | |
| 77 'type': '<(gtest_target_type)', | |
| 78 'include_dirs': [ | |
| 79 '<(DEPTH)/', | |
| 80 ], | |
| 81 'dependencies': [ | |
| 82 'cast_common', | |
| 83 'cast_sender', | |
| 84 'cast_test_utility', | |
| 85 '<(DEPTH)/base/base.gyp:run_all_unittests', | |
| 86 '<(DEPTH)/net/net.gyp:net', | |
| 87 '<(DEPTH)/testing/gmock.gyp:gmock', | |
| 88 '<(DEPTH)/testing/gtest.gyp:gtest', | |
| 89 ], | |
| 90 'sources': [ | |
| 91 'common/expanded_value_base_unittest.cc', | |
| 92 'common/rtp_time_unittest.cc', | |
| 93 'logging/encoding_event_subscriber_unittest.cc', | |
| 94 'logging/receiver_time_offset_estimator_impl_unittest.cc', | |
| 95 'logging/serialize_deserialize_test.cc', | |
| 96 'logging/simple_event_subscriber_unittest.cc', | |
| 97 'logging/stats_event_subscriber_unittest.cc', | |
| 98 'net/cast_transport_impl_unittest.cc', | |
| 99 'net/mock_cast_transport.cc', | |
| 100 'net/mock_cast_transport.h', | |
| 101 'net/pacing/mock_paced_packet_sender.cc', | |
| 102 'net/pacing/mock_paced_packet_sender.h', | |
| 103 'net/pacing/paced_sender_unittest.cc', | |
| 104 'net/rtcp/receiver_rtcp_event_subscriber_unittest.cc', | |
| 105 'net/rtcp/rtcp_builder_unittest.cc', | |
| 106 'net/rtcp/rtcp_unittest.cc', | |
| 107 'net/rtcp/rtcp_utility_unittest.cc', | |
| 108 # TODO(miu): The following two are test utility modules. Rename/move | |
| 109 # the files. | |
| 110 'net/rtcp/test_rtcp_packet_builder.cc', | |
| 111 'net/rtcp/test_rtcp_packet_builder.h', | |
| 112 'net/rtp/cast_message_builder_unittest.cc', | |
| 113 'net/rtp/frame_buffer_unittest.cc', | |
| 114 'net/rtp/framer_unittest.cc', | |
| 115 'net/rtp/mock_rtp_payload_feedback.cc', | |
| 116 'net/rtp/mock_rtp_payload_feedback.h', | |
| 117 'net/rtp/packet_storage_unittest.cc', | |
| 118 'net/rtp/receiver_stats_unittest.cc', | |
| 119 'net/rtp/rtp_packet_builder.cc', | |
| 120 'net/rtp/rtp_packetizer_unittest.cc', | |
| 121 'net/rtp/rtp_parser_unittest.cc', | |
| 122 'net/udp_transport_unittest.cc', | |
| 123 'receiver/audio_decoder_unittest.cc', | |
| 124 'receiver/frame_receiver_unittest.cc', | |
| 125 'receiver/video_decoder_unittest.cc', | |
| 126 'sender/audio_encoder_unittest.cc', | |
| 127 'sender/audio_sender_unittest.cc', | |
| 128 'sender/congestion_control_unittest.cc', | |
| 129 'sender/external_video_encoder_unittest.cc', | |
| 130 'sender/fake_video_encode_accelerator_factory.cc', | |
| 131 'sender/fake_video_encode_accelerator_factory.h', | |
| 132 'sender/video_encoder_unittest.cc', | |
| 133 'sender/video_sender_unittest.cc', | |
| 134 'sender/vp8_quantizer_parser_unittest.cc', | |
| 135 'test/end2end_unittest.cc', | |
| 136 'test/utility/audio_utility_unittest.cc', | |
| 137 'test/utility/barcode_unittest.cc', | |
| 138 ], # sources | |
| 139 'conditions': [ | |
| 140 ['OS=="android"', { | |
| 141 'dependencies': [ | |
| 142 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code', | |
| 143 ], | |
| 144 }], | |
| 145 ['OS=="ios" or OS=="mac"', { | |
| 146 'sources': [ | |
| 147 'sender/h264_vt_encoder_unittest.cc', | |
| 148 ], | |
| 149 | |
| 150 'dependencies': [ | |
| 151 '<(DEPTH)/third_party/ffmpeg/ffmpeg.gyp:ffmpeg', | |
| 152 ], | |
| 153 }] # OS=="ios" or OS=="mac" | |
| 154 ], # conditions | |
| 155 }, | |
| 156 ], # targets | |
| 157 'conditions': [ | |
| 158 ['OS=="android"', { | |
| 159 'targets': [ | |
| 160 { | |
| 161 'target_name': 'cast_unittests_apk', | |
| 162 'type': 'none', | |
| 163 'dependencies': [ | |
| 164 'cast_unittests', | |
| 165 ], | |
| 166 'variables': { | |
| 167 'test_suite_name': 'cast_unittests', | |
| 168 'isolate_file': 'cast_unittests.isolate', | |
| 169 }, | |
| 170 'includes': ['../../build/apk_test.gypi'], | |
| 171 }, | |
| 172 ], | |
| 173 }], # OS=="android" | |
| 174 ['test_isolation_mode != "noop"', { | |
| 175 'targets': [ | |
| 176 { | |
| 177 'target_name': 'cast_unittests_run', | |
| 178 'type': 'none', | |
| 179 'dependencies': [ | |
| 180 'cast_unittests', | |
| 181 ], | |
| 182 'includes': [ | |
| 183 '../../build/isolate.gypi', | |
| 184 ], | |
| 185 'sources': [ | |
| 186 'cast_unittests.isolate', | |
| 187 ], | |
| 188 'conditions': [ | |
| 189 ['use_x11==1', | |
| 190 { | |
| 191 'dependencies': [ | |
| 192 '<(DEPTH)/tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck'
, | |
| 193 ], | |
| 194 } | |
| 195 ], | |
| 196 ], | |
| 197 }, | |
| 198 ], | |
| 199 }], # test_isolation_mode != "noop" | |
| 200 ], # conditions | |
| 201 } | |
| OLD | NEW |