| OLD | NEW |
| 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license | 3 # Use of this source code is governed by a BSD-style license |
| 4 # that can be found in the LICENSE file in the root of the source | 4 # that can be found in the LICENSE file in the root of the source |
| 5 # tree. An additional intellectual property rights grant can be found | 5 # tree. An additional intellectual property rights grant can be found |
| 6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
| 7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
| 8 | 8 |
| 9 import("../webrtc.gni") | 9 import("../webrtc.gni") |
| 10 import("//build/config/ui.gni") | 10 import("//build/config/ui.gni") |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 ] | 30 ] |
| 31 } | 31 } |
| 32 | 32 |
| 33 rtc_source_set("video_test_common") { | 33 rtc_source_set("video_test_common") { |
| 34 testonly = true | 34 testonly = true |
| 35 sources = [ | 35 sources = [ |
| 36 "fake_texture_frame.cc", | 36 "fake_texture_frame.cc", |
| 37 "fake_texture_frame.h", | 37 "fake_texture_frame.h", |
| 38 "frame_generator.cc", | 38 "frame_generator.cc", |
| 39 "frame_generator.h", | 39 "frame_generator.h", |
| 40 "frame_generator_capturer.cc", |
| 41 "frame_generator_capturer.h", |
| 40 "frame_utils.cc", | 42 "frame_utils.cc", |
| 41 "frame_utils.h", | 43 "frame_utils.h", |
| 44 "vcm_capturer.cc", |
| 45 "vcm_capturer.h", |
| 46 "video_capturer.h", |
| 42 ] | 47 ] |
| 43 | 48 |
| 44 if (!build_with_chromium && is_clang) { | 49 if (!build_with_chromium && is_clang) { |
| 45 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 50 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 46 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 51 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 47 } | 52 } |
| 48 | 53 |
| 49 deps = [ | 54 deps = [ |
| 55 ":video_test_support", |
| 50 "../common_video", | 56 "../common_video", |
| 57 "../modules/video_capture:video_capture_module", |
| 51 ] | 58 ] |
| 52 } | 59 } |
| 53 | 60 |
| 54 rtc_source_set("rtp_test_utils") { | 61 rtc_source_set("rtp_test_utils") { |
| 55 testonly = true | 62 testonly = true |
| 56 sources = [ | 63 sources = [ |
| 57 "rtcp_packet_parser.cc", | 64 "rtcp_packet_parser.cc", |
| 58 "rtcp_packet_parser.h", | 65 "rtcp_packet_parser.h", |
| 59 "rtp_file_reader.cc", | 66 "rtp_file_reader.cc", |
| 60 "rtp_file_reader.h", | 67 "rtp_file_reader.h", |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 sources = [ | 118 sources = [ |
| 112 "testsupport/fileutils.cc", | 119 "testsupport/fileutils.cc", |
| 113 "testsupport/fileutils.h", | 120 "testsupport/fileutils.h", |
| 114 ] | 121 ] |
| 115 if (is_ios) { | 122 if (is_ios) { |
| 116 sources += [ "testsupport/iosfileutils.mm" ] | 123 sources += [ "testsupport/iosfileutils.mm" ] |
| 117 configs += [ "//build/config/compiler:enable_arc" ] | 124 configs += [ "//build/config/compiler:enable_arc" ] |
| 118 } | 125 } |
| 119 } | 126 } |
| 120 | 127 |
| 128 rtc_source_set("video_test_support") { |
| 129 testonly = true |
| 130 |
| 131 sources = [ |
| 132 "testsupport/frame_reader.cc", |
| 133 "testsupport/frame_reader.h", |
| 134 "testsupport/frame_writer.cc", |
| 135 "testsupport/frame_writer.h", |
| 136 "testsupport/metrics/video_metrics.cc", |
| 137 "testsupport/metrics/video_metrics.h", |
| 138 "testsupport/mock/mock_frame_reader.h", |
| 139 "testsupport/mock/mock_frame_writer.h", |
| 140 ] |
| 141 |
| 142 deps = [ |
| 143 "../base:rtc_base_approved", |
| 144 "../common_video", |
| 145 "../system_wrappers", |
| 146 "//testing/gmock", |
| 147 "//testing/gtest", |
| 148 "//third_party/gflags", |
| 149 ] |
| 150 |
| 151 public_deps = [ |
| 152 ":fileutils", |
| 153 ] |
| 154 |
| 155 if (!build_with_chromium && is_clang) { |
| 156 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 157 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 158 } |
| 159 |
| 160 if (is_android) { |
| 161 deps += [ "//base:base" ] |
| 162 } |
| 163 |
| 164 if (is_ios) { |
| 165 deps += [ "//webrtc/sdk:rtc_sdk_common_objc" ] |
| 166 } |
| 167 |
| 168 if (rtc_use_memcheck) { |
| 169 data = valgrind_webrtc_dependencies |
| 170 } |
| 171 } |
| 172 |
| 121 rtc_source_set("test_support") { | 173 rtc_source_set("test_support") { |
| 122 testonly = true | 174 testonly = true |
| 123 | 175 |
| 124 sources = [ | 176 sources = [ |
| 125 "gmock.h", | 177 "gmock.h", |
| 126 "gtest.h", | 178 "gtest.h", |
| 127 "testsupport/frame_reader.cc", | |
| 128 "testsupport/frame_reader.h", | |
| 129 "testsupport/frame_writer.cc", | |
| 130 "testsupport/frame_writer.h", | |
| 131 "testsupport/isolated_output.cc", | 179 "testsupport/isolated_output.cc", |
| 132 "testsupport/isolated_output.h", | 180 "testsupport/isolated_output.h", |
| 133 "testsupport/metrics/video_metrics.cc", | |
| 134 "testsupport/metrics/video_metrics.h", | |
| 135 "testsupport/mock/mock_frame_reader.h", | |
| 136 "testsupport/mock/mock_frame_writer.h", | |
| 137 "testsupport/packet_reader.cc", | 181 "testsupport/packet_reader.cc", |
| 138 "testsupport/packet_reader.h", | 182 "testsupport/packet_reader.h", |
| 139 "testsupport/perf_test.cc", | 183 "testsupport/perf_test.cc", |
| 140 "testsupport/perf_test.h", | 184 "testsupport/perf_test.h", |
| 141 "testsupport/trace_to_stderr.cc", | 185 "testsupport/trace_to_stderr.cc", |
| 142 "testsupport/trace_to_stderr.h", | 186 "testsupport/trace_to_stderr.h", |
| 143 "testsupport/unittest_utils.h", | 187 "testsupport/unittest_utils.h", |
| 144 ] | 188 ] |
| 145 | 189 |
| 146 deps = [ | 190 deps = [ |
| 147 ":video_test_common", | |
| 148 "../base:gtest_prod", | 191 "../base:gtest_prod", |
| 149 "../base:rtc_base_approved", | 192 "../base:rtc_base_approved", |
| 150 "../common_video", | 193 "../common_video", |
| 151 "../system_wrappers", | 194 "../system_wrappers", |
| 152 "//testing/gmock", | 195 "//testing/gmock", |
| 153 "//testing/gtest", | 196 "//testing/gtest", |
| 154 "//third_party/gflags", | 197 "//third_party/gflags", |
| 155 ] | 198 ] |
| 156 | 199 |
| 157 public_deps = [ | 200 public_deps = [ |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 } | 286 } |
| 244 | 287 |
| 245 if (is_ios) { | 288 if (is_ios) { |
| 246 deps += [ ":test_support_unittests_bundle_data" ] | 289 deps += [ ":test_support_unittests_bundle_data" ] |
| 247 } | 290 } |
| 248 | 291 |
| 249 deps += [ | 292 deps += [ |
| 250 ":fileutils_unittests", | 293 ":fileutils_unittests", |
| 251 ":test_common", | 294 ":test_common", |
| 252 ":test_main", | 295 ":test_main", |
| 296 ":video_test_common", |
| 253 "../modules/video_capture", | 297 "../modules/video_capture", |
| 254 "//testing/gmock", | 298 "//testing/gmock", |
| 255 "//testing/gtest", | 299 "//testing/gtest", |
| 256 "//third_party/gflags", | 300 "//third_party/gflags", |
| 257 ] | 301 ] |
| 258 } | 302 } |
| 259 rtc_source_set("fileutils_unittests") { | 303 rtc_source_set("fileutils_unittests") { |
| 260 testonly = true | 304 testonly = true |
| 261 sources = [ | 305 sources = [ |
| 262 "testsupport/fileutils_unittest.cc", | 306 "testsupport/fileutils_unittest.cc", |
| (...skipping 22 matching lines...) Expand all Loading... |
| 285 "encoder_settings.h", | 329 "encoder_settings.h", |
| 286 "fake_audio_device.cc", | 330 "fake_audio_device.cc", |
| 287 "fake_audio_device.h", | 331 "fake_audio_device.h", |
| 288 "fake_decoder.cc", | 332 "fake_decoder.cc", |
| 289 "fake_decoder.h", | 333 "fake_decoder.h", |
| 290 "fake_encoder.cc", | 334 "fake_encoder.cc", |
| 291 "fake_encoder.h", | 335 "fake_encoder.h", |
| 292 "fake_network_pipe.cc", | 336 "fake_network_pipe.cc", |
| 293 "fake_network_pipe.h", | 337 "fake_network_pipe.h", |
| 294 "fake_videorenderer.h", | 338 "fake_videorenderer.h", |
| 295 "frame_generator_capturer.cc", | |
| 296 "frame_generator_capturer.h", | |
| 297 "layer_filtering_transport.cc", | 339 "layer_filtering_transport.cc", |
| 298 "layer_filtering_transport.h", | 340 "layer_filtering_transport.h", |
| 299 "mock_transport.h", | 341 "mock_transport.h", |
| 300 "mock_voe_channel_proxy.h", | 342 "mock_voe_channel_proxy.h", |
| 301 "mock_voice_engine.h", | 343 "mock_voice_engine.h", |
| 302 "null_transport.cc", | 344 "null_transport.cc", |
| 303 "null_transport.h", | 345 "null_transport.h", |
| 304 "rtp_rtcp_observer.h", | 346 "rtp_rtcp_observer.h", |
| 305 "statistics.cc", | 347 "statistics.cc", |
| 306 "statistics.h", | 348 "statistics.h", |
| 307 "vcm_capturer.cc", | |
| 308 "vcm_capturer.h", | |
| 309 "video_capturer.h", | |
| 310 "win/run_loop_win.cc", | 349 "win/run_loop_win.cc", |
| 311 ] | 350 ] |
| 312 if (!is_win) { | 351 if (!is_win) { |
| 313 sources += [ | 352 sources += [ |
| 314 "run_loop.cc", | 353 "run_loop.cc", |
| 315 "run_loop.h", | 354 "run_loop.h", |
| 316 ] | 355 ] |
| 317 } | 356 } |
| 318 | 357 |
| 319 if (!build_with_chromium && is_clang) { | 358 if (!build_with_chromium && is_clang) { |
| 320 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 359 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 321 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 360 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 322 } | 361 } |
| 323 | 362 |
| 324 deps = [ | 363 deps = [ |
| 325 ":rtp_test_utils", | 364 ":rtp_test_utils", |
| 326 ":test_support", | 365 ":test_support", |
| 327 "..:webrtc_common", | 366 "..:webrtc_common", |
| 328 "../api:transport_api", | 367 "../api:transport_api", |
| 329 "../audio", | 368 "../audio", |
| 330 "../base:rtc_base_approved", | 369 "../base:rtc_base_approved", |
| 331 "../call", | 370 "../call", |
| 332 "../modules/audio_device:mock_audio_device", | 371 "../modules/audio_device:mock_audio_device", |
| 333 "../modules/audio_mixer:audio_mixer_impl", | 372 "../modules/audio_mixer:audio_mixer_impl", |
| 334 "../modules/audio_processing", | 373 "../modules/audio_processing", |
| 335 "../modules/video_capture:video_capture", | |
| 336 "../modules/video_capture:video_capture_module", | |
| 337 "../video", | 374 "../video", |
| 338 "//testing/gmock", | 375 "//testing/gmock", |
| 339 "//testing/gtest", | 376 "//testing/gtest", |
| 340 ] | 377 ] |
| 341 } | 378 } |
| 342 | 379 |
| 343 config("test_renderer_exported_config") { | 380 config("test_renderer_exported_config") { |
| 344 if (is_win && is_clang) { | 381 if (is_win && is_clang) { |
| 345 # GN orders flags on a target before flags from configs. The default config | 382 # GN orders flags on a target before flags from configs. The default config |
| 346 # adds -Wall, and this flag have to be after -Wall -- so they need to | 383 # adds -Wall, and this flag have to be after -Wall -- so they need to |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 442 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 406 } | 443 } |
| 407 | 444 |
| 408 deps = [ | 445 deps = [ |
| 409 ":test_support", | 446 ":test_support", |
| 410 ":video_test_common", | 447 ":video_test_common", |
| 411 "../modules/media_file", | 448 "../modules/media_file", |
| 412 "//testing/gtest", | 449 "//testing/gtest", |
| 413 ] | 450 ] |
| 414 } | 451 } |
| OLD | NEW |