Chromium Code Reviews| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 46 "video_capturer.cc", | 46 "video_capturer.cc", |
| 47 "video_capturer.h", | 47 "video_capturer.h", |
| 48 ] | 48 ] |
| 49 | 49 |
| 50 if (!build_with_chromium && is_clang) { | 50 if (!build_with_chromium && is_clang) { |
| 51 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 51 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 52 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 52 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 53 } | 53 } |
| 54 | 54 |
| 55 deps = [ | 55 deps = [ |
| 56 "..:webrtc_common", | |
| 57 "../base:rtc_base_approved", | |
| 58 "../base:rtc_task_queue", | |
| 56 "../common_video", | 59 "../common_video", |
| 57 "../media:rtc_media_base", | 60 "../media:rtc_media_base", |
| 58 "../modules/video_capture:video_capture_module", | 61 "../modules/video_capture:video_capture_module", |
| 62 "../system_wrappers:system_wrappers", | |
| 59 ] | 63 ] |
| 60 } | 64 } |
| 61 | 65 |
| 62 rtc_source_set("rtp_test_utils") { | 66 rtc_source_set("rtp_test_utils") { |
| 63 testonly = true | 67 testonly = true |
| 64 sources = [ | 68 sources = [ |
| 65 "rtcp_packet_parser.cc", | 69 "rtcp_packet_parser.cc", |
| 66 "rtcp_packet_parser.h", | 70 "rtcp_packet_parser.h", |
| 67 "rtp_file_reader.cc", | 71 "rtp_file_reader.cc", |
| 68 "rtp_file_reader.h", | 72 "rtp_file_reader.h", |
| 69 "rtp_file_writer.cc", | 73 "rtp_file_writer.cc", |
| 70 "rtp_file_writer.h", | 74 "rtp_file_writer.h", |
| 71 ] | 75 ] |
| 72 | 76 |
| 73 if (!build_with_chromium && is_clang) { | 77 if (!build_with_chromium && is_clang) { |
| 74 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 78 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 75 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 79 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 76 } | 80 } |
| 77 | 81 |
| 78 deps = [ | 82 deps = [ |
| 79 "..:webrtc_common", | 83 "..:webrtc_common", |
| 84 "../base:rtc_base_approved", | |
| 80 "../modules/rtp_rtcp", | 85 "../modules/rtp_rtcp", |
| 81 "//testing/gtest", | 86 "//testing/gtest", |
| 82 ] | 87 ] |
| 83 } | 88 } |
| 84 | 89 |
| 85 rtc_source_set("field_trial") { | 90 rtc_source_set("field_trial") { |
| 86 testonly = true | 91 testonly = true |
| 87 sources = [ | 92 sources = [ |
| 88 "field_trial.cc", | 93 "field_trial.cc", |
| 89 "field_trial.h", | 94 "field_trial.h", |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 100 testonly = true | 105 testonly = true |
| 101 sources = [ | 106 sources = [ |
| 102 "test_main.cc", | 107 "test_main.cc", |
| 103 ] | 108 ] |
| 104 | 109 |
| 105 public_deps = [ | 110 public_deps = [ |
| 106 ":test_support", | 111 ":test_support", |
| 107 ] | 112 ] |
| 108 deps = [ | 113 deps = [ |
| 109 ":field_trial", | 114 ":field_trial", |
| 115 "../base:rtc_base_approved", | |
| 110 "../system_wrappers:metrics_default", | 116 "../system_wrappers:metrics_default", |
| 111 "//testing/gmock", | 117 "//testing/gmock", |
| 112 "//testing/gtest", | 118 "//testing/gtest", |
| 113 "//third_party/gflags", | 119 "//third_party/gflags", |
| 114 ] | 120 ] |
| 115 } | 121 } |
| 116 | 122 |
| 117 rtc_source_set("fileutils") { | 123 rtc_source_set("fileutils") { |
| 118 testonly = true | 124 testonly = true |
| 119 sources = [ | 125 sources = [ |
| 120 "testsupport/fileutils.cc", | 126 "testsupport/fileutils.cc", |
| 121 "testsupport/fileutils.h", | 127 "testsupport/fileutils.h", |
| 122 ] | 128 ] |
| 123 if (is_ios) { | 129 if (is_ios) { |
| 124 sources += [ "testsupport/iosfileutils.mm" ] | 130 sources += [ "testsupport/iosfileutils.mm" ] |
| 125 configs += [ "//build/config/compiler:enable_arc" ] | 131 configs += [ "//build/config/compiler:enable_arc" ] |
| 126 } | 132 } |
| 127 visibility = [ ":*" ] | 133 visibility = [ ":*" ] |
| 134 deps = [ | |
| 135 "..:webrtc_common", | |
| 136 "../base:rtc_base_approved", | |
| 137 ] | |
| 138 if (is_ios) { | |
| 139 deps += [ "../sdk:rtc_sdk_common_objc" ] | |
| 140 } | |
| 141 if (is_win) { | |
| 142 deps += [ "../base:rtc_base" ] | |
| 143 } | |
| 128 } | 144 } |
| 129 | 145 |
| 130 rtc_source_set("video_test_support") { | 146 rtc_source_set("video_test_support") { |
| 131 testonly = true | 147 testonly = true |
| 132 | 148 |
| 133 sources = [ | 149 sources = [ |
| 134 "testsupport/frame_reader.h", | 150 "testsupport/frame_reader.h", |
| 135 "testsupport/frame_writer.h", | 151 "testsupport/frame_writer.h", |
| 136 "testsupport/metrics/video_metrics.cc", | 152 "testsupport/metrics/video_metrics.cc", |
| 137 "testsupport/metrics/video_metrics.h", | 153 "testsupport/metrics/video_metrics.h", |
| 138 "testsupport/mock/mock_frame_reader.h", | 154 "testsupport/mock/mock_frame_reader.h", |
| 139 "testsupport/mock/mock_frame_writer.h", | 155 "testsupport/mock/mock_frame_writer.h", |
| 140 "testsupport/y4m_frame_writer.cc", | 156 "testsupport/y4m_frame_writer.cc", |
| 141 "testsupport/yuv_frame_reader.cc", | 157 "testsupport/yuv_frame_reader.cc", |
| 142 "testsupport/yuv_frame_writer.cc", | 158 "testsupport/yuv_frame_writer.cc", |
| 143 ] | 159 ] |
| 144 | 160 |
| 145 deps = [ | 161 deps = [ |
| 162 ":test_support", | |
| 163 ":video_test_common", | |
| 164 "..:webrtc_common", | |
| 146 "../base:rtc_base_approved", | 165 "../base:rtc_base_approved", |
| 147 "../common_video", | 166 "../common_video", |
| 148 "../system_wrappers", | 167 "../system_wrappers", |
| 149 "//testing/gmock", | 168 "//testing/gmock", |
| 150 "//testing/gtest", | 169 "//testing/gtest", |
| 151 "//third_party/gflags", | 170 "//third_party/gflags", |
| 152 ] | 171 ] |
| 153 | 172 |
| 154 public_deps = [ | 173 public_deps = [ |
| 155 ":fileutils", | 174 ":fileutils", |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 184 "testsupport/packet_reader.cc", | 203 "testsupport/packet_reader.cc", |
| 185 "testsupport/packet_reader.h", | 204 "testsupport/packet_reader.h", |
| 186 "testsupport/perf_test.cc", | 205 "testsupport/perf_test.cc", |
| 187 "testsupport/perf_test.h", | 206 "testsupport/perf_test.h", |
| 188 "testsupport/trace_to_stderr.cc", | 207 "testsupport/trace_to_stderr.cc", |
| 189 "testsupport/trace_to_stderr.h", | 208 "testsupport/trace_to_stderr.h", |
| 190 "testsupport/unittest_utils.h", | 209 "testsupport/unittest_utils.h", |
| 191 ] | 210 ] |
| 192 | 211 |
| 193 deps = [ | 212 deps = [ |
| 213 "..:webrtc_common", | |
| 194 "../base:gtest_prod", | 214 "../base:gtest_prod", |
| 195 "../base:rtc_base_approved", | 215 "../base:rtc_base_approved", |
| 196 "../common_video", | 216 "../common_video", |
| 197 "../system_wrappers", | 217 "../system_wrappers", |
| 198 "//testing/gmock", | 218 "//testing/gmock", |
| 199 "//testing/gtest", | 219 "//testing/gtest", |
| 200 "//third_party/gflags", | 220 "//third_party/gflags", |
| 201 ] | 221 ] |
| 202 | 222 |
| 203 public_deps = [ | 223 public_deps = [ |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 248 bundle_data("test_support_unittests_bundle_data") { | 268 bundle_data("test_support_unittests_bundle_data") { |
| 249 testonly = true | 269 testonly = true |
| 250 sources = test_support_unittests_resources | 270 sources = test_support_unittests_resources |
| 251 outputs = [ | 271 outputs = [ |
| 252 "{{bundle_resources_dir}}/{{source_file_part}}", | 272 "{{bundle_resources_dir}}/{{source_file_part}}", |
| 253 ] | 273 ] |
| 254 } | 274 } |
| 255 } | 275 } |
| 256 | 276 |
| 257 rtc_test("test_support_unittests") { | 277 rtc_test("test_support_unittests") { |
| 258 deps = [] | 278 deps = [ |
| 279 ":fake_audio_device", | |
|
kjellander_webrtc
2017/04/12 13:15:01
Move these to line 327+.
According to the GN style
mbonadei
2017/04/12 13:51:55
Done, good catch!
| |
| 280 ":rtp_test_utils", | |
| 281 "../api:video_frame_api", | |
| 282 "../base:rtc_base_approved", | |
| 283 "../call:call_interfaces", | |
| 284 "../common_audio:common_audio", | |
| 285 "../modules/rtp_rtcp:rtp_rtcp", | |
| 286 "../system_wrappers:system_wrappers", | |
| 287 ] | |
| 259 sources = [ | 288 sources = [ |
| 260 "fake_audio_device_unittest.cc", | 289 "fake_audio_device_unittest.cc", |
| 261 "fake_network_pipe_unittest.cc", | 290 "fake_network_pipe_unittest.cc", |
| 262 "frame_generator_unittest.cc", | 291 "frame_generator_unittest.cc", |
| 263 "rtp_file_reader_unittest.cc", | 292 "rtp_file_reader_unittest.cc", |
| 264 "rtp_file_writer_unittest.cc", | 293 "rtp_file_writer_unittest.cc", |
| 265 "testsupport/always_passing_unittest.cc", | 294 "testsupport/always_passing_unittest.cc", |
| 266 "testsupport/isolated_output_unittest.cc", | 295 "testsupport/isolated_output_unittest.cc", |
| 267 "testsupport/metrics/video_metrics_unittest.cc", | 296 "testsupport/metrics/video_metrics_unittest.cc", |
| 268 "testsupport/packet_reader_unittest.cc", | 297 "testsupport/packet_reader_unittest.cc", |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 307 "//third_party/gflags", | 336 "//third_party/gflags", |
| 308 ] | 337 ] |
| 309 } | 338 } |
| 310 rtc_source_set("fileutils_unittests") { | 339 rtc_source_set("fileutils_unittests") { |
| 311 testonly = true | 340 testonly = true |
| 312 sources = [ | 341 sources = [ |
| 313 "testsupport/fileutils_unittest.cc", | 342 "testsupport/fileutils_unittest.cc", |
| 314 ] | 343 ] |
| 315 deps = [ | 344 deps = [ |
| 316 ":fileutils", | 345 ":fileutils", |
| 346 ":test_support", | |
| 317 "//testing/gmock", | 347 "//testing/gmock", |
| 318 "//testing/gtest", | 348 "//testing/gtest", |
| 319 ] | 349 ] |
| 320 } | 350 } |
| 321 | 351 |
| 322 rtc_source_set("direct_transport") { | 352 rtc_source_set("direct_transport") { |
| 323 testonly = true | 353 testonly = true |
| 324 sources = [ | 354 sources = [ |
| 325 "direct_transport.cc", | 355 "direct_transport.cc", |
| 326 "direct_transport.h", | 356 "direct_transport.h", |
| 327 "fake_network_pipe.cc", | 357 "fake_network_pipe.cc", |
| 328 "fake_network_pipe.h", | 358 "fake_network_pipe.h", |
| 329 ] | 359 ] |
| 330 if (!build_with_chromium && is_clang) { | 360 if (!build_with_chromium && is_clang) { |
| 331 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 361 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 332 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 362 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 333 } | 363 } |
| 334 deps = [ | 364 deps = [ |
| 365 "..:webrtc_common", | |
| 335 "../api:transport_api", | 366 "../api:transport_api", |
| 336 "../base:rtc_base_approved", | 367 "../base:rtc_base_approved", |
| 337 "../call", | 368 "../call", |
| 369 "../system_wrappers:system_wrappers", | |
| 338 ] | 370 ] |
| 339 } | 371 } |
| 340 | 372 |
| 341 rtc_source_set("fake_audio_device") { | 373 rtc_source_set("fake_audio_device") { |
| 342 testonly = true | 374 testonly = true |
| 343 sources = [ | 375 sources = [ |
| 344 "fake_audio_device.cc", | 376 "fake_audio_device.cc", |
| 345 "fake_audio_device.h", | 377 "fake_audio_device.h", |
| 346 ] | 378 ] |
| 347 if (!build_with_chromium && is_clang) { | 379 if (!build_with_chromium && is_clang) { |
| 348 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 380 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 349 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 381 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 350 } | 382 } |
| 351 deps = [ | 383 deps = [ |
| 384 "..:webrtc_common", | |
| 352 "../base:rtc_base_approved", | 385 "../base:rtc_base_approved", |
| 386 "../common_audio:common_audio", | |
| 353 "../modules/audio_device:audio_device", | 387 "../modules/audio_device:audio_device", |
| 388 "../system_wrappers:system_wrappers", | |
| 354 ] | 389 ] |
| 355 } | 390 } |
| 356 | 391 |
| 357 rtc_source_set("test_common") { | 392 rtc_source_set("test_common") { |
| 358 testonly = true | 393 testonly = true |
| 359 sources = [ | 394 sources = [ |
| 360 "call_test.cc", | 395 "call_test.cc", |
| 361 "call_test.h", | 396 "call_test.h", |
| 362 "configurable_frame_size_encoder.cc", | 397 "configurable_frame_size_encoder.cc", |
| 363 "configurable_frame_size_encoder.h", | 398 "configurable_frame_size_encoder.h", |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 396 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 431 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 397 } | 432 } |
| 398 | 433 |
| 399 deps = [ | 434 deps = [ |
| 400 ":direct_transport", | 435 ":direct_transport", |
| 401 ":fake_audio_device", | 436 ":fake_audio_device", |
| 402 ":rtp_test_utils", | 437 ":rtp_test_utils", |
| 403 ":test_support", | 438 ":test_support", |
| 404 ":video_test_common", | 439 ":video_test_common", |
| 405 "..:webrtc_common", | 440 "..:webrtc_common", |
| 441 "../api:transport_api", | |
| 442 "../api:video_frame_api", | |
| 443 "../api/audio_codecs:builtin_audio_decoder_factory", | |
| 406 "../api/video_codecs:video_codecs_api", | 444 "../api/video_codecs:video_codecs_api", |
| 407 "../audio", | 445 "../audio", |
| 408 "../base:rtc_base_approved", | 446 "../base:rtc_base_approved", |
| 447 "../base:rtc_task_queue", | |
| 409 "../call", | 448 "../call", |
| 449 "../logging:rtc_event_log_api", | |
| 450 "../modules/audio_device:mock_audio_device", | |
| 410 "../modules/audio_mixer:audio_mixer_impl", | 451 "../modules/audio_mixer:audio_mixer_impl", |
| 411 "../modules/audio_processing", | 452 "../modules/audio_processing", |
| 453 "../modules/rtp_rtcp:rtp_rtcp", | |
|
kjellander_webrtc
2017/04/12 13:15:01
whoa, does test_common really pull in this much? I
| |
| 454 "../modules/video_coding:webrtc_h264", | |
| 455 "../modules/video_coding:webrtc_vp8", | |
| 456 "../modules/video_coding:webrtc_vp9", | |
| 457 "../system_wrappers:system_wrappers", | |
| 412 "../video", | 458 "../video", |
| 459 "../voice_engine:voice_engine", | |
| 413 "//testing/gmock", | 460 "//testing/gmock", |
| 414 "//testing/gtest", | 461 "//testing/gtest", |
| 415 ] | 462 ] |
| 416 if (!is_android) { | 463 if (!is_android) { |
| 417 deps += [ "../modules/video_capture:video_capture_internal_impl" ] | 464 deps += [ "../modules/video_capture:video_capture_internal_impl" ] |
| 418 } | 465 } |
| 419 } | 466 } |
| 420 | 467 |
| 421 config("test_renderer_exported_config") { | 468 config("test_renderer_exported_config") { |
| 422 if (is_win && is_clang) { | 469 if (is_win && is_clang) { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 478 | 525 |
| 479 public_configs = [ ":test_renderer_exported_config" ] | 526 public_configs = [ ":test_renderer_exported_config" ] |
| 480 | 527 |
| 481 if (!build_with_chromium && is_clang) { | 528 if (!build_with_chromium && is_clang) { |
| 482 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 529 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 483 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 530 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 484 } | 531 } |
| 485 | 532 |
| 486 deps = [ | 533 deps = [ |
| 487 ":test_support", | 534 ":test_support", |
| 535 "..:webrtc_common", | |
| 536 "../base:rtc_base_approved", | |
| 537 "../common_video:common_video", | |
| 488 "../modules/media_file", | 538 "../modules/media_file", |
| 489 "//testing/gtest", | 539 "//testing/gtest", |
| 490 ] | 540 ] |
| 491 } | 541 } |
| OLD | NEW |