Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: webrtc/test/BUILD.gn

Issue 2976293002: Remove remains of webrtc/base (Closed)
Patch Set: Add README.md Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/system_wrappers/BUILD.gn ('k') | webrtc/test/fuzzers/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 ] 53 ]
54 54
55 if (!build_with_chromium && is_clang) { 55 if (!build_with_chromium && is_clang) {
56 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 56 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
57 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 57 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
58 } 58 }
59 59
60 deps = [ 60 deps = [
61 "..:video_stream_api", 61 "..:video_stream_api",
62 "..:webrtc_common", 62 "..:webrtc_common",
63 "../base:rtc_base_approved",
64 "../base:rtc_task_queue",
65 "../common_video", 63 "../common_video",
66 "../media:rtc_media_base", 64 "../media:rtc_media_base",
67 "../modules/video_capture:video_capture_module", 65 "../modules/video_capture:video_capture_module",
66 "../rtc_base:rtc_base_approved",
67 "../rtc_base:rtc_task_queue",
68 "../system_wrappers", 68 "../system_wrappers",
69 ] 69 ]
70 } 70 }
71 71
72 rtc_source_set("rtp_test_utils") { 72 rtc_source_set("rtp_test_utils") {
73 testonly = true 73 testonly = true
74 sources = [ 74 sources = [
75 "rtcp_packet_parser.cc", 75 "rtcp_packet_parser.cc",
76 "rtcp_packet_parser.h", 76 "rtcp_packet_parser.h",
77 "rtp_file_reader.cc", 77 "rtp_file_reader.cc",
78 "rtp_file_reader.h", 78 "rtp_file_reader.h",
79 "rtp_file_writer.cc", 79 "rtp_file_writer.cc",
80 "rtp_file_writer.h", 80 "rtp_file_writer.h",
81 ] 81 ]
82 82
83 if (!build_with_chromium && is_clang) { 83 if (!build_with_chromium && is_clang) {
84 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 84 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
85 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 85 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
86 } 86 }
87 87
88 deps = [ 88 deps = [
89 "..:webrtc_common", 89 "..:webrtc_common",
90 "../base:rtc_base_approved",
91 "../modules/rtp_rtcp", 90 "../modules/rtp_rtcp",
91 "../rtc_base:rtc_base_approved",
92 "//testing/gtest", 92 "//testing/gtest",
93 ] 93 ]
94 } 94 }
95 95
96 rtc_source_set("field_trial") { 96 rtc_source_set("field_trial") {
97 testonly = true 97 testonly = true
98 sources = [ 98 sources = [
99 "field_trial.cc", 99 "field_trial.cc",
100 "field_trial.h", 100 "field_trial.h",
101 ] 101 ]
(...skipping 22 matching lines...) Expand all
124 124
125 if (is_ios) { 125 if (is_ios) {
126 sources += [ 126 sources += [
127 "ios/test_support.h", 127 "ios/test_support.h",
128 "ios/test_support.mm", 128 "ios/test_support.mm",
129 ] 129 ]
130 } 130 }
131 131
132 deps = [ 132 deps = [
133 "..:webrtc_common", 133 "..:webrtc_common",
134 "../base:gtest_prod",
135 "../base:rtc_base_approved",
136 "../common_video", 134 "../common_video",
135 "../rtc_base:gtest_prod",
136 "../rtc_base:rtc_base_approved",
137 "../system_wrappers", 137 "../system_wrappers",
138 "//testing/gmock", 138 "//testing/gmock",
139 "//testing/gtest", 139 "//testing/gtest",
140 ] 140 ]
141 141
142 public_deps = [ 142 public_deps = [
143 ":fileutils", 143 ":fileutils",
144 ] 144 ]
145 145
146 if (!build_with_chromium && is_clang) { 146 if (!build_with_chromium && is_clang) {
(...skipping 24 matching lines...) Expand all
171 testonly = true 171 testonly = true
172 sources = [ 172 sources = [
173 "test_main.cc", 173 "test_main.cc",
174 ] 174 ]
175 175
176 public_deps = [ 176 public_deps = [
177 ":test_support", 177 ":test_support",
178 ] 178 ]
179 deps = [ 179 deps = [
180 ":field_trial", 180 ":field_trial",
181 "../base:rtc_base_approved", 181 "../rtc_base:rtc_base_approved",
182 "../system_wrappers:metrics_default", 182 "../system_wrappers:metrics_default",
183 "//testing/gmock", 183 "//testing/gmock",
184 "//testing/gtest", 184 "//testing/gtest",
185 "//third_party/gflags", 185 "//third_party/gflags",
186 ] 186 ]
187 } 187 }
188 188
189 rtc_source_set("video_test_support") { 189 rtc_source_set("video_test_support") {
190 testonly = true 190 testonly = true
191 191
192 sources = [ 192 sources = [
193 "testsupport/frame_reader.h", 193 "testsupport/frame_reader.h",
194 "testsupport/frame_writer.h", 194 "testsupport/frame_writer.h",
195 "testsupport/metrics/video_metrics.cc", 195 "testsupport/metrics/video_metrics.cc",
196 "testsupport/metrics/video_metrics.h", 196 "testsupport/metrics/video_metrics.h",
197 "testsupport/mock/mock_frame_reader.h", 197 "testsupport/mock/mock_frame_reader.h",
198 "testsupport/mock/mock_frame_writer.h", 198 "testsupport/mock/mock_frame_writer.h",
199 "testsupport/y4m_frame_writer.cc", 199 "testsupport/y4m_frame_writer.cc",
200 "testsupport/yuv_frame_reader.cc", 200 "testsupport/yuv_frame_reader.cc",
201 "testsupport/yuv_frame_writer.cc", 201 "testsupport/yuv_frame_writer.cc",
202 ] 202 ]
203 203
204 deps = [ 204 deps = [
205 ":test_support", 205 ":test_support",
206 ":video_test_common", 206 ":video_test_common",
207 "..:webrtc_common", 207 "..:webrtc_common",
208 "../base:rtc_base_approved",
209 "../common_video", 208 "../common_video",
209 "../rtc_base:rtc_base_approved",
210 "../system_wrappers", 210 "../system_wrappers",
211 "//testing/gmock", 211 "//testing/gmock",
212 "//testing/gtest", 212 "//testing/gtest",
213 "//third_party/gflags", 213 "//third_party/gflags",
214 ] 214 ]
215 215
216 public_deps = [ 216 public_deps = [
217 ":fileutils", 217 ":fileutils",
218 ] 218 ]
219 219
(...skipping 16 matching lines...) Expand all
236 } 236 }
237 237
238 rtc_source_set("test_support_isolated_output") { 238 rtc_source_set("test_support_isolated_output") {
239 testonly = true 239 testonly = true
240 sources = [ 240 sources = [
241 "testsupport/isolated_output.cc", 241 "testsupport/isolated_output.cc",
242 "testsupport/isolated_output.h", 242 "testsupport/isolated_output.h",
243 ] 243 ]
244 deps = [ 244 deps = [
245 ":fileutils", 245 ":fileutils",
246 "../base:rtc_base_approved", 246 "../rtc_base:rtc_base_approved",
247 "//third_party/gflags", 247 "//third_party/gflags",
248 ] 248 ]
249 } 249 }
250 250
251 test_support_unittests_resources = [ 251 test_support_unittests_resources = [
252 "../../resources/foreman_cif_short.yuv", 252 "../../resources/foreman_cif_short.yuv",
253 "../../resources/video_coding/frame-ethernet-ii.pcap", 253 "../../resources/video_coding/frame-ethernet-ii.pcap",
254 "../../resources/video_coding/frame-loopback.pcap", 254 "../../resources/video_coding/frame-loopback.pcap",
255 "../../resources/video_coding/pltype103.rtp", 255 "../../resources/video_coding/pltype103.rtp",
256 "../../resources/video_coding/pltype103_header_only.rtp", 256 "../../resources/video_coding/pltype103_header_only.rtp",
257 "../../resources/video_coding/ssrcs-2.pcap", 257 "../../resources/video_coding/ssrcs-2.pcap",
258 "../../resources/video_coding/ssrcs-3.pcap", 258 "../../resources/video_coding/ssrcs-3.pcap",
259 ] 259 ]
260 260
261 if (is_ios) { 261 if (is_ios) {
262 bundle_data("test_support_unittests_bundle_data") { 262 bundle_data("test_support_unittests_bundle_data") {
263 testonly = true 263 testonly = true
264 sources = test_support_unittests_resources 264 sources = test_support_unittests_resources
265 outputs = [ 265 outputs = [
266 "{{bundle_resources_dir}}/{{source_file_part}}", 266 "{{bundle_resources_dir}}/{{source_file_part}}",
267 ] 267 ]
268 } 268 }
269 } 269 }
270 270
271 rtc_test("test_support_unittests") { 271 rtc_test("test_support_unittests") {
272 deps = [ 272 deps = [
273 ":fake_audio_device", 273 ":fake_audio_device",
274 ":rtp_test_utils", 274 ":rtp_test_utils",
275 "../api:video_frame_api", 275 "../api:video_frame_api",
276 "../base:rtc_base_approved",
277 "../call:call_interfaces", 276 "../call:call_interfaces",
278 "../common_audio", 277 "../common_audio",
279 "../modules/rtp_rtcp", 278 "../modules/rtp_rtcp",
279 "../rtc_base:rtc_base_approved",
280 "../system_wrappers", 280 "../system_wrappers",
281 ] 281 ]
282 sources = [ 282 sources = [
283 "fake_audio_device_unittest.cc", 283 "fake_audio_device_unittest.cc",
284 "fake_network_pipe_unittest.cc", 284 "fake_network_pipe_unittest.cc",
285 "frame_generator_unittest.cc", 285 "frame_generator_unittest.cc",
286 "rtp_file_reader_unittest.cc", 286 "rtp_file_reader_unittest.cc",
287 "rtp_file_writer_unittest.cc", 287 "rtp_file_writer_unittest.cc",
288 "testsupport/always_passing_unittest.cc", 288 "testsupport/always_passing_unittest.cc",
289 "testsupport/isolated_output_unittest.cc", 289 "testsupport/isolated_output_unittest.cc",
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 } 335 }
336 336
337 rtc_source_set("fileutils") { 337 rtc_source_set("fileutils") {
338 testonly = true 338 testonly = true
339 sources = [ 339 sources = [
340 "testsupport/fileutils.cc", 340 "testsupport/fileutils.cc",
341 "testsupport/fileutils.h", 341 "testsupport/fileutils.h",
342 ] 342 ]
343 deps = [ 343 deps = [
344 "..:webrtc_common", 344 "..:webrtc_common",
345 "../base:rtc_base_approved", 345 "../rtc_base:rtc_base_approved",
346 ] 346 ]
347 if (is_ios) { 347 if (is_ios) {
348 sources += [ "testsupport/iosfileutils.mm" ] 348 sources += [ "testsupport/iosfileutils.mm" ]
349 deps += [ "../sdk:objc_common" ] 349 deps += [ "../sdk:objc_common" ]
350 } 350 }
351 if (is_win) { 351 if (is_win) {
352 deps += [ "../base:rtc_base" ] 352 deps += [ "../rtc_base:rtc_base" ]
353 } 353 }
354 visibility = [ ":*" ] 354 visibility = [ ":*" ]
355 } 355 }
356 356
357 rtc_source_set("run_test") { 357 rtc_source_set("run_test") {
358 testonly = true 358 testonly = true
359 sources = [ 359 sources = [
360 "run_test.h", 360 "run_test.h",
361 ] 361 ]
362 if (is_mac) { 362 if (is_mac) {
363 sources += [ "mac/run_test.mm" ] 363 sources += [ "mac/run_test.mm" ]
364 } else { 364 } else {
365 sources += [ "run_test.cc" ] 365 sources += [ "run_test.cc" ]
366 } 366 }
367 } 367 }
368 368
369 rtc_source_set("fileutils_unittests") { 369 rtc_source_set("fileutils_unittests") {
370 testonly = true 370 testonly = true
371 visibility = [ ":*" ] # Only targets in this file can depend on this. 371 visibility = [ ":*" ] # Only targets in this file can depend on this.
372 sources = [ 372 sources = [
373 "testsupport/fileutils_unittest.cc", 373 "testsupport/fileutils_unittest.cc",
374 ] 374 ]
375 deps = [ 375 deps = [
376 ":fileutils", 376 ":fileutils",
377 ":test_support", 377 ":test_support",
378 "../base:rtc_base_approved", 378 "../rtc_base:rtc_base_approved",
379 "//testing/gmock", 379 "//testing/gmock",
380 "//testing/gtest", 380 "//testing/gtest",
381 ] 381 ]
382 } 382 }
383 383
384 rtc_source_set("direct_transport") { 384 rtc_source_set("direct_transport") {
385 testonly = true 385 testonly = true
386 sources = [ 386 sources = [
387 "direct_transport.cc", 387 "direct_transport.cc",
388 "direct_transport.h", 388 "direct_transport.h",
389 "fake_network_pipe.cc", 389 "fake_network_pipe.cc",
390 "fake_network_pipe.h", 390 "fake_network_pipe.h",
391 ] 391 ]
392 if (!build_with_chromium && is_clang) { 392 if (!build_with_chromium && is_clang) {
393 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 393 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
394 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 394 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
395 } 395 }
396 deps = [ 396 deps = [
397 "..:webrtc_common", 397 "..:webrtc_common",
398 "../api:transport_api", 398 "../api:transport_api",
399 "../base:rtc_base_approved",
400 "../call", 399 "../call",
401 "../modules/rtp_rtcp", 400 "../modules/rtp_rtcp",
401 "../rtc_base:rtc_base_approved",
402 "../system_wrappers", 402 "../system_wrappers",
403 ] 403 ]
404 } 404 }
405 405
406 rtc_source_set("fake_audio_device") { 406 rtc_source_set("fake_audio_device") {
407 testonly = true 407 testonly = true
408 sources = [ 408 sources = [
409 "fake_audio_device.cc", 409 "fake_audio_device.cc",
410 "fake_audio_device.h", 410 "fake_audio_device.h",
411 ] 411 ]
412 if (!build_with_chromium && is_clang) { 412 if (!build_with_chromium && is_clang) {
413 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 413 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
414 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 414 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
415 } 415 }
416 deps = [ 416 deps = [
417 "..:webrtc_common", 417 "..:webrtc_common",
418 "../base:rtc_base_approved",
419 "../common_audio:common_audio", 418 "../common_audio:common_audio",
420 "../modules/audio_device:audio_device", 419 "../modules/audio_device:audio_device",
420 "../rtc_base:rtc_base_approved",
421 "../system_wrappers:system_wrappers", 421 "../system_wrappers:system_wrappers",
422 ] 422 ]
423 } 423 }
424 424
425 rtc_source_set("test_common") { 425 rtc_source_set("test_common") {
426 testonly = true 426 testonly = true
427 sources = [ 427 sources = [
428 "call_test.cc", 428 "call_test.cc",
429 "call_test.h", 429 "call_test.h",
430 "configurable_frame_size_encoder.cc", 430 "configurable_frame_size_encoder.cc",
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 ":test_support", 471 ":test_support",
472 ":video_test_common", 472 ":video_test_common",
473 "..:video_stream_api", 473 "..:video_stream_api",
474 "..:webrtc_common", 474 "..:webrtc_common",
475 "../api:transport_api", 475 "../api:transport_api",
476 "../api:video_frame_api", 476 "../api:video_frame_api",
477 "../api/audio_codecs:builtin_audio_decoder_factory", 477 "../api/audio_codecs:builtin_audio_decoder_factory",
478 "../api/audio_codecs:builtin_audio_encoder_factory", 478 "../api/audio_codecs:builtin_audio_encoder_factory",
479 "../api/video_codecs:video_codecs_api", 479 "../api/video_codecs:video_codecs_api",
480 "../audio", 480 "../audio",
481 "../base:rtc_base_approved",
482 "../base:rtc_task_queue",
483 "../base:sequenced_task_checker",
484 "../call", 481 "../call",
485 "../common_video", 482 "../common_video",
486 "../logging:rtc_event_log_api", 483 "../logging:rtc_event_log_api",
487 "../modules/audio_device:mock_audio_device", 484 "../modules/audio_device:mock_audio_device",
488 "../modules/audio_mixer:audio_mixer_impl", 485 "../modules/audio_mixer:audio_mixer_impl",
489 "../modules/audio_processing", 486 "../modules/audio_processing",
490 "../modules/rtp_rtcp", 487 "../modules/rtp_rtcp",
491 "../modules/rtp_rtcp:mock_rtp_rtcp", 488 "../modules/rtp_rtcp:mock_rtp_rtcp",
492 "../modules/video_coding:webrtc_h264", 489 "../modules/video_coding:webrtc_h264",
493 "../modules/video_coding:webrtc_vp8", 490 "../modules/video_coding:webrtc_vp8",
494 "../modules/video_coding:webrtc_vp9", 491 "../modules/video_coding:webrtc_vp9",
492 "../rtc_base:rtc_base_approved",
493 "../rtc_base:rtc_task_queue",
494 "../rtc_base:sequenced_task_checker",
495 "../system_wrappers", 495 "../system_wrappers",
496 "../video", 496 "../video",
497 "../voice_engine", 497 "../voice_engine",
498 "//testing/gmock", 498 "//testing/gmock",
499 "//testing/gtest", 499 "//testing/gtest",
500 ] 500 ]
501 if (!is_android && !build_with_chromium) { 501 if (!is_android && !build_with_chromium) {
502 deps += [ "../modules/video_capture:video_capture_internal_impl" ] 502 deps += [ "../modules/video_capture:video_capture_internal_impl" ]
503 } 503 }
504 } 504 }
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 public_configs = [ ":test_renderer_exported_config" ] 564 public_configs = [ ":test_renderer_exported_config" ]
565 565
566 if (!build_with_chromium && is_clang) { 566 if (!build_with_chromium && is_clang) {
567 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 567 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
568 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 568 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
569 } 569 }
570 570
571 deps = [ 571 deps = [
572 ":test_support", 572 ":test_support",
573 "..:webrtc_common", 573 "..:webrtc_common",
574 "../base:rtc_base_approved",
575 "../common_video", 574 "../common_video",
576 "../modules/media_file", 575 "../modules/media_file",
576 "../rtc_base:rtc_base_approved",
577 "//testing/gtest", 577 "//testing/gtest",
578 ] 578 ]
579 } 579 }
580 580
581 rtc_source_set("audio_codec_mocks") { 581 rtc_source_set("audio_codec_mocks") {
582 testonly = true 582 testonly = true
583 sources = [ 583 sources = [
584 "mock_audio_decoder.cc", 584 "mock_audio_decoder.cc",
585 "mock_audio_decoder.h", 585 "mock_audio_decoder.h",
586 "mock_audio_decoder_factory.h", 586 "mock_audio_decoder_factory.h",
587 "mock_audio_encoder.cc", 587 "mock_audio_encoder.cc",
588 "mock_audio_encoder.h", 588 "mock_audio_encoder.h",
589 "mock_audio_encoder_factory.h", 589 "mock_audio_encoder_factory.h",
590 ] 590 ]
591 591
592 deps = [ 592 deps = [
593 ":test_support", 593 ":test_support",
594 "../api/audio_codecs:audio_codecs_api", 594 "../api/audio_codecs:audio_codecs_api",
595 "../api/audio_codecs:builtin_audio_decoder_factory", 595 "../api/audio_codecs:builtin_audio_decoder_factory",
596 "../base:rtc_base_approved", 596 "../rtc_base:rtc_base_approved",
597 "//testing/gmock", 597 "//testing/gmock",
598 ] 598 ]
599 } 599 }
600 600
601 if (!build_with_chromium && is_android) { 601 if (!build_with_chromium && is_android) {
602 android_library("native_test_java") { 602 android_library("native_test_java") {
603 testonly = true 603 testonly = true
604 java_files = [ 604 java_files = [
605 "android/org/webrtc/native_test/RTCNativeUnitTest.java", 605 "android/org/webrtc/native_test/RTCNativeUnitTest.java",
606 "android/org/webrtc/native_test/RTCNativeUnitTestActivity.java", 606 "android/org/webrtc/native_test/RTCNativeUnitTestActivity.java",
607 ] 607 ]
608 deps = [ 608 deps = [
609 "../rtc_base:base_java", 609 "../rtc_base:base_java",
610 "//testing/android/native_test:native_test_java", 610 "//testing/android/native_test:native_test_java",
611 ] 611 ]
612 } 612 }
613 } 613 }
OLDNEW
« no previous file with comments | « webrtc/system_wrappers/BUILD.gn ('k') | webrtc/test/fuzzers/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698