Remove from chromium build targets that are not compatible with it.

We need to be able build chromium with rtc_include_tests = true. It
reveals a lot of targets that are not compatible with chromium but
aren't marked so.

`rtc_include_tests=true` has been considered a way to disable targets for the Chromium build, causing an overload on rtc_include_tests while the meaning of the two GN args (rtc_include_tests and build_with_chromium) should be kept separated.

Bug: webrtc:12404
Change-Id: I2f72825445916eae7c20ef9338672d6a07a9b9ff
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/203890
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Andrey Logvin <landrey@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#33124}
This commit is contained in:
Andrey Logvin 2021-02-01 09:56:37 +00:00 committed by Commit Bot
parent d6604df27f
commit e7c79fd3d6
36 changed files with 2084 additions and 2020 deletions

View file

@ -527,7 +527,7 @@ if (use_libfuzzer || use_afl) {
} }
} }
if (rtc_include_tests) { if (rtc_include_tests && !build_with_chromium) {
rtc_test("rtc_unittests") { rtc_test("rtc_unittests") {
testonly = true testonly = true

View file

@ -434,22 +434,6 @@ rtc_library("test_dependency_factory") {
} }
if (rtc_include_tests) { if (rtc_include_tests) {
rtc_library("create_video_quality_test_fixture_api") {
visibility = [ "*" ]
testonly = true
sources = [
"test/create_video_quality_test_fixture.cc",
"test/create_video_quality_test_fixture.h",
]
deps = [
":fec_controller_api",
":network_state_predictor_api",
":scoped_refptr",
":video_quality_test_fixture_api",
"../video:video_quality_test",
]
}
# TODO(srte): Move to network_emulation sub directory. # TODO(srte): Move to network_emulation sub directory.
rtc_library("create_network_emulation_manager") { rtc_library("create_network_emulation_manager") {
visibility = [ "*" ] visibility = [ "*" ]
@ -464,21 +448,39 @@ if (rtc_include_tests) {
] ]
} }
rtc_library("create_peerconnection_quality_test_fixture") { if (!build_with_chromium) {
visibility = [ "*" ] rtc_library("create_video_quality_test_fixture_api") {
testonly = true visibility = [ "*" ]
sources = [ testonly = true
"test/create_peerconnection_quality_test_fixture.cc", sources = [
"test/create_peerconnection_quality_test_fixture.h", "test/create_video_quality_test_fixture.cc",
] "test/create_video_quality_test_fixture.h",
]
deps = [
":fec_controller_api",
":network_state_predictor_api",
":scoped_refptr",
":video_quality_test_fixture_api",
"../video:video_quality_test",
]
}
deps = [ rtc_library("create_peerconnection_quality_test_fixture") {
":audio_quality_analyzer_api", visibility = [ "*" ]
":peer_connection_quality_test_fixture_api", testonly = true
":time_controller", sources = [
":video_quality_analyzer_api", "test/create_peerconnection_quality_test_fixture.cc",
"../test/pc/e2e:peerconnection_quality_test", "test/create_peerconnection_quality_test_fixture.h",
] ]
deps = [
":audio_quality_analyzer_api",
":peer_connection_quality_test_fixture_api",
":time_controller",
":video_quality_analyzer_api",
"../test/pc/e2e:peerconnection_quality_test",
]
}
} }
} }
@ -705,7 +707,7 @@ rtc_source_set("function_view") {
} }
if (rtc_include_tests) { if (rtc_include_tests) {
if (rtc_enable_protobuf) { if (rtc_enable_protobuf && !build_with_chromium) {
rtc_library("audioproc_f_api") { rtc_library("audioproc_f_api") {
visibility = [ "*" ] visibility = [ "*" ]
testonly = true testonly = true

View file

@ -192,7 +192,7 @@ if (rtc_include_tests) {
] ]
} }
if (rtc_enable_protobuf) { if (rtc_enable_protobuf && !build_with_chromium) {
rtc_test("low_bandwidth_audio_test") { rtc_test("low_bandwidth_audio_test") {
testonly = true testonly = true
@ -279,30 +279,32 @@ if (rtc_include_tests) {
} }
} }
rtc_library("audio_perf_tests") { if (!build_with_chromium) {
testonly = true rtc_library("audio_perf_tests") {
testonly = true
sources = [ sources = [
"test/audio_bwe_integration_test.cc", "test/audio_bwe_integration_test.cc",
"test/audio_bwe_integration_test.h", "test/audio_bwe_integration_test.h",
] ]
deps = [ deps = [
"../api:simulated_network_api", "../api:simulated_network_api",
"../api/task_queue", "../api/task_queue",
"../call:fake_network", "../call:fake_network",
"../call:simulated_network", "../call:simulated_network",
"../common_audio", "../common_audio",
"../rtc_base:rtc_base_approved", "../rtc_base:rtc_base_approved",
"../rtc_base:task_queue_for_test", "../rtc_base:task_queue_for_test",
"../system_wrappers", "../system_wrappers",
"../test:field_trial", "../test:field_trial",
"../test:fileutils", "../test:fileutils",
"../test:test_common", "../test:test_common",
"../test:test_main", "../test:test_main",
"../test:test_support", "../test:test_support",
"//testing/gtest", "//testing/gtest",
] ]
data = [ "//resources/voice_engine/audio_dtx16.wav" ] data = [ "//resources/voice_engine/audio_dtx16.wav" ]
}
} }
} }

View file

@ -19,21 +19,23 @@ if (rtc_include_tests) {
] ]
} }
rtc_library("voip_core_unittests") { if (!build_with_chromium) {
testonly = true rtc_library("voip_core_unittests") {
sources = [ "voip_core_unittest.cc" ] testonly = true
deps = [ sources = [ "voip_core_unittest.cc" ]
"..:voip_core", deps = [
"../../../api/audio_codecs:builtin_audio_decoder_factory", "..:voip_core",
"../../../api/audio_codecs:builtin_audio_encoder_factory", "../../../api/audio_codecs:builtin_audio_decoder_factory",
"../../../api/task_queue:default_task_queue_factory", "../../../api/audio_codecs:builtin_audio_encoder_factory",
"../../../modules/audio_device:mock_audio_device", "../../../api/task_queue:default_task_queue_factory",
"../../../modules/audio_processing:mocks", "../../../modules/audio_device:mock_audio_device",
"../../../modules/utility:mock_process_thread", "../../../modules/audio_processing:mocks",
"../../../test:audio_codec_mocks", "../../../modules/utility:mock_process_thread",
"../../../test:mock_transport", "../../../test:audio_codec_mocks",
"../../../test:test_support", "../../../test:mock_transport",
] "../../../test:test_support",
]
}
} }
rtc_library("audio_channel_unittests") { rtc_library("audio_channel_unittests") {

View file

@ -387,145 +387,147 @@ rtc_library("fake_network") {
} }
if (rtc_include_tests) { if (rtc_include_tests) {
rtc_library("call_tests") { if (!build_with_chromium) {
testonly = true rtc_library("call_tests") {
testonly = true
sources = [ sources = [
"bitrate_allocator_unittest.cc", "bitrate_allocator_unittest.cc",
"bitrate_estimator_tests.cc", "bitrate_estimator_tests.cc",
"call_unittest.cc", "call_unittest.cc",
"flexfec_receive_stream_unittest.cc", "flexfec_receive_stream_unittest.cc",
"receive_time_calculator_unittest.cc", "receive_time_calculator_unittest.cc",
"rtp_bitrate_configurator_unittest.cc", "rtp_bitrate_configurator_unittest.cc",
"rtp_demuxer_unittest.cc", "rtp_demuxer_unittest.cc",
"rtp_payload_params_unittest.cc", "rtp_payload_params_unittest.cc",
"rtp_video_sender_unittest.cc", "rtp_video_sender_unittest.cc",
"rtx_receive_stream_unittest.cc", "rtx_receive_stream_unittest.cc",
] ]
deps = [ deps = [
":bitrate_allocator", ":bitrate_allocator",
":bitrate_configurator", ":bitrate_configurator",
":call", ":call",
":call_interfaces", ":call_interfaces",
":mock_rtp_interfaces", ":mock_rtp_interfaces",
":rtp_interfaces", ":rtp_interfaces",
":rtp_receiver", ":rtp_receiver",
":rtp_sender", ":rtp_sender",
":simulated_network", ":simulated_network",
"../api:array_view", "../api:array_view",
"../api:create_frame_generator", "../api:create_frame_generator",
"../api:mock_audio_mixer", "../api:mock_audio_mixer",
"../api:rtp_headers", "../api:rtp_headers",
"../api:rtp_parameters", "../api:rtp_parameters",
"../api:transport_api", "../api:transport_api",
"../api/audio_codecs:builtin_audio_decoder_factory", "../api/audio_codecs:builtin_audio_decoder_factory",
"../api/rtc_event_log", "../api/rtc_event_log",
"../api/task_queue:default_task_queue_factory", "../api/task_queue:default_task_queue_factory",
"../api/test/video:function_video_factory", "../api/test/video:function_video_factory",
"../api/transport:field_trial_based_config", "../api/transport:field_trial_based_config",
"../api/video:builtin_video_bitrate_allocator_factory", "../api/video:builtin_video_bitrate_allocator_factory",
"../api/video:video_frame", "../api/video:video_frame",
"../api/video:video_rtp_headers", "../api/video:video_rtp_headers",
"../audio", "../audio",
"../modules:module_api", "../modules:module_api",
"../modules/audio_device:mock_audio_device", "../modules/audio_device:mock_audio_device",
"../modules/audio_mixer", "../modules/audio_mixer",
"../modules/audio_mixer:audio_mixer_impl", "../modules/audio_mixer:audio_mixer_impl",
"../modules/audio_processing:mocks", "../modules/audio_processing:mocks",
"../modules/congestion_controller", "../modules/congestion_controller",
"../modules/pacing", "../modules/pacing",
"../modules/rtp_rtcp", "../modules/rtp_rtcp",
"../modules/rtp_rtcp:mock_rtp_rtcp", "../modules/rtp_rtcp:mock_rtp_rtcp",
"../modules/rtp_rtcp:rtp_rtcp_format", "../modules/rtp_rtcp:rtp_rtcp_format",
"../modules/utility:mock_process_thread", "../modules/utility:mock_process_thread",
"../modules/video_coding", "../modules/video_coding",
"../modules/video_coding:codec_globals_headers", "../modules/video_coding:codec_globals_headers",
"../modules/video_coding:video_codec_interface", "../modules/video_coding:video_codec_interface",
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:logging", "../rtc_base:logging",
"../rtc_base:rate_limiter", "../rtc_base:rate_limiter",
"../rtc_base:rtc_base_approved", "../rtc_base:rtc_base_approved",
"../rtc_base:task_queue_for_test", "../rtc_base:task_queue_for_test",
"../rtc_base/synchronization:mutex", "../rtc_base/synchronization:mutex",
"../system_wrappers", "../system_wrappers",
"../test:audio_codec_mocks", "../test:audio_codec_mocks",
"../test:direct_transport", "../test:direct_transport",
"../test:encoder_settings", "../test:encoder_settings",
"../test:fake_video_codecs", "../test:fake_video_codecs",
"../test:field_trial", "../test:field_trial",
"../test:mock_frame_transformer", "../test:mock_frame_transformer",
"../test:mock_transport", "../test:mock_transport",
"../test:test_common", "../test:test_common",
"../test:test_support", "../test:test_support",
"../test:video_test_common", "../test:video_test_common",
"../test/scenario", "../test/scenario",
"../test/time_controller:time_controller", "../test/time_controller:time_controller",
"../video", "../video",
"adaptation:resource_adaptation_test_utilities", "adaptation:resource_adaptation_test_utilities",
"//testing/gmock", "//testing/gmock",
"//testing/gtest", "//testing/gtest",
] ]
absl_deps = [ absl_deps = [
"//third_party/abseil-cpp/absl/container:inlined_vector", "//third_party/abseil-cpp/absl/container:inlined_vector",
"//third_party/abseil-cpp/absl/memory", "//third_party/abseil-cpp/absl/memory",
"//third_party/abseil-cpp/absl/types:optional", "//third_party/abseil-cpp/absl/types:optional",
"//third_party/abseil-cpp/absl/types:variant", "//third_party/abseil-cpp/absl/types:variant",
] ]
} }
rtc_library("call_perf_tests") { rtc_library("call_perf_tests") {
testonly = true testonly = true
sources = [ sources = [
"call_perf_tests.cc", "call_perf_tests.cc",
"rampup_tests.cc", "rampup_tests.cc",
"rampup_tests.h", "rampup_tests.h",
] ]
deps = [ deps = [
":call_interfaces", ":call_interfaces",
":simulated_network", ":simulated_network",
":video_stream_api", ":video_stream_api",
"../api:rtc_event_log_output_file", "../api:rtc_event_log_output_file",
"../api:simulated_network_api", "../api:simulated_network_api",
"../api/audio_codecs:builtin_audio_encoder_factory", "../api/audio_codecs:builtin_audio_encoder_factory",
"../api/rtc_event_log", "../api/rtc_event_log",
"../api/rtc_event_log:rtc_event_log_factory", "../api/rtc_event_log:rtc_event_log_factory",
"../api/task_queue", "../api/task_queue",
"../api/task_queue:default_task_queue_factory", "../api/task_queue:default_task_queue_factory",
"../api/video:builtin_video_bitrate_allocator_factory", "../api/video:builtin_video_bitrate_allocator_factory",
"../api/video:video_bitrate_allocation", "../api/video:video_bitrate_allocation",
"../api/video_codecs:video_codecs_api", "../api/video_codecs:video_codecs_api",
"../modules/audio_coding", "../modules/audio_coding",
"../modules/audio_device", "../modules/audio_device",
"../modules/audio_device:audio_device_impl", "../modules/audio_device:audio_device_impl",
"../modules/audio_mixer:audio_mixer_impl", "../modules/audio_mixer:audio_mixer_impl",
"../modules/rtp_rtcp", "../modules/rtp_rtcp",
"../modules/rtp_rtcp:rtp_rtcp_format", "../modules/rtp_rtcp:rtp_rtcp_format",
"../rtc_base", "../rtc_base",
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:rtc_base_approved", "../rtc_base:rtc_base_approved",
"../rtc_base:task_queue_for_test", "../rtc_base:task_queue_for_test",
"../rtc_base:task_queue_for_test", "../rtc_base:task_queue_for_test",
"../rtc_base:threading", "../rtc_base:threading",
"../rtc_base/synchronization:mutex", "../rtc_base/synchronization:mutex",
"../rtc_base/task_utils:repeating_task", "../rtc_base/task_utils:repeating_task",
"../system_wrappers", "../system_wrappers",
"../system_wrappers:metrics", "../system_wrappers:metrics",
"../test:direct_transport", "../test:direct_transport",
"../test:encoder_settings", "../test:encoder_settings",
"../test:fake_video_codecs", "../test:fake_video_codecs",
"../test:field_trial", "../test:field_trial",
"../test:fileutils", "../test:fileutils",
"../test:null_transport", "../test:null_transport",
"../test:perf_test", "../test:perf_test",
"../test:rtp_test_utils", "../test:rtp_test_utils",
"../test:test_common", "../test:test_common",
"../test:test_support", "../test:test_support",
"../test:video_test_common", "../test:video_test_common",
"../video", "../video",
"//testing/gtest", "//testing/gtest",
] ]
absl_deps = [ "//third_party/abseil-cpp/absl/flags:flag" ] absl_deps = [ "//third_party/abseil-cpp/absl/flags:flag" ]
}
} }
# TODO(eladalon): This should be moved, as with the TODO for |rtp_interfaces|. # TODO(eladalon): This should be moved, as with the TODO for |rtp_interfaces|.

View file

@ -335,7 +335,7 @@ if (rtc_build_with_neon) {
} }
} }
if (rtc_include_tests) { if (rtc_include_tests && !build_with_chromium) {
rtc_test("common_audio_unittests") { rtc_test("common_audio_unittests") {
visibility += webrtc_default_visibility visibility += webrtc_default_visibility
testonly = true testonly = true

View file

@ -71,7 +71,7 @@ rtc_source_set("frame_counts") {
sources = [ "frame_counts.h" ] sources = [ "frame_counts.h" ]
} }
if (rtc_include_tests) { if (rtc_include_tests && !build_with_chromium) {
common_video_resources = [ "../resources/foreman_cif.yuv" ] common_video_resources = [ "../resources/foreman_cif.yuv" ]
if (is_ios) { if (is_ios) {

View file

@ -408,26 +408,28 @@ if (rtc_enable_protobuf) {
] ]
} }
rtc_executable("rtc_event_log_rtp_dump") { if (!build_with_chromium) {
testonly = true rtc_executable("rtc_event_log_rtp_dump") {
sources = [ "rtc_event_log/rtc_event_log2rtp_dump.cc" ] testonly = true
deps = [ sources = [ "rtc_event_log/rtc_event_log2rtp_dump.cc" ]
":rtc_event_log_parser", deps = [
"../api:array_view", ":rtc_event_log_parser",
"../api:rtp_headers", "../api:array_view",
"../api/rtc_event_log", "../api:rtp_headers",
"../modules/rtp_rtcp", "../api/rtc_event_log",
"../modules/rtp_rtcp:rtp_rtcp_format", "../modules/rtp_rtcp",
"../rtc_base:checks", "../modules/rtp_rtcp:rtp_rtcp_format",
"../rtc_base:protobuf_utils", "../rtc_base:checks",
"../rtc_base:rtc_base_approved", "../rtc_base:protobuf_utils",
"../test:rtp_test_utils", "../rtc_base:rtc_base_approved",
"//third_party/abseil-cpp/absl/flags:flag", "../test:rtp_test_utils",
"//third_party/abseil-cpp/absl/flags:parse", "//third_party/abseil-cpp/absl/flags:flag",
"//third_party/abseil-cpp/absl/flags:usage", "//third_party/abseil-cpp/absl/flags:parse",
"//third_party/abseil-cpp/absl/memory", "//third_party/abseil-cpp/absl/flags:usage",
"//third_party/abseil-cpp/absl/types:optional", "//third_party/abseil-cpp/absl/memory",
] "//third_party/abseil-cpp/absl/types:optional",
]
}
} }
} }
} }

View file

@ -521,160 +521,162 @@ if (rtc_include_tests) {
] ]
} }
rtc_media_unittests_resources = [ if (!build_with_chromium) {
"../resources/media/captured-320x240-2s-48.frames", rtc_media_unittests_resources = [
"../resources/media/faces.1280x720_P420.yuv", "../resources/media/captured-320x240-2s-48.frames",
"../resources/media/faces_I400.jpg", "../resources/media/faces.1280x720_P420.yuv",
"../resources/media/faces_I411.jpg", "../resources/media/faces_I400.jpg",
"../resources/media/faces_I420.jpg", "../resources/media/faces_I411.jpg",
"../resources/media/faces_I422.jpg", "../resources/media/faces_I420.jpg",
"../resources/media/faces_I444.jpg", "../resources/media/faces_I422.jpg",
] "../resources/media/faces_I444.jpg",
if (is_ios) {
bundle_data("rtc_media_unittests_bundle_data") {
testonly = true
sources = rtc_media_unittests_resources
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
}
}
rtc_test("rtc_media_unittests") {
testonly = true
defines = []
deps = [
":rtc_audio_video",
":rtc_constants",
":rtc_data",
":rtc_encoder_simulcast_proxy",
":rtc_internal_video_codecs",
":rtc_media",
":rtc_media_base",
":rtc_media_engine_defaults",
":rtc_media_tests_utils",
":rtc_sdp_fmtp_utils",
":rtc_simulcast_encoder_adapter",
":rtc_vp9_profile",
"../api:create_simulcast_test_fixture_api",
"../api:libjingle_peerconnection_api",
"../api:mock_video_bitrate_allocator",
"../api:mock_video_bitrate_allocator_factory",
"../api:mock_video_codec_factory",
"../api:mock_video_encoder",
"../api:rtp_parameters",
"../api:scoped_refptr",
"../api:simulcast_test_fixture_api",
"../api/audio_codecs:builtin_audio_decoder_factory",
"../api/audio_codecs:builtin_audio_encoder_factory",
"../api/rtc_event_log",
"../api/task_queue",
"../api/task_queue:default_task_queue_factory",
"../api/test/video:function_video_factory",
"../api/transport:field_trial_based_config",
"../api/units:time_delta",
"../api/video:builtin_video_bitrate_allocator_factory",
"../api/video:video_bitrate_allocation",
"../api/video:video_frame",
"../api/video:video_rtp_headers",
"../api/video_codecs:builtin_video_decoder_factory",
"../api/video_codecs:builtin_video_encoder_factory",
"../api/video_codecs:video_codecs_api",
"../audio",
"../call:call_interfaces",
"../common_video",
"../media:rtc_h264_profile_id",
"../modules/audio_device:mock_audio_device",
"../modules/audio_processing",
"../modules/audio_processing:api",
"../modules/audio_processing:mocks",
"../modules/rtp_rtcp",
"../modules/video_coding:simulcast_test_fixture_impl",
"../modules/video_coding:video_codec_interface",
"../modules/video_coding:webrtc_h264",
"../modules/video_coding:webrtc_vp8",
"../modules/video_coding/codecs/av1:libaom_av1_decoder",
"../p2p:p2p_test_utils",
"../rtc_base",
"../rtc_base:checks",
"../rtc_base:gunit_helpers",
"../rtc_base:rtc_base_approved",
"../rtc_base:rtc_base_tests_utils",
"../rtc_base:rtc_task_queue",
"../rtc_base:stringutils",
"../rtc_base:threading",
"../rtc_base/experiments:min_video_bitrate_experiment",
"../rtc_base/synchronization:mutex",
"../rtc_base/third_party/sigslot",
"../test:audio_codec_mocks",
"../test:fake_video_codecs",
"../test:field_trial",
"../test:rtp_test_utils",
"../test:test_main",
"../test:test_support",
"../test:video_test_common",
] ]
absl_deps = [
"//third_party/abseil-cpp/absl/algorithm:container",
"//third_party/abseil-cpp/absl/memory",
"//third_party/abseil-cpp/absl/strings",
"//third_party/abseil-cpp/absl/types:optional",
]
sources = [
"base/codec_unittest.cc",
"base/media_engine_unittest.cc",
"base/rtp_data_engine_unittest.cc",
"base/rtp_utils_unittest.cc",
"base/sdp_fmtp_utils_unittest.cc",
"base/stream_params_unittest.cc",
"base/turn_utils_unittest.cc",
"base/video_adapter_unittest.cc",
"base/video_broadcaster_unittest.cc",
"base/video_common_unittest.cc",
"engine/encoder_simulcast_proxy_unittest.cc",
"engine/internal_decoder_factory_unittest.cc",
"engine/multiplex_codec_factory_unittest.cc",
"engine/null_webrtc_video_engine_unittest.cc",
"engine/payload_type_mapper_unittest.cc",
"engine/simulcast_encoder_adapter_unittest.cc",
"engine/simulcast_unittest.cc",
"engine/unhandled_packets_buffer_unittest.cc",
"engine/webrtc_media_engine_unittest.cc",
"engine/webrtc_video_engine_unittest.cc",
]
# TODO(kthelgason): Reenable this test on iOS.
# See bugs.webrtc.org/5569
if (!is_ios) {
sources += [ "engine/webrtc_voice_engine_unittest.cc" ]
}
if (rtc_enable_sctp) {
sources += [
"sctp/sctp_transport_reliability_unittest.cc",
"sctp/sctp_transport_unittest.cc",
]
}
if (rtc_opus_support_120ms_ptime) {
defines += [ "WEBRTC_OPUS_SUPPORT_120MS_PTIME=1" ]
} else {
defines += [ "WEBRTC_OPUS_SUPPORT_120MS_PTIME=0" ]
}
data = rtc_media_unittests_resources
if (is_android) {
deps += [ "//testing/android/native_test:native_test_support" ]
shard_timeout = 900
}
if (is_ios) { if (is_ios) {
deps += [ ":rtc_media_unittests_bundle_data" ] bundle_data("rtc_media_unittests_bundle_data") {
testonly = true
sources = rtc_media_unittests_resources
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
}
} }
if (rtc_enable_sctp && rtc_build_usrsctp) { rtc_test("rtc_media_unittests") {
deps += [ "//third_party/usrsctp" ] testonly = true
defines = []
deps = [
":rtc_audio_video",
":rtc_constants",
":rtc_data",
":rtc_encoder_simulcast_proxy",
":rtc_internal_video_codecs",
":rtc_media",
":rtc_media_base",
":rtc_media_engine_defaults",
":rtc_media_tests_utils",
":rtc_sdp_fmtp_utils",
":rtc_simulcast_encoder_adapter",
":rtc_vp9_profile",
"../api:create_simulcast_test_fixture_api",
"../api:libjingle_peerconnection_api",
"../api:mock_video_bitrate_allocator",
"../api:mock_video_bitrate_allocator_factory",
"../api:mock_video_codec_factory",
"../api:mock_video_encoder",
"../api:rtp_parameters",
"../api:scoped_refptr",
"../api:simulcast_test_fixture_api",
"../api/audio_codecs:builtin_audio_decoder_factory",
"../api/audio_codecs:builtin_audio_encoder_factory",
"../api/rtc_event_log",
"../api/task_queue",
"../api/task_queue:default_task_queue_factory",
"../api/test/video:function_video_factory",
"../api/transport:field_trial_based_config",
"../api/units:time_delta",
"../api/video:builtin_video_bitrate_allocator_factory",
"../api/video:video_bitrate_allocation",
"../api/video:video_frame",
"../api/video:video_rtp_headers",
"../api/video_codecs:builtin_video_decoder_factory",
"../api/video_codecs:builtin_video_encoder_factory",
"../api/video_codecs:video_codecs_api",
"../audio",
"../call:call_interfaces",
"../common_video",
"../media:rtc_h264_profile_id",
"../modules/audio_device:mock_audio_device",
"../modules/audio_processing",
"../modules/audio_processing:api",
"../modules/audio_processing:mocks",
"../modules/rtp_rtcp",
"../modules/video_coding:simulcast_test_fixture_impl",
"../modules/video_coding:video_codec_interface",
"../modules/video_coding:webrtc_h264",
"../modules/video_coding:webrtc_vp8",
"../modules/video_coding/codecs/av1:libaom_av1_decoder",
"../p2p:p2p_test_utils",
"../rtc_base",
"../rtc_base:checks",
"../rtc_base:gunit_helpers",
"../rtc_base:rtc_base_approved",
"../rtc_base:rtc_base_tests_utils",
"../rtc_base:rtc_task_queue",
"../rtc_base:stringutils",
"../rtc_base:threading",
"../rtc_base/experiments:min_video_bitrate_experiment",
"../rtc_base/synchronization:mutex",
"../rtc_base/third_party/sigslot",
"../test:audio_codec_mocks",
"../test:fake_video_codecs",
"../test:field_trial",
"../test:rtp_test_utils",
"../test:test_main",
"../test:test_support",
"../test:video_test_common",
]
absl_deps = [
"//third_party/abseil-cpp/absl/algorithm:container",
"//third_party/abseil-cpp/absl/memory",
"//third_party/abseil-cpp/absl/strings",
"//third_party/abseil-cpp/absl/types:optional",
]
sources = [
"base/codec_unittest.cc",
"base/media_engine_unittest.cc",
"base/rtp_data_engine_unittest.cc",
"base/rtp_utils_unittest.cc",
"base/sdp_fmtp_utils_unittest.cc",
"base/stream_params_unittest.cc",
"base/turn_utils_unittest.cc",
"base/video_adapter_unittest.cc",
"base/video_broadcaster_unittest.cc",
"base/video_common_unittest.cc",
"engine/encoder_simulcast_proxy_unittest.cc",
"engine/internal_decoder_factory_unittest.cc",
"engine/multiplex_codec_factory_unittest.cc",
"engine/null_webrtc_video_engine_unittest.cc",
"engine/payload_type_mapper_unittest.cc",
"engine/simulcast_encoder_adapter_unittest.cc",
"engine/simulcast_unittest.cc",
"engine/unhandled_packets_buffer_unittest.cc",
"engine/webrtc_media_engine_unittest.cc",
"engine/webrtc_video_engine_unittest.cc",
]
# TODO(kthelgason): Reenable this test on iOS.
# See bugs.webrtc.org/5569
if (!is_ios) {
sources += [ "engine/webrtc_voice_engine_unittest.cc" ]
}
if (rtc_enable_sctp) {
sources += [
"sctp/sctp_transport_reliability_unittest.cc",
"sctp/sctp_transport_unittest.cc",
]
}
if (rtc_opus_support_120ms_ptime) {
defines += [ "WEBRTC_OPUS_SUPPORT_120MS_PTIME=1" ]
} else {
defines += [ "WEBRTC_OPUS_SUPPORT_120MS_PTIME=0" ]
}
data = rtc_media_unittests_resources
if (is_android) {
deps += [ "//testing/android/native_test:native_test_support" ]
shard_timeout = 900
}
if (is_ios) {
deps += [ ":rtc_media_unittests_bundle_data" ]
}
if (rtc_enable_sctp && rtc_build_usrsctp) {
deps += [ "//third_party/usrsctp" ]
}
} }
} }
} }

View file

@ -47,7 +47,7 @@ rtc_source_set("module_fec_api") {
sources = [ "include/module_fec_types.h" ] sources = [ "include/module_fec_types.h" ]
} }
if (rtc_include_tests) { if (rtc_include_tests && !build_with_chromium) {
modules_tests_resources = [ modules_tests_resources = [
"../resources/audio_coding/testfile16kHz.pcm", "../resources/audio_coding/testfile16kHz.pcm",
"../resources/audio_coding/testfile32kHz.pcm", "../resources/audio_coding/testfile32kHz.pcm",

File diff suppressed because it is too large Load diff

View file

@ -367,7 +367,7 @@ rtc_source_set("mock_audio_device") {
] ]
} }
if (rtc_include_tests) { if (rtc_include_tests && !build_with_chromium) {
rtc_library("audio_device_unittests") { rtc_library("audio_device_unittests") {
testonly = true testonly = true

View file

@ -119,17 +119,19 @@ if (rtc_include_tests) {
] ]
} }
rtc_executable("audio_mixer_test") { if (!build_with_chromium) {
testonly = true rtc_executable("audio_mixer_test") {
sources = [ "audio_mixer_test.cc" ] testonly = true
sources = [ "audio_mixer_test.cc" ]
deps = [ deps = [
":audio_mixer_impl", ":audio_mixer_impl",
"../../api/audio:audio_mixer_api", "../../api/audio:audio_mixer_api",
"../../common_audio", "../../common_audio",
"../../rtc_base:stringutils", "../../rtc_base:stringutils",
"//third_party/abseil-cpp/absl/flags:flag", "//third_party/abseil-cpp/absl/flags:flag",
"//third_party/abseil-cpp/absl/flags:parse", "//third_party/abseil-cpp/absl/flags:parse",
] ]
}
} }
} }

View file

@ -309,142 +309,144 @@ if (rtc_include_tests) {
] ]
} }
group("audio_processing_tests") { if (!build_with_chromium) {
testonly = true group("audio_processing_tests") {
deps = [ testonly = true
":audioproc_test_utils", deps = [
"transient:click_annotate",
"transient:transient_suppression_test",
]
if (rtc_enable_protobuf) {
deps += [
":audioproc_unittest_proto",
"aec_dump:aec_dump_unittests",
"test/conversational_speech",
"test/py_quality_assessment",
]
}
}
rtc_library("audio_processing_unittests") {
testonly = true
configs += [ ":apm_debug_dump" ]
sources = [
"audio_buffer_unittest.cc",
"audio_frame_view_unittest.cc",
"config_unittest.cc",
"echo_control_mobile_unittest.cc",
"gain_controller2_unittest.cc",
"splitting_filter_unittest.cc",
"test/fake_recording_device_unittest.cc",
]
deps = [
":analog_mic_simulation",
":api",
":apm_logging",
":audio_buffer",
":audio_frame_view",
":audio_processing",
":audioproc_test_utils",
":config",
":high_pass_filter",
":mocks",
":voice_detection",
"../../api:array_view",
"../../api:scoped_refptr",
"../../api/audio:aec3_config",
"../../api/audio:aec3_factory",
"../../common_audio",
"../../common_audio:common_audio_c",
"../../rtc_base",
"../../rtc_base:checks",
"../../rtc_base:gtest_prod",
"../../rtc_base:ignore_wundef",
"../../rtc_base:protobuf_utils",
"../../rtc_base:rtc_base_approved",
"../../rtc_base:rtc_base_tests_utils",
"../../rtc_base:safe_minmax",
"../../rtc_base:task_queue_for_test",
"../../rtc_base:threading",
"../../rtc_base/synchronization:mutex",
"../../rtc_base/system:arch",
"../../rtc_base/system:file_wrapper",
"../../system_wrappers",
"../../test:fileutils",
"../../test:rtc_expect_death",
"../../test:test_support",
"../audio_coding:neteq_input_audio_tools",
"aec_dump:mock_aec_dump_unittests",
"agc:agc_unittests",
"agc2:adaptive_digital_unittests",
"agc2:biquad_filter_unittests",
"agc2:fixed_digital_unittests",
"agc2:noise_estimator_unittests",
"agc2:rnn_vad_with_level_unittests",
"agc2:test_utils",
"agc2/rnn_vad:unittests",
"test/conversational_speech:unittest",
"transient:transient_suppression_unittests",
"utility:legacy_delay_estimator_unittest",
"utility:pffft_wrapper_unittest",
"vad:vad_unittests",
"//testing/gtest",
]
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
defines = []
if (rtc_prefer_fixed_point) {
defines += [ "WEBRTC_AUDIOPROC_FIXED_PROFILE" ]
} else {
defines += [ "WEBRTC_AUDIOPROC_FLOAT_PROFILE" ]
}
if (rtc_enable_protobuf) {
defines += [ "WEBRTC_AUDIOPROC_DEBUG_DUMP" ]
deps += [
":audioproc_debug_proto",
":audioproc_protobuf_utils",
":audioproc_test_utils", ":audioproc_test_utils",
":audioproc_unittest_proto", "transient:click_annotate",
":optionally_built_submodule_creators", "transient:transient_suppression_test",
":rms_level", ]
":runtime_settings_protobuf_utils",
"../../api/audio:audio_frame_api", if (rtc_enable_protobuf) {
"../../api/audio:echo_control", deps += [
":audioproc_unittest_proto",
"aec_dump:aec_dump_unittests",
"test/conversational_speech",
"test/py_quality_assessment",
]
}
}
rtc_library("audio_processing_unittests") {
testonly = true
configs += [ ":apm_debug_dump" ]
sources = [
"audio_buffer_unittest.cc",
"audio_frame_view_unittest.cc",
"config_unittest.cc",
"echo_control_mobile_unittest.cc",
"gain_controller2_unittest.cc",
"splitting_filter_unittest.cc",
"test/fake_recording_device_unittest.cc",
]
deps = [
":analog_mic_simulation",
":api",
":apm_logging",
":audio_buffer",
":audio_frame_view",
":audio_processing",
":audioproc_test_utils",
":config",
":high_pass_filter",
":mocks",
":voice_detection",
"../../api:array_view",
"../../api:scoped_refptr",
"../../api/audio:aec3_config",
"../../api/audio:aec3_factory",
"../../common_audio",
"../../common_audio:common_audio_c",
"../../rtc_base",
"../../rtc_base:checks",
"../../rtc_base:gtest_prod",
"../../rtc_base:ignore_wundef",
"../../rtc_base:protobuf_utils",
"../../rtc_base:rtc_base_approved",
"../../rtc_base:rtc_base_tests_utils", "../../rtc_base:rtc_base_tests_utils",
"../../rtc_base:rtc_task_queue", "../../rtc_base:safe_minmax",
"aec_dump", "../../rtc_base:task_queue_for_test",
"aec_dump:aec_dump_unittests", "../../rtc_base:threading",
] "../../rtc_base/synchronization:mutex",
absl_deps += [ "//third_party/abseil-cpp/absl/flags:flag" ] "../../rtc_base/system:arch",
sources += [ "../../rtc_base/system:file_wrapper",
"audio_processing_impl_locking_unittest.cc", "../../system_wrappers",
"audio_processing_impl_unittest.cc", "../../test:fileutils",
"audio_processing_unittest.cc", "../../test:rtc_expect_death",
"echo_control_mobile_bit_exact_unittest.cc", "../../test:test_support",
"echo_detector/circular_buffer_unittest.cc", "../audio_coding:neteq_input_audio_tools",
"echo_detector/mean_variance_estimator_unittest.cc", "aec_dump:mock_aec_dump_unittests",
"echo_detector/moving_max_unittest.cc", "agc:agc_unittests",
"echo_detector/normalized_covariance_estimator_unittest.cc", "agc2:adaptive_digital_unittests",
"gain_control_unittest.cc", "agc2:biquad_filter_unittests",
"high_pass_filter_unittest.cc", "agc2:fixed_digital_unittests",
"level_estimator_unittest.cc", "agc2:noise_estimator_unittests",
"residual_echo_detector_unittest.cc", "agc2:rnn_vad_with_level_unittests",
"rms_level_unittest.cc", "agc2:test_utils",
"test/debug_dump_replayer.cc", "agc2/rnn_vad:unittests",
"test/debug_dump_replayer.h", "test/conversational_speech:unittest",
"test/debug_dump_test.cc", "transient:transient_suppression_unittests",
"test/echo_canceller_test_tools.cc", "utility:legacy_delay_estimator_unittest",
"test/echo_canceller_test_tools.h", "utility:pffft_wrapper_unittest",
"test/echo_canceller_test_tools_unittest.cc", "vad:vad_unittests",
"test/echo_control_mock.h", "//testing/gtest",
"test/test_utils.h",
"voice_detection_unittest.cc",
] ]
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
defines = []
if (rtc_prefer_fixed_point) {
defines += [ "WEBRTC_AUDIOPROC_FIXED_PROFILE" ]
} else {
defines += [ "WEBRTC_AUDIOPROC_FLOAT_PROFILE" ]
}
if (rtc_enable_protobuf) {
defines += [ "WEBRTC_AUDIOPROC_DEBUG_DUMP" ]
deps += [
":audioproc_debug_proto",
":audioproc_protobuf_utils",
":audioproc_test_utils",
":audioproc_unittest_proto",
":optionally_built_submodule_creators",
":rms_level",
":runtime_settings_protobuf_utils",
"../../api/audio:audio_frame_api",
"../../api/audio:echo_control",
"../../rtc_base:rtc_base_tests_utils",
"../../rtc_base:rtc_task_queue",
"aec_dump",
"aec_dump:aec_dump_unittests",
]
absl_deps += [ "//third_party/abseil-cpp/absl/flags:flag" ]
sources += [
"audio_processing_impl_locking_unittest.cc",
"audio_processing_impl_unittest.cc",
"audio_processing_unittest.cc",
"echo_control_mobile_bit_exact_unittest.cc",
"echo_detector/circular_buffer_unittest.cc",
"echo_detector/mean_variance_estimator_unittest.cc",
"echo_detector/moving_max_unittest.cc",
"echo_detector/normalized_covariance_estimator_unittest.cc",
"gain_control_unittest.cc",
"high_pass_filter_unittest.cc",
"level_estimator_unittest.cc",
"residual_echo_detector_unittest.cc",
"rms_level_unittest.cc",
"test/debug_dump_replayer.cc",
"test/debug_dump_replayer.h",
"test/debug_dump_test.cc",
"test/echo_canceller_test_tools.cc",
"test/echo_canceller_test_tools.h",
"test/echo_canceller_test_tools_unittest.cc",
"test/echo_control_mock.h",
"test/test_utils.h",
"voice_detection_unittest.cc",
]
}
} }
} }
@ -482,7 +484,7 @@ if (rtc_include_tests) {
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ] absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
} }
if (rtc_enable_protobuf) { if (rtc_enable_protobuf && !build_with_chromium) {
rtc_library("audioproc_f_impl") { rtc_library("audioproc_f_impl") {
testonly = true testonly = true
configs += [ ":apm_debug_dump" ] configs += [ ":apm_debug_dump" ]

View file

@ -302,7 +302,6 @@ if (rtc_include_tests) {
"..:apm_logging", "..:apm_logging",
"..:audio_buffer", "..:audio_buffer",
"..:audio_processing", "..:audio_processing",
"..:audio_processing_unittests",
"..:high_pass_filter", "..:high_pass_filter",
"../../../api:array_view", "../../../api:array_view",
"../../../api/audio:aec3_config", "../../../api/audio:aec3_config",
@ -363,5 +362,9 @@ if (rtc_include_tests) {
"vector_math_unittest.cc", "vector_math_unittest.cc",
] ]
} }
if (!build_with_chromium) {
deps += [ "..:audio_processing_unittests" ]
}
} }
} }

View file

@ -312,20 +312,22 @@ if (rtc_include_tests) {
} }
} }
rtc_executable("rnn_vad_tool") { if (!build_with_chromium) {
testonly = true rtc_executable("rnn_vad_tool") {
sources = [ "rnn_vad_tool.cc" ] testonly = true
deps = [ sources = [ "rnn_vad_tool.cc" ]
":rnn_vad", deps = [
":rnn_vad_common", ":rnn_vad",
"..:cpu_features", ":rnn_vad_common",
"../../../../api:array_view", "..:cpu_features",
"../../../../common_audio", "../../../../api:array_view",
"../../../../rtc_base:rtc_base_approved", "../../../../common_audio",
"../../../../rtc_base:safe_compare", "../../../../rtc_base:rtc_base_approved",
"../../../../test:test_support", "../../../../rtc_base:safe_compare",
"//third_party/abseil-cpp/absl/flags:flag", "../../../../test:test_support",
"//third_party/abseil-cpp/absl/flags:parse", "//third_party/abseil-cpp/absl/flags:flag",
] "//third_party/abseil-cpp/absl/flags:parse",
]
}
} }
} }

View file

@ -80,7 +80,6 @@ if (rtc_include_tests) {
"..:apm_logging", "..:apm_logging",
"..:audio_buffer", "..:audio_buffer",
"..:audio_processing", "..:audio_processing",
"..:audio_processing_unittests",
"..:high_pass_filter", "..:high_pass_filter",
"../../../api:array_view", "../../../api:array_view",
"../../../rtc_base:checks", "../../../rtc_base:checks",
@ -98,5 +97,9 @@ if (rtc_include_tests) {
if (rtc_enable_protobuf) { if (rtc_enable_protobuf) {
sources += [] sources += []
} }
if (!build_with_chromium) {
deps += [ "..:audio_processing_unittests" ]
}
} }
} }

View file

@ -8,21 +8,23 @@
import("../../../../webrtc.gni") import("../../../../webrtc.gni")
group("conversational_speech") { if (!build_with_chromium) {
testonly = true group("conversational_speech") {
deps = [ ":conversational_speech_generator" ] testonly = true
} deps = [ ":conversational_speech_generator" ]
}
rtc_executable("conversational_speech_generator") { rtc_executable("conversational_speech_generator") {
testonly = true testonly = true
sources = [ "generator.cc" ] sources = [ "generator.cc" ]
deps = [ deps = [
":lib", ":lib",
"../../../../test:fileutils", "../../../../test:fileutils",
"../../../../test:test_support", "../../../../test:test_support",
"//third_party/abseil-cpp/absl/flags:flag", "//third_party/abseil-cpp/absl/flags:flag",
"//third_party/abseil-cpp/absl/flags:parse", "//third_party/abseil-cpp/absl/flags:parse",
] ]
}
} }
rtc_library("lib") { rtc_library("lib") {

View file

@ -8,161 +8,163 @@
import("../../../../webrtc.gni") import("../../../../webrtc.gni")
group("py_quality_assessment") { if (!build_with_chromium) {
testonly = true group("py_quality_assessment") {
deps = [ testonly = true
":scripts", deps = [
":unit_tests", ":scripts",
] ":unit_tests",
} ]
}
copy("scripts") { copy("scripts") {
testonly = true testonly = true
sources = [ sources = [
"README.md", "README.md",
"apm_quality_assessment.py", "apm_quality_assessment.py",
"apm_quality_assessment.sh", "apm_quality_assessment.sh",
"apm_quality_assessment_boxplot.py", "apm_quality_assessment_boxplot.py",
"apm_quality_assessment_export.py", "apm_quality_assessment_export.py",
"apm_quality_assessment_gencfgs.py", "apm_quality_assessment_gencfgs.py",
"apm_quality_assessment_optimize.py", "apm_quality_assessment_optimize.py",
] ]
outputs = [ "$root_build_dir/py_quality_assessment/{{source_file_part}}" ] outputs = [ "$root_build_dir/py_quality_assessment/{{source_file_part}}" ]
deps = [ deps = [
":apm_configs", ":apm_configs",
":lib", ":lib",
":output", ":output",
"../../../../resources/audio_processing/test/py_quality_assessment:probing_signals", "../../../../resources/audio_processing/test/py_quality_assessment:probing_signals",
"../../../../rtc_tools:audioproc_f", "../../../../rtc_tools:audioproc_f",
] ]
} }
copy("apm_configs") { copy("apm_configs") {
testonly = true testonly = true
sources = [ "apm_configs/default.json" ] sources = [ "apm_configs/default.json" ]
visibility = [ ":*" ] # Only targets in this file can depend on this. visibility = [ ":*" ] # Only targets in this file can depend on this.
outputs = [ outputs = [
"$root_build_dir/py_quality_assessment/apm_configs/{{source_file_part}}", "$root_build_dir/py_quality_assessment/apm_configs/{{source_file_part}}",
] ]
} # apm_configs } # apm_configs
copy("lib") { copy("lib") {
testonly = true testonly = true
sources = [ sources = [
"quality_assessment/__init__.py", "quality_assessment/__init__.py",
"quality_assessment/annotations.py", "quality_assessment/annotations.py",
"quality_assessment/audioproc_wrapper.py", "quality_assessment/audioproc_wrapper.py",
"quality_assessment/collect_data.py", "quality_assessment/collect_data.py",
"quality_assessment/data_access.py", "quality_assessment/data_access.py",
"quality_assessment/echo_path_simulation.py", "quality_assessment/echo_path_simulation.py",
"quality_assessment/echo_path_simulation_factory.py", "quality_assessment/echo_path_simulation_factory.py",
"quality_assessment/eval_scores.py", "quality_assessment/eval_scores.py",
"quality_assessment/eval_scores_factory.py", "quality_assessment/eval_scores_factory.py",
"quality_assessment/evaluation.py", "quality_assessment/evaluation.py",
"quality_assessment/exceptions.py", "quality_assessment/exceptions.py",
"quality_assessment/export.py", "quality_assessment/export.py",
"quality_assessment/export_unittest.py", "quality_assessment/export_unittest.py",
"quality_assessment/external_vad.py", "quality_assessment/external_vad.py",
"quality_assessment/input_mixer.py", "quality_assessment/input_mixer.py",
"quality_assessment/input_signal_creator.py", "quality_assessment/input_signal_creator.py",
"quality_assessment/results.css", "quality_assessment/results.css",
"quality_assessment/results.js", "quality_assessment/results.js",
"quality_assessment/signal_processing.py", "quality_assessment/signal_processing.py",
"quality_assessment/simulation.py", "quality_assessment/simulation.py",
"quality_assessment/test_data_generation.py", "quality_assessment/test_data_generation.py",
"quality_assessment/test_data_generation_factory.py", "quality_assessment/test_data_generation_factory.py",
] ]
visibility = [ ":*" ] # Only targets in this file can depend on this. visibility = [ ":*" ] # Only targets in this file can depend on this.
outputs = [ "$root_build_dir/py_quality_assessment/quality_assessment/{{source_file_part}}" ] outputs = [ "$root_build_dir/py_quality_assessment/quality_assessment/{{source_file_part}}" ]
deps = [ "../../../../resources/audio_processing/test/py_quality_assessment:noise_tracks" ] deps = [ "../../../../resources/audio_processing/test/py_quality_assessment:noise_tracks" ]
} }
copy("output") { copy("output") {
testonly = true testonly = true
sources = [ "output/README.md" ] sources = [ "output/README.md" ]
visibility = [ ":*" ] # Only targets in this file can depend on this. visibility = [ ":*" ] # Only targets in this file can depend on this.
outputs = outputs =
[ "$root_build_dir/py_quality_assessment/output/{{source_file_part}}" ] [ "$root_build_dir/py_quality_assessment/output/{{source_file_part}}" ]
} }
group("unit_tests") { group("unit_tests") {
testonly = true testonly = true
visibility = [ ":*" ] # Only targets in this file can depend on this. visibility = [ ":*" ] # Only targets in this file can depend on this.
deps = [ deps = [
":apm_vad", ":apm_vad",
":fake_polqa", ":fake_polqa",
":lib_unit_tests", ":lib_unit_tests",
":scripts_unit_tests", ":scripts_unit_tests",
":vad", ":vad",
] ]
} }
rtc_executable("fake_polqa") { rtc_executable("fake_polqa") {
testonly = true testonly = true
sources = [ "quality_assessment/fake_polqa.cc" ] sources = [ "quality_assessment/fake_polqa.cc" ]
visibility = [ ":*" ] # Only targets in this file can depend on this. visibility = [ ":*" ] # Only targets in this file can depend on this.
output_dir = "${root_out_dir}/py_quality_assessment/quality_assessment" output_dir = "${root_out_dir}/py_quality_assessment/quality_assessment"
deps = [ deps = [
"../../../../rtc_base:checks", "../../../../rtc_base:checks",
"../../../../rtc_base:rtc_base_approved", "../../../../rtc_base:rtc_base_approved",
] ]
} }
rtc_executable("vad") { rtc_executable("vad") {
testonly = true testonly = true
sources = [ "quality_assessment/vad.cc" ] sources = [ "quality_assessment/vad.cc" ]
deps = [ deps = [
"../../../../common_audio", "../../../../common_audio",
"../../../../rtc_base:rtc_base_approved", "../../../../rtc_base:rtc_base_approved",
"//third_party/abseil-cpp/absl/flags:flag", "//third_party/abseil-cpp/absl/flags:flag",
"//third_party/abseil-cpp/absl/flags:parse", "//third_party/abseil-cpp/absl/flags:parse",
] ]
} }
rtc_executable("apm_vad") { rtc_executable("apm_vad") {
testonly = true testonly = true
sources = [ "quality_assessment/apm_vad.cc" ] sources = [ "quality_assessment/apm_vad.cc" ]
deps = [ deps = [
"../..", "../..",
"../../../../common_audio", "../../../../common_audio",
"../../../../rtc_base:rtc_base_approved", "../../../../rtc_base:rtc_base_approved",
"../../vad", "../../vad",
"//third_party/abseil-cpp/absl/flags:flag", "//third_party/abseil-cpp/absl/flags:flag",
"//third_party/abseil-cpp/absl/flags:parse", "//third_party/abseil-cpp/absl/flags:parse",
] ]
} }
rtc_executable("sound_level") { rtc_executable("sound_level") {
testonly = true testonly = true
sources = [ "quality_assessment/sound_level.cc" ] sources = [ "quality_assessment/sound_level.cc" ]
deps = [ deps = [
"../..", "../..",
"../../../../common_audio", "../../../../common_audio",
"../../../../rtc_base:rtc_base_approved", "../../../../rtc_base:rtc_base_approved",
"//third_party/abseil-cpp/absl/flags:flag", "//third_party/abseil-cpp/absl/flags:flag",
"//third_party/abseil-cpp/absl/flags:parse", "//third_party/abseil-cpp/absl/flags:parse",
] ]
} }
copy("lib_unit_tests") { copy("lib_unit_tests") {
testonly = true testonly = true
sources = [ sources = [
"quality_assessment/annotations_unittest.py", "quality_assessment/annotations_unittest.py",
"quality_assessment/echo_path_simulation_unittest.py", "quality_assessment/echo_path_simulation_unittest.py",
"quality_assessment/eval_scores_unittest.py", "quality_assessment/eval_scores_unittest.py",
"quality_assessment/fake_external_vad.py", "quality_assessment/fake_external_vad.py",
"quality_assessment/input_mixer_unittest.py", "quality_assessment/input_mixer_unittest.py",
"quality_assessment/signal_processing_unittest.py", "quality_assessment/signal_processing_unittest.py",
"quality_assessment/simulation_unittest.py", "quality_assessment/simulation_unittest.py",
"quality_assessment/test_data_generation_unittest.py", "quality_assessment/test_data_generation_unittest.py",
] ]
visibility = [ ":*" ] # Only targets in this file can depend on this. visibility = [ ":*" ] # Only targets in this file can depend on this.
outputs = [ "$root_build_dir/py_quality_assessment/quality_assessment/{{source_file_part}}" ] outputs = [ "$root_build_dir/py_quality_assessment/quality_assessment/{{source_file_part}}" ]
} }
copy("scripts_unit_tests") { copy("scripts_unit_tests") {
testonly = true testonly = true
sources = [ "apm_quality_assessment_unittest.py" ] sources = [ "apm_quality_assessment_unittest.py" ]
visibility = [ ":*" ] # Only targets in this file can depend on this. visibility = [ ":*" ] # Only targets in this file can depend on this.
outputs = [ "$root_build_dir/py_quality_assessment/{{source_file_part}}" ] outputs = [ "$root_build_dir/py_quality_assessment/{{source_file_part}}" ]
}
} }

View file

@ -49,42 +49,44 @@ rtc_library("transient_suppressor_impl") {
} }
if (rtc_include_tests) { if (rtc_include_tests) {
rtc_executable("click_annotate") { if (!build_with_chromium) {
testonly = true rtc_executable("click_annotate") {
sources = [ testonly = true
"click_annotate.cc", sources = [
"file_utils.cc", "click_annotate.cc",
"file_utils.h", "file_utils.cc",
] "file_utils.h",
deps = [ ]
":transient_suppressor_impl", deps = [
"..:audio_processing", ":transient_suppressor_impl",
"../../../rtc_base/system:file_wrapper", "..:audio_processing",
"../../../system_wrappers", "../../../rtc_base/system:file_wrapper",
] "../../../system_wrappers",
} ]
}
rtc_executable("transient_suppression_test") { rtc_executable("transient_suppression_test") {
testonly = true testonly = true
sources = [ sources = [
"file_utils.cc", "file_utils.cc",
"file_utils.h", "file_utils.h",
"transient_suppression_test.cc", "transient_suppression_test.cc",
] ]
deps = [ deps = [
":transient_suppressor_impl", ":transient_suppressor_impl",
"..:audio_processing", "..:audio_processing",
"../../../common_audio", "../../../common_audio",
"../../../rtc_base:rtc_base_approved", "../../../rtc_base:rtc_base_approved",
"../../../rtc_base/system:file_wrapper", "../../../rtc_base/system:file_wrapper",
"../../../system_wrappers", "../../../system_wrappers",
"../../../test:fileutils", "../../../test:fileutils",
"../../../test:test_support", "../../../test:test_support",
"../agc:level_estimation", "../agc:level_estimation",
"//testing/gtest", "//testing/gtest",
"//third_party/abseil-cpp/absl/flags:flag", "//third_party/abseil-cpp/absl/flags:flag",
"//third_party/abseil-cpp/absl/flags:parse", "//third_party/abseil-cpp/absl/flags:parse",
] ]
}
} }
rtc_library("transient_suppression_unittests") { rtc_library("transient_suppression_unittests") {

View file

@ -39,7 +39,7 @@ rtc_library("congestion_controller") {
} }
} }
if (rtc_include_tests) { if (rtc_include_tests && !build_with_chromium) {
rtc_library("congestion_controller_unittests") { rtc_library("congestion_controller_unittests") {
testonly = true testonly = true

View file

@ -257,53 +257,55 @@ if (rtc_include_tests) {
] ]
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ] absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
} }
rtc_library("goog_cc_unittests") { if (!build_with_chromium) {
testonly = true rtc_library("goog_cc_unittests") {
testonly = true
sources = [ sources = [
"acknowledged_bitrate_estimator_unittest.cc", "acknowledged_bitrate_estimator_unittest.cc",
"alr_detector_unittest.cc", "alr_detector_unittest.cc",
"congestion_window_pushback_controller_unittest.cc", "congestion_window_pushback_controller_unittest.cc",
"delay_based_bwe_unittest.cc", "delay_based_bwe_unittest.cc",
"delay_based_bwe_unittest_helper.cc", "delay_based_bwe_unittest_helper.cc",
"delay_based_bwe_unittest_helper.h", "delay_based_bwe_unittest_helper.h",
"goog_cc_network_control_unittest.cc", "goog_cc_network_control_unittest.cc",
"probe_bitrate_estimator_unittest.cc", "probe_bitrate_estimator_unittest.cc",
"probe_controller_unittest.cc", "probe_controller_unittest.cc",
"robust_throughput_estimator_unittest.cc", "robust_throughput_estimator_unittest.cc",
"send_side_bandwidth_estimation_unittest.cc", "send_side_bandwidth_estimation_unittest.cc",
"trendline_estimator_unittest.cc", "trendline_estimator_unittest.cc",
] ]
deps = [ deps = [
":alr_detector", ":alr_detector",
":delay_based_bwe", ":delay_based_bwe",
":estimators", ":estimators",
":goog_cc", ":goog_cc",
":loss_based_controller", ":loss_based_controller",
":probe_controller", ":probe_controller",
":pushback_controller", ":pushback_controller",
"../../../api/rtc_event_log", "../../../api/rtc_event_log",
"../../../api/test/network_emulation", "../../../api/test/network_emulation",
"../../../api/test/network_emulation:create_cross_traffic", "../../../api/test/network_emulation:create_cross_traffic",
"../../../api/transport:field_trial_based_config", "../../../api/transport:field_trial_based_config",
"../../../api/transport:goog_cc", "../../../api/transport:goog_cc",
"../../../api/transport:network_control", "../../../api/transport:network_control",
"../../../api/transport:webrtc_key_value_config", "../../../api/transport:webrtc_key_value_config",
"../../../api/units:data_rate", "../../../api/units:data_rate",
"../../../api/units:timestamp", "../../../api/units:timestamp",
"../../../logging:mocks", "../../../logging:mocks",
"../../../logging:rtc_event_bwe", "../../../logging:rtc_event_bwe",
"../../../rtc_base:checks", "../../../rtc_base:checks",
"../../../rtc_base:rtc_base_approved", "../../../rtc_base:rtc_base_approved",
"../../../rtc_base:rtc_base_tests_utils", "../../../rtc_base:rtc_base_tests_utils",
"../../../rtc_base/experiments:alr_experiment", "../../../rtc_base/experiments:alr_experiment",
"../../../system_wrappers", "../../../system_wrappers",
"../../../test:explicit_key_value_config", "../../../test:explicit_key_value_config",
"../../../test:field_trial", "../../../test:field_trial",
"../../../test:test_support", "../../../test:test_support",
"../../../test/scenario", "../../../test/scenario",
"../../pacing", "../../pacing",
"//testing/gmock", "//testing/gmock",
] ]
}
} }
} }

View file

@ -98,7 +98,7 @@ rtc_library("bitrate_controller") {
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ] absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
} }
if (rtc_include_tests) { if (rtc_include_tests && !build_with_chromium) {
rtc_library("pcc_unittests") { rtc_library("pcc_unittests") {
testonly = true testonly = true
sources = [ sources = [

View file

@ -436,22 +436,24 @@ rtc_library("mock_rtp_rtcp") {
} }
if (rtc_include_tests) { if (rtc_include_tests) {
rtc_executable("test_packet_masks_metrics") { if (!build_with_chromium) {
testonly = true rtc_executable("test_packet_masks_metrics") {
testonly = true
sources = [ sources = [
"test/testFec/average_residual_loss_xor_codes.h", "test/testFec/average_residual_loss_xor_codes.h",
"test/testFec/test_packet_masks_metrics.cc", "test/testFec/test_packet_masks_metrics.cc",
] ]
deps = [ deps = [
":rtp_rtcp", ":rtp_rtcp",
"../../test:fileutils", "../../test:fileutils",
"../../test:test_main", "../../test:test_main",
"../../test:test_support", "../../test:test_support",
"//testing/gtest", "//testing/gtest",
] ]
} # test_packet_masks_metrics } # test_packet_masks_metrics
}
rtc_library("rtp_rtcp_modules_tests") { rtc_library("rtp_rtcp_modules_tests") {
testonly = true testonly = true

View file

@ -809,7 +809,7 @@ rtc_source_set("libjingle_peerconnection") {
] ]
} }
if (rtc_include_tests) { if (rtc_include_tests && !build_with_chromium) {
rtc_test("rtc_pc_unittests") { rtc_test("rtc_pc_unittests") {
testonly = true testonly = true

View file

@ -8,7 +8,7 @@
import("../../../../webrtc.gni") import("../../../../webrtc.gni")
if (rtc_include_tests) { if (rtc_include_tests && !build_with_chromium) {
copy("noise_tracks") { copy("noise_tracks") {
testonly = true testonly = true
sources = [ "noise_tracks/city.wav" ] sources = [ "noise_tracks/city.wav" ]

View file

@ -1279,152 +1279,6 @@ if (rtc_include_tests) {
] ]
} }
rtc_library("rtc_base_nonparallel_tests") {
testonly = true
sources = [
"cpu_time_unittest.cc",
"file_rotating_stream_unittest.cc",
"null_socket_server_unittest.cc",
"physical_socket_server_unittest.cc",
"socket_address_unittest.cc",
"socket_unittest.cc",
"socket_unittest.h",
]
deps = [
":async_socket",
":checks",
":gunit_helpers",
":ip_address",
":net_helpers",
":null_socket_server",
":rtc_base",
":rtc_base_tests_utils",
":socket",
":socket_address",
":socket_server",
":testclient",
":threading",
"../system_wrappers",
"../test:fileutils",
"../test:test_main",
"../test:test_support",
"third_party/sigslot",
"//testing/gtest",
]
absl_deps = [ "//third_party/abseil-cpp/absl/memory" ]
if (is_win) {
sources += [ "win32_socket_server_unittest.cc" ]
}
}
rtc_library("rtc_base_approved_unittests") {
testonly = true
sources = [
"atomic_ops_unittest.cc",
"base64_unittest.cc",
"bit_buffer_unittest.cc",
"bounded_inline_vector_unittest.cc",
"buffer_queue_unittest.cc",
"buffer_unittest.cc",
"byte_buffer_unittest.cc",
"byte_order_unittest.cc",
"checks_unittest.cc",
"copy_on_write_buffer_unittest.cc",
"deprecated/recursive_critical_section_unittest.cc",
"event_tracer_unittest.cc",
"event_unittest.cc",
"logging_unittest.cc",
"numerics/divide_round_unittest.cc",
"numerics/histogram_percentile_counter_unittest.cc",
"numerics/mod_ops_unittest.cc",
"numerics/moving_max_counter_unittest.cc",
"numerics/safe_compare_unittest.cc",
"numerics/safe_minmax_unittest.cc",
"numerics/sample_counter_unittest.cc",
"one_time_event_unittest.cc",
"platform_thread_unittest.cc",
"random_unittest.cc",
"rate_limiter_unittest.cc",
"rate_statistics_unittest.cc",
"rate_tracker_unittest.cc",
"ref_counted_object_unittest.cc",
"sanitizer_unittest.cc",
"string_encode_unittest.cc",
"string_to_number_unittest.cc",
"string_utils_unittest.cc",
"strings/string_builder_unittest.cc",
"strings/string_format_unittest.cc",
"swap_queue_unittest.cc",
"thread_annotations_unittest.cc",
"thread_checker_unittest.cc",
"time_utils_unittest.cc",
"timestamp_aligner_unittest.cc",
"virtual_socket_unittest.cc",
"zero_memory_unittest.cc",
]
if (is_win) {
sources += [ "win/windows_version_unittest.cc" ]
}
deps = [
":async_socket",
":bounded_inline_vector",
":checks",
":divide_round",
":gunit_helpers",
":ip_address",
":null_socket_server",
":rate_limiter",
":rtc_base",
":rtc_base_approved",
":rtc_base_tests_utils",
":rtc_numerics",
":rtc_task_queue",
":safe_compare",
":safe_minmax",
":sanitizer",
":socket",
":socket_address",
":socket_server",
":stringutils",
":testclient",
":threading",
"../api:array_view",
"../api:scoped_refptr",
"../api/numerics",
"../api/units:time_delta",
"../system_wrappers",
"../test:fileutils",
"../test:test_main",
"../test:test_support",
"memory:unittests",
"synchronization:mutex",
"task_utils:to_queued_task",
"third_party/base64",
"third_party/sigslot",
]
absl_deps = [
"//third_party/abseil-cpp/absl/base:core_headers",
"//third_party/abseil-cpp/absl/memory",
]
}
rtc_library("rtc_task_queue_unittests") {
testonly = true
sources = [ "task_queue_unittest.cc" ]
deps = [
":gunit_helpers",
":rtc_base_approved",
":rtc_base_tests_utils",
":rtc_task_queue",
":task_queue_for_test",
"../test:test_main",
"../test:test_support",
]
absl_deps = [ "//third_party/abseil-cpp/absl/memory" ]
}
rtc_library("rtc_operations_chain_unittests") { rtc_library("rtc_operations_chain_unittests") {
testonly = true testonly = true
@ -1440,144 +1294,292 @@ if (rtc_include_tests) {
] ]
} }
rtc_library("weak_ptr_unittests") { if (!build_with_chromium) {
testonly = true rtc_library("rtc_base_nonparallel_tests") {
testonly = true
sources = [ "weak_ptr_unittest.cc" ] sources = [
deps = [ "cpu_time_unittest.cc",
":gunit_helpers", "file_rotating_stream_unittest.cc",
":rtc_base_approved", "null_socket_server_unittest.cc",
":rtc_base_tests_utils", "physical_socket_server_unittest.cc",
":rtc_event", "socket_address_unittest.cc",
":task_queue_for_test", "socket_unittest.cc",
":weak_ptr", "socket_unittest.h",
"../test:test_main",
"../test:test_support",
]
}
rtc_library("rtc_numerics_unittests") {
testonly = true
sources = [
"numerics/event_based_exponential_moving_average_unittest.cc",
"numerics/exp_filter_unittest.cc",
"numerics/moving_average_unittest.cc",
"numerics/moving_median_filter_unittest.cc",
"numerics/percentile_filter_unittest.cc",
"numerics/running_statistics_unittest.cc",
"numerics/sequence_number_util_unittest.cc",
]
deps = [
":rtc_base_approved",
":rtc_numerics",
"../test:test_main",
"../test:test_support",
]
absl_deps = [ "//third_party/abseil-cpp/absl/algorithm:container" ]
}
rtc_library("rtc_json_unittests") {
testonly = true
sources = [ "strings/json_unittest.cc" ]
deps = [
":gunit_helpers",
":rtc_base_tests_utils",
":rtc_json",
"../test:test_main",
"../test:test_support",
]
}
rtc_library("rtc_base_unittests") {
testonly = true
defines = []
sources = [
"callback_unittest.cc",
"crc32_unittest.cc",
"data_rate_limiter_unittest.cc",
"deprecated/signal_thread_unittest.cc",
"fake_clock_unittest.cc",
"helpers_unittest.cc",
"ip_address_unittest.cc",
"memory_usage_unittest.cc",
"message_digest_unittest.cc",
"nat_unittest.cc",
"network_route_unittest.cc",
"network_unittest.cc",
"proxy_unittest.cc",
"rolling_accumulator_unittest.cc",
"rtc_certificate_generator_unittest.cc",
"rtc_certificate_unittest.cc",
"sigslot_tester_unittest.cc",
"test_client_unittest.cc",
"thread_unittest.cc",
"unique_id_generator_unittest.cc",
]
deps = [
":async_socket",
":checks",
":gunit_helpers",
":ip_address",
":net_helpers",
":null_socket_server",
":rtc_base_tests_utils",
":socket_address",
":socket_factory",
":socket_server",
":stringutils",
":testclient",
":threading",
"../api:array_view",
"../api/task_queue",
"../api/task_queue:task_queue_test",
"../test:field_trial",
"../test:fileutils",
"../test:rtc_expect_death",
"../test:test_main",
"../test:test_support",
"memory:fifo_buffer",
"synchronization:mutex",
"task_utils:pending_task_safety_flag",
"task_utils:to_queued_task",
"third_party/sigslot",
]
if (enable_google_benchmarks) {
deps += [ "synchronization:synchronization_unittests" ]
}
if (is_win) {
sources += [
"win32_unittest.cc",
"win32_window_unittest.cc",
] ]
deps += [ ":win32" ] deps = [
":async_socket",
":checks",
":gunit_helpers",
":ip_address",
":net_helpers",
":null_socket_server",
":rtc_base",
":rtc_base_tests_utils",
":socket",
":socket_address",
":socket_server",
":testclient",
":threading",
"../system_wrappers",
"../test:fileutils",
"../test:test_main",
"../test:test_support",
"third_party/sigslot",
"//testing/gtest",
]
absl_deps = [ "//third_party/abseil-cpp/absl/memory" ]
if (is_win) {
sources += [ "win32_socket_server_unittest.cc" ]
}
} }
if (is_posix || is_fuchsia) {
sources += [ rtc_library("rtc_base_approved_unittests") {
"openssl_adapter_unittest.cc", testonly = true
"openssl_session_cache_unittest.cc", sources = [
"openssl_utility_unittest.cc", "atomic_ops_unittest.cc",
"ssl_adapter_unittest.cc", "base64_unittest.cc",
"ssl_identity_unittest.cc", "bit_buffer_unittest.cc",
"ssl_stream_adapter_unittest.cc", "bounded_inline_vector_unittest.cc",
"buffer_queue_unittest.cc",
"buffer_unittest.cc",
"byte_buffer_unittest.cc",
"byte_order_unittest.cc",
"checks_unittest.cc",
"copy_on_write_buffer_unittest.cc",
"deprecated/recursive_critical_section_unittest.cc",
"event_tracer_unittest.cc",
"event_unittest.cc",
"logging_unittest.cc",
"numerics/divide_round_unittest.cc",
"numerics/histogram_percentile_counter_unittest.cc",
"numerics/mod_ops_unittest.cc",
"numerics/moving_max_counter_unittest.cc",
"numerics/safe_compare_unittest.cc",
"numerics/safe_minmax_unittest.cc",
"numerics/sample_counter_unittest.cc",
"one_time_event_unittest.cc",
"platform_thread_unittest.cc",
"random_unittest.cc",
"rate_limiter_unittest.cc",
"rate_statistics_unittest.cc",
"rate_tracker_unittest.cc",
"ref_counted_object_unittest.cc",
"sanitizer_unittest.cc",
"string_encode_unittest.cc",
"string_to_number_unittest.cc",
"string_utils_unittest.cc",
"strings/string_builder_unittest.cc",
"strings/string_format_unittest.cc",
"swap_queue_unittest.cc",
"thread_annotations_unittest.cc",
"thread_checker_unittest.cc",
"time_utils_unittest.cc",
"timestamp_aligner_unittest.cc",
"virtual_socket_unittest.cc",
"zero_memory_unittest.cc",
]
if (is_win) {
sources += [ "win/windows_version_unittest.cc" ]
}
deps = [
":async_socket",
":bounded_inline_vector",
":checks",
":divide_round",
":gunit_helpers",
":ip_address",
":null_socket_server",
":rate_limiter",
":rtc_base",
":rtc_base_approved",
":rtc_base_tests_utils",
":rtc_numerics",
":rtc_task_queue",
":safe_compare",
":safe_minmax",
":sanitizer",
":socket",
":socket_address",
":socket_server",
":stringutils",
":testclient",
":threading",
"../api:array_view",
"../api:scoped_refptr",
"../api/numerics",
"../api/units:time_delta",
"../system_wrappers",
"../test:fileutils",
"../test:test_main",
"../test:test_support",
"memory:unittests",
"synchronization:mutex",
"task_utils:to_queued_task",
"third_party/base64",
"third_party/sigslot",
]
absl_deps = [
"//third_party/abseil-cpp/absl/base:core_headers",
"//third_party/abseil-cpp/absl/memory",
] ]
} }
absl_deps = [
"//third_party/abseil-cpp/absl/algorithm:container", rtc_library("rtc_task_queue_unittests") {
"//third_party/abseil-cpp/absl/memory", testonly = true
"//third_party/abseil-cpp/absl/strings",
"//third_party/abseil-cpp/absl/types:optional", sources = [ "task_queue_unittest.cc" ]
] deps = [
public_deps = [ ":rtc_base" ] # no-presubmit-check TODO(webrtc:8603) ":gunit_helpers",
if (build_with_chromium) { ":rtc_base_approved",
include_dirs = [ "../../boringssl/src/include" ] ":rtc_base_tests_utils",
":rtc_task_queue",
":task_queue_for_test",
"../test:test_main",
"../test:test_support",
]
absl_deps = [ "//third_party/abseil-cpp/absl/memory" ]
} }
if (rtc_build_ssl) {
deps += [ "//third_party/boringssl" ] rtc_library("weak_ptr_unittests") {
} else { testonly = true
configs += [ ":external_ssl_library" ]
sources = [ "weak_ptr_unittest.cc" ]
deps = [
":gunit_helpers",
":rtc_base_approved",
":rtc_base_tests_utils",
":rtc_event",
":task_queue_for_test",
":weak_ptr",
"../test:test_main",
"../test:test_support",
]
}
rtc_library("rtc_numerics_unittests") {
testonly = true
sources = [
"numerics/event_based_exponential_moving_average_unittest.cc",
"numerics/exp_filter_unittest.cc",
"numerics/moving_average_unittest.cc",
"numerics/moving_median_filter_unittest.cc",
"numerics/percentile_filter_unittest.cc",
"numerics/running_statistics_unittest.cc",
"numerics/sequence_number_util_unittest.cc",
]
deps = [
":rtc_base_approved",
":rtc_numerics",
"../test:test_main",
"../test:test_support",
]
absl_deps = [ "//third_party/abseil-cpp/absl/algorithm:container" ]
}
rtc_library("rtc_json_unittests") {
testonly = true
sources = [ "strings/json_unittest.cc" ]
deps = [
":gunit_helpers",
":rtc_base_tests_utils",
":rtc_json",
"../test:test_main",
"../test:test_support",
]
}
rtc_library("rtc_base_unittests") {
testonly = true
defines = []
sources = [
"callback_unittest.cc",
"crc32_unittest.cc",
"data_rate_limiter_unittest.cc",
"deprecated/signal_thread_unittest.cc",
"fake_clock_unittest.cc",
"helpers_unittest.cc",
"ip_address_unittest.cc",
"memory_usage_unittest.cc",
"message_digest_unittest.cc",
"nat_unittest.cc",
"network_route_unittest.cc",
"network_unittest.cc",
"proxy_unittest.cc",
"rolling_accumulator_unittest.cc",
"rtc_certificate_generator_unittest.cc",
"rtc_certificate_unittest.cc",
"sigslot_tester_unittest.cc",
"test_client_unittest.cc",
"thread_unittest.cc",
"unique_id_generator_unittest.cc",
]
deps = [
":async_socket",
":checks",
":gunit_helpers",
":ip_address",
":net_helpers",
":null_socket_server",
":rtc_base_tests_utils",
":socket_address",
":socket_factory",
":socket_server",
":stringutils",
":testclient",
":threading",
"../api:array_view",
"../api/task_queue",
"../api/task_queue:task_queue_test",
"../test:field_trial",
"../test:fileutils",
"../test:rtc_expect_death",
"../test:test_main",
"../test:test_support",
"memory:fifo_buffer",
"synchronization:mutex",
"task_utils:pending_task_safety_flag",
"task_utils:to_queued_task",
"third_party/sigslot",
]
if (enable_google_benchmarks) {
deps += [ "synchronization:synchronization_unittests" ]
}
if (is_win) {
sources += [
"win32_unittest.cc",
"win32_window_unittest.cc",
]
deps += [ ":win32" ]
}
if (is_posix || is_fuchsia) {
sources += [
"openssl_adapter_unittest.cc",
"openssl_session_cache_unittest.cc",
"openssl_utility_unittest.cc",
"ssl_adapter_unittest.cc",
"ssl_identity_unittest.cc",
"ssl_stream_adapter_unittest.cc",
]
}
absl_deps = [
"//third_party/abseil-cpp/absl/algorithm:container",
"//third_party/abseil-cpp/absl/memory",
"//third_party/abseil-cpp/absl/strings",
"//third_party/abseil-cpp/absl/types:optional",
]
public_deps = [ ":rtc_base" ] # no-presubmit-check TODO(webrtc:8603)
if (build_with_chromium) {
include_dirs = [ "../../boringssl/src/include" ]
}
if (rtc_build_ssl) {
deps += [ "//third_party/boringssl" ]
} else {
configs += [ ":external_ssl_library" ]
}
} }
} }
} }

View file

@ -231,7 +231,7 @@ rtc_library("min_video_bitrate_experiment") {
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ] absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
} }
if (rtc_include_tests) { if (rtc_include_tests && !build_with_chromium) {
rtc_library("experiments_unittests") { rtc_library("experiments_unittests") {
testonly = true testonly = true

View file

@ -106,18 +106,20 @@ if (rtc_include_tests) {
} }
} }
rtc_library("sequence_checker_unittests") { if (!build_with_chromium) {
testonly = true rtc_library("sequence_checker_unittests") {
testonly = true
sources = [ "sequence_checker_unittest.cc" ] sources = [ "sequence_checker_unittest.cc" ]
deps = [ deps = [
":sequence_checker", ":sequence_checker",
"..:checks", "..:checks",
"..:rtc_base_approved", "..:rtc_base_approved",
"..:task_queue_for_test", "..:task_queue_for_test",
"../../api:function_view", "../../api:function_view",
"../../test:test_main", "../../test:test_main",
"../../test:test_support", "../../test:test_support",
] ]
}
} }
} }

View file

@ -24,27 +24,28 @@ group("rtc_tools") {
":rgba_to_i420_converter", ":rgba_to_i420_converter",
":video_quality_analysis", ":video_quality_analysis",
] ]
if (rtc_enable_protobuf) {
deps += [ ":chart_proto" ]
}
} }
if (!build_with_chromium && rtc_enable_protobuf) {
if (rtc_include_tests) { deps += [ ":chart_proto" ]
}
if (!build_with_chromium && rtc_include_tests) {
deps += [ deps += [
":tools_unittests", ":tools_unittests",
":yuv_to_ivf_converter", ":yuv_to_ivf_converter",
] ]
if (rtc_enable_protobuf) { }
if (!build_with_chromium) { if (rtc_include_tests && rtc_enable_protobuf) {
deps += [ ":event_log_visualizer" ] deps += [
} ":rtp_analyzer",
deps += [ "network_tester",
":audioproc_f", ]
":rtp_analyzer", }
":unpack_aecdump", if (rtc_include_tests && rtc_enable_protobuf && !build_with_chromium) {
"network_tester", deps += [
] ":audioproc_f",
} ":event_log_visualizer",
":unpack_aecdump",
]
} }
} }
@ -403,154 +404,179 @@ if (!build_with_chromium) {
} }
if (rtc_include_tests) { if (rtc_include_tests) {
rtc_executable("yuv_to_ivf_converter") { if (!build_with_chromium) {
visibility = [ "*" ] rtc_executable("yuv_to_ivf_converter") {
testonly = true visibility = [ "*" ]
sources = [ "converter/yuv_to_ivf_converter.cc" ]
deps = [
"../api:create_frame_generator",
"../api:frame_generator_api",
"../api/task_queue:default_task_queue_factory",
"../api/video:encoded_image",
"../api/video:video_frame",
"../api/video_codecs:video_codecs_api",
"../media:rtc_media_base",
"../modules/rtp_rtcp:rtp_rtcp_format",
"../modules/video_coding:video_codec_interface",
"../modules/video_coding:video_coding_utility",
"../modules/video_coding:webrtc_h264",
"../modules/video_coding:webrtc_vp8",
"../modules/video_coding:webrtc_vp9",
"../rtc_base:checks",
"../rtc_base:criticalsection",
"../rtc_base:logging",
"../rtc_base:rtc_event",
"../rtc_base:rtc_task_queue",
"../rtc_base/synchronization:mutex",
"../rtc_base/system:file_wrapper",
"../test:video_test_common",
"../test:video_test_support",
"//third_party/abseil-cpp/absl/debugging:failure_signal_handler",
"//third_party/abseil-cpp/absl/debugging:symbolize",
"//third_party/abseil-cpp/absl/flags:flag",
"//third_party/abseil-cpp/absl/flags:parse",
"//third_party/abseil-cpp/absl/strings",
]
}
if (rtc_enable_protobuf && !build_with_chromium) {
rtc_executable("event_log_visualizer") {
testonly = true testonly = true
sources = [ "rtc_event_log_visualizer/main.cc" ] sources = [ "converter/yuv_to_ivf_converter.cc" ]
data = [
# If --wav_filename is not provided, event_log_visualizer uses
# EN_script2_F_sp2_B1.wav by default. This is a good default to use
# for example with flags --plot=all when there is no need to use a
# specific .wav file.
"../resources/audio_processing/conversational_speech/EN_script2_F_sp2_B1.wav",
]
deps = [ deps = [
":event_log_visualizer_utils", "../api:create_frame_generator",
"../api/neteq:neteq_api", "../api:frame_generator_api",
"../api/rtc_event_log", "../api/task_queue:default_task_queue_factory",
"../logging:rtc_event_log_parser", "../api/video:encoded_image",
"../modules/audio_coding:neteq", "../api/video:video_frame",
"../api/video_codecs:video_codecs_api",
"../media:rtc_media_base",
"../modules/rtp_rtcp:rtp_rtcp_format", "../modules/rtp_rtcp:rtp_rtcp_format",
"../modules/video_coding:video_codec_interface",
"../modules/video_coding:video_coding_utility",
"../modules/video_coding:webrtc_h264",
"../modules/video_coding:webrtc_vp8",
"../modules/video_coding:webrtc_vp9",
"../rtc_base:checks", "../rtc_base:checks",
"../rtc_base:protobuf_utils", "../rtc_base:criticalsection",
"../rtc_base:rtc_base_approved", "../rtc_base:logging",
"../system_wrappers:field_trial", "../rtc_base:rtc_event",
"../test:field_trial", "../rtc_base:rtc_task_queue",
"../test:fileutils", "../rtc_base/synchronization:mutex",
"../test:test_support", "../rtc_base/system:file_wrapper",
"//third_party/abseil-cpp/absl/algorithm:container", "../test:video_test_common",
"//third_party/abseil-cpp/absl/flags:config", "../test:video_test_support",
"//third_party/abseil-cpp/absl/debugging:failure_signal_handler",
"//third_party/abseil-cpp/absl/debugging:symbolize",
"//third_party/abseil-cpp/absl/flags:flag", "//third_party/abseil-cpp/absl/flags:flag",
"//third_party/abseil-cpp/absl/flags:parse", "//third_party/abseil-cpp/absl/flags:parse",
"//third_party/abseil-cpp/absl/flags:usage",
"//third_party/abseil-cpp/absl/strings", "//third_party/abseil-cpp/absl/strings",
] ]
} }
}
tools_unittests_resources = [ if (rtc_enable_protobuf) {
"../resources/foreman_128x96.yuv", rtc_executable("event_log_visualizer") {
"../resources/foreman_cif.yuv", testonly = true
"../resources/reference_less_video_test_file.y4m", sources = [ "rtc_event_log_visualizer/main.cc" ]
] data = [
# If --wav_filename is not provided, event_log_visualizer uses
if (is_ios) { # EN_script2_F_sp2_B1.wav by default. This is a good default to use
bundle_data("tools_unittests_bundle_data") { # for example with flags --plot=all when there is no need to use a
testonly = true # specific .wav file.
sources = tools_unittests_resources "../resources/audio_processing/conversational_speech/EN_script2_F_sp2_B1.wav",
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ] ]
deps = [
":event_log_visualizer_utils",
"../api/neteq:neteq_api",
"../api/rtc_event_log",
"../logging:rtc_event_log_parser",
"../modules/audio_coding:neteq",
"../modules/rtp_rtcp:rtp_rtcp_format",
"../rtc_base:checks",
"../rtc_base:protobuf_utils",
"../rtc_base:rtc_base_approved",
"../system_wrappers:field_trial",
"../test:field_trial",
"../test:fileutils",
"../test:test_support",
"//third_party/abseil-cpp/absl/algorithm:container",
"//third_party/abseil-cpp/absl/flags:config",
"//third_party/abseil-cpp/absl/flags:flag",
"//third_party/abseil-cpp/absl/flags:parse",
"//third_party/abseil-cpp/absl/flags:usage",
"//third_party/abseil-cpp/absl/strings",
]
}
} }
}
rtc_test("tools_unittests") { tools_unittests_resources = [
testonly = true "../resources/foreman_128x96.yuv",
"../resources/foreman_cif.yuv",
sources = [ "../resources/reference_less_video_test_file.y4m",
"frame_analyzer/linear_least_squares_unittest.cc",
"frame_analyzer/reference_less_video_analysis_unittest.cc",
"frame_analyzer/video_color_aligner_unittest.cc",
"frame_analyzer/video_geometry_aligner_unittest.cc",
"frame_analyzer/video_quality_analysis_unittest.cc",
"frame_analyzer/video_temporal_aligner_unittest.cc",
"sanitizers_unittest.cc",
"video_file_reader_unittest.cc",
"video_file_writer_unittest.cc",
] ]
deps = [ if (is_ios) {
":video_file_reader", bundle_data("tools_unittests_bundle_data") {
":video_file_writer", testonly = true
":video_quality_analysis", sources = tools_unittests_resources
"../api:scoped_refptr", outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
"../api/video:video_frame", }
"../api/video:video_rtp_headers", }
"../common_video",
"../rtc_base",
"../rtc_base:checks",
"../rtc_base:null_socket_server",
"../rtc_base:threading",
"../test:fileutils",
"../test:test_main",
"../test:test_support",
"//testing/gtest",
"//third_party/libyuv",
]
if (!build_with_chromium) { rtc_test("tools_unittests") {
deps += [ ":reference_less_video_analysis_lib" ] testonly = true
sources = [
"frame_analyzer/linear_least_squares_unittest.cc",
"frame_analyzer/reference_less_video_analysis_unittest.cc",
"frame_analyzer/video_color_aligner_unittest.cc",
"frame_analyzer/video_geometry_aligner_unittest.cc",
"frame_analyzer/video_quality_analysis_unittest.cc",
"frame_analyzer/video_temporal_aligner_unittest.cc",
"sanitizers_unittest.cc",
"video_file_reader_unittest.cc",
"video_file_writer_unittest.cc",
]
deps = [
":video_file_reader",
":video_file_writer",
":video_quality_analysis",
"../api:scoped_refptr",
"../api/video:video_frame",
"../api/video:video_rtp_headers",
"../common_video",
"../rtc_base",
"../rtc_base:checks",
"../rtc_base:null_socket_server",
"../rtc_base:threading",
"../test:fileutils",
"../test:test_main",
"../test:test_support",
"//testing/gtest",
"//third_party/libyuv",
]
if (!build_with_chromium) {
deps += [ ":reference_less_video_analysis_lib" ]
}
if (rtc_enable_protobuf) {
deps += [ "network_tester:network_tester_unittests" ]
}
data = tools_unittests_resources
if (is_android) {
deps += [ "//testing/android/native_test:native_test_support" ]
shard_timeout = 900
}
if (is_ios) {
deps += [ ":tools_unittests_bundle_data" ]
}
} }
if (rtc_enable_protobuf) { if (rtc_enable_protobuf) {
deps += [ "network_tester:network_tester_unittests" ] rtc_executable("audioproc_f") {
} testonly = true
sources = [ "audioproc_f/audioproc_float_main.cc" ]
deps = [
"../api:audioproc_f_api",
"../modules/audio_processing",
"../modules/audio_processing:api",
"../rtc_base:rtc_base_approved",
]
}
data = tools_unittests_resources rtc_executable("unpack_aecdump") {
if (is_android) { visibility = [ "*" ]
deps += [ "//testing/android/native_test:native_test_support" ] testonly = true
shard_timeout = 900 sources = [ "unpack_aecdump/unpack.cc" ]
}
if (is_ios) { deps = [
deps += [ ":tools_unittests_bundle_data" ] "../api:function_view",
"../common_audio",
"../modules/audio_processing",
"../modules/audio_processing:audioproc_debug_proto",
"../modules/audio_processing:audioproc_debug_proto",
"../modules/audio_processing:audioproc_protobuf_utils",
"../modules/audio_processing:audioproc_test_utils",
"../rtc_base:ignore_wundef",
"../rtc_base:protobuf_utils",
"../rtc_base:rtc_base_approved",
"//third_party/abseil-cpp/absl/flags:flag",
"//third_party/abseil-cpp/absl/flags:parse",
]
} # unpack_aecdump
} }
} }
if (rtc_enable_protobuf) { if (rtc_enable_protobuf) {
rtc_executable("audioproc_f") {
testonly = true
sources = [ "audioproc_f/audioproc_float_main.cc" ]
deps = [
"../api:audioproc_f_api",
"../modules/audio_processing",
"../modules/audio_processing:api",
"../rtc_base:rtc_base_approved",
]
}
copy("rtp_analyzer") { copy("rtp_analyzer") {
sources = [ sources = [
"py_event_log_analyzer/misc.py", "py_event_log_analyzer/misc.py",
@ -561,26 +587,5 @@ if (rtc_include_tests) {
outputs = [ "$root_build_dir/{{source_file_part}}" ] outputs = [ "$root_build_dir/{{source_file_part}}" ]
deps = [ "../logging:rtc_event_log_proto" ] deps = [ "../logging:rtc_event_log_proto" ]
} # rtp_analyzer } # rtp_analyzer
rtc_executable("unpack_aecdump") {
visibility = [ "*" ]
testonly = true
sources = [ "unpack_aecdump/unpack.cc" ]
deps = [
"../api:function_view",
"../common_audio",
"../modules/audio_processing",
"../modules/audio_processing:audioproc_debug_proto",
"../modules/audio_processing:audioproc_debug_proto",
"../modules/audio_processing:audioproc_protobuf_utils",
"../modules/audio_processing:audioproc_test_utils",
"../rtc_base:ignore_wundef",
"../rtc_base:protobuf_utils",
"../rtc_base:rtc_base_approved",
"//third_party/abseil-cpp/absl/flags:flag",
"//third_party/abseil-cpp/absl/flags:parse",
]
} # unpack_aecdump
} }
} }

View file

@ -44,7 +44,7 @@ rtc_library("rtc_stats_test_utils") {
] ]
} }
if (rtc_include_tests) { if (rtc_include_tests && !build_with_chromium) {
rtc_test("rtc_stats_unittests") { rtc_test("rtc_stats_unittests") {
testonly = true testonly = true
sources = [ sources = [

View file

@ -108,7 +108,7 @@ rtc_library("metrics") {
] ]
} }
if (rtc_include_tests) { if (rtc_include_tests && !build_with_chromium) {
rtc_test("system_wrappers_unittests") { rtc_test("system_wrappers_unittests") {
testonly = true testonly = true
sources = [ sources = [

View file

@ -13,24 +13,26 @@ if (is_android) {
import("//build/config/android/rules.gni") import("//build/config/android/rules.gni")
} }
group("test") { if (!build_with_chromium) {
testonly = true group("test") {
testonly = true
deps = [ deps = [
":copy_to_file_audio_capturer", ":copy_to_file_audio_capturer",
":rtp_test_utils", ":rtp_test_utils",
":test_common", ":test_common",
":test_renderer", ":test_renderer",
":test_support", ":test_support",
":video_test_common", ":video_test_common",
]
if (rtc_include_tests) {
deps += [
":test_main",
":test_support_unittests",
"pc/e2e",
] ]
if (rtc_include_tests) {
deps += [
":test_main",
":test_support_unittests",
"pc/e2e",
]
}
} }
} }
@ -389,7 +391,16 @@ rtc_library("video_test_support") {
} }
} }
if (rtc_include_tests) { if (rtc_include_tests && enable_google_benchmarks) {
rtc_library("benchmark_main") {
testonly = true
sources = [ "benchmark_main.cc" ]
deps = [ "//third_party/google_benchmark" ]
}
}
if (rtc_include_tests && !build_with_chromium) {
rtc_library("resources_dir_flag") { rtc_library("resources_dir_flag") {
testonly = true testonly = true
visibility = [ "*" ] visibility = [ "*" ]
@ -446,15 +457,6 @@ if (rtc_include_tests) {
] ]
} }
if (enable_google_benchmarks) {
rtc_library("benchmark_main") {
testonly = true
sources = [ "benchmark_main.cc" ]
deps = [ "//third_party/google_benchmark" ]
}
}
rtc_library("test_support_test_artifacts") { rtc_library("test_support_test_artifacts") {
testonly = true testonly = true
sources = [ sources = [
@ -578,7 +580,7 @@ if (rtc_include_tests) {
deps += [ ":test_support_unittests_bundle_data" ] deps += [ ":test_support_unittests_bundle_data" ]
} }
if (!is_android && !build_with_chromium) { if (!is_android) {
# This is needed in order to avoid: # This is needed in order to avoid:
# undefined symbol: webrtc::videocapturemodule::VideoCaptureImpl::Create # undefined symbol: webrtc::videocapturemodule::VideoCaptureImpl::Create
deps += [ "../modules/video_capture:video_capture_internal_impl" ] deps += [ "../modules/video_capture:video_capture_internal_impl" ]

View file

@ -94,7 +94,7 @@ rtc_library("network_emulation_unittest") {
] ]
} }
if (rtc_include_tests) { if (rtc_include_tests && !build_with_chromium) {
rtc_library("network_emulation_pc_unittest") { rtc_library("network_emulation_pc_unittest") {
testonly = true testonly = true
sources = [ "network_emulation_pc_unittest.cc" ] sources = [ "network_emulation_pc_unittest.cc" ]
@ -170,13 +170,15 @@ if (rtc_include_tests) {
] ]
} }
rtc_library("network_emulation_unittests") { if (!build_with_chromium) {
testonly = true rtc_library("network_emulation_unittests") {
deps = [ testonly = true
":cross_traffic_unittest", deps = [
":feedback_generator_unittest", ":cross_traffic_unittest",
":network_emulation_pc_unittest", ":feedback_generator_unittest",
":network_emulation_unittest", ":network_emulation_pc_unittest",
] ":network_emulation_unittest",
]
}
} }
} }

View file

@ -21,7 +21,7 @@ rtc_library("column_printer") {
] ]
} }
if (rtc_include_tests) { if (rtc_include_tests && !build_with_chromium) {
scenario_resources = [ scenario_resources = [
"../../resources/difficult_photo_1850_1110.yuv", "../../resources/difficult_photo_1850_1110.yuv",
"../../resources/photo_1850_1110.yuv", "../../resources/photo_1850_1110.yuv",

View file

@ -335,239 +335,240 @@ if (rtc_include_tests) {
"../test:test_support", "../test:test_support",
] ]
} }
if (!build_with_chromium) {
rtc_library("video_quality_test") { rtc_library("video_quality_test") {
testonly = true
# Only targets in this file and api/ can depend on this.
visibility = [
":*",
"../api:create_video_quality_test_fixture_api",
]
sources = [
"video_analyzer.cc",
"video_analyzer.h",
"video_quality_test.cc",
"video_quality_test.h",
]
deps = [
":frame_dumping_decoder",
"../api:create_frame_generator",
"../api:fec_controller_api",
"../api:frame_generator_api",
"../api:libjingle_peerconnection_api",
"../api:rtc_event_log_output_file",
"../api:test_dependency_factory",
"../api:video_quality_test_fixture_api",
"../api/numerics",
"../api/rtc_event_log:rtc_event_log_factory",
"../api/task_queue",
"../api/task_queue:default_task_queue_factory",
"../api/video:builtin_video_bitrate_allocator_factory",
"../api/video:video_bitrate_allocator_factory",
"../api/video:video_frame",
"../api/video:video_rtp_headers",
"../api/video_codecs:video_codecs_api",
"../call:fake_network",
"../call:simulated_network",
"../common_video",
"../media:rtc_audio_video",
"../media:rtc_encoder_simulcast_proxy",
"../media:rtc_internal_video_codecs",
"../media:rtc_media_base",
"../modules/audio_device:audio_device_api",
"../modules/audio_device:audio_device_module_from_input_and_output",
"../modules/audio_device:windows_core_audio_utility",
"../modules/audio_mixer:audio_mixer_impl",
"../modules/rtp_rtcp",
"../modules/rtp_rtcp:rtp_rtcp_format",
"../modules/video_coding",
"../modules/video_coding:video_coding_utility",
"../modules/video_coding:webrtc_h264",
"../modules/video_coding:webrtc_multiplex",
"../modules/video_coding:webrtc_vp8",
"../modules/video_coding:webrtc_vp9",
"../rtc_base:rtc_base_approved",
"../rtc_base:rtc_base_tests_utils",
"../rtc_base:rtc_numerics",
"../rtc_base:task_queue_for_test",
"../rtc_base/synchronization:mutex",
"../rtc_base/task_utils:repeating_task",
"../system_wrappers",
"../test:fake_video_codecs",
"../test:fileutils",
"../test:perf_test",
"../test:platform_video_capturer",
"../test:rtp_test_utils",
"../test:test_common",
"../test:test_renderer",
"../test:test_support",
"../test:test_support_test_artifacts",
"../test:video_test_common",
"../test:video_test_support",
]
absl_deps = [
"//third_party/abseil-cpp/absl/algorithm:container",
"//third_party/abseil-cpp/absl/flags:flag",
"//third_party/abseil-cpp/absl/flags:parse",
]
if (is_mac || is_ios) {
deps += [ "../test:video_test_mac" ]
}
}
rtc_library("video_full_stack_tests") {
testonly = true
sources = [ "full_stack_tests.cc" ]
deps = [
":video_quality_test",
"../api:simulated_network_api",
"../api:test_dependency_factory",
"../api:video_quality_test_fixture_api",
"../api/video_codecs:video_codecs_api",
"../media:rtc_vp9_profile",
"../modules/pacing",
"../modules/video_coding:webrtc_vp9",
"../rtc_base/experiments:alr_experiment",
"../system_wrappers:field_trial",
"../test:field_trial",
"../test:fileutils",
"../test:test_common",
"../test:test_support",
"//testing/gtest",
]
absl_deps = [
"//third_party/abseil-cpp/absl/flags:flag",
"//third_party/abseil-cpp/absl/flags:parse",
"//third_party/abseil-cpp/absl/types:optional",
]
}
rtc_library("video_pc_full_stack_tests") {
testonly = true
sources = [ "pc_full_stack_tests.cc" ]
deps = [
"../api:create_network_emulation_manager",
"../api:create_peer_connection_quality_test_frame_generator",
"../api:create_peerconnection_quality_test_fixture",
"../api:frame_generator_api",
"../api:media_stream_interface",
"../api:network_emulation_manager_api",
"../api:peer_connection_quality_test_fixture_api",
"../api:simulated_network_api",
"../api:time_controller",
"../call:simulated_network",
"../media:rtc_vp9_profile",
"../modules/video_coding:webrtc_vp9",
"../system_wrappers:field_trial",
"../test:field_trial",
"../test:fileutils",
"../test:test_support",
"../test/pc/e2e:network_quality_metrics_reporter",
]
}
rtc_library("video_loopback_lib") {
testonly = true
sources = [
"video_loopback.cc",
"video_loopback.h",
]
deps = [
":video_quality_test",
"../api:libjingle_peerconnection_api",
"../api:simulated_network_api",
"../api:video_quality_test_fixture_api",
"../api/transport:bitrate_settings",
"../api/video_codecs:video_codecs_api",
"../rtc_base:checks",
"../rtc_base:logging",
"../system_wrappers:field_trial",
"../test:field_trial",
"../test:run_test",
"../test:run_test_interface",
"../test:test_common",
"../test:test_renderer",
"../test:test_support",
"//testing/gtest",
]
absl_deps = [
"//third_party/abseil-cpp/absl/flags:flag",
"//third_party/abseil-cpp/absl/flags:parse",
"//third_party/abseil-cpp/absl/types:optional",
]
}
if (is_mac) {
mac_app_bundle("video_loopback") {
testonly = true testonly = true
sources = [ "video_loopback_main.mm" ]
info_plist = "../test/mac/Info.plist" # Only targets in this file and api/ can depend on this.
deps = [ ":video_loopback_lib" ] visibility = [
":*",
"../api:create_video_quality_test_fixture_api",
]
sources = [
"video_analyzer.cc",
"video_analyzer.h",
"video_quality_test.cc",
"video_quality_test.h",
]
deps = [
":frame_dumping_decoder",
"../api:create_frame_generator",
"../api:fec_controller_api",
"../api:frame_generator_api",
"../api:libjingle_peerconnection_api",
"../api:rtc_event_log_output_file",
"../api:test_dependency_factory",
"../api:video_quality_test_fixture_api",
"../api/numerics",
"../api/rtc_event_log:rtc_event_log_factory",
"../api/task_queue",
"../api/task_queue:default_task_queue_factory",
"../api/video:builtin_video_bitrate_allocator_factory",
"../api/video:video_bitrate_allocator_factory",
"../api/video:video_frame",
"../api/video:video_rtp_headers",
"../api/video_codecs:video_codecs_api",
"../call:fake_network",
"../call:simulated_network",
"../common_video",
"../media:rtc_audio_video",
"../media:rtc_encoder_simulcast_proxy",
"../media:rtc_internal_video_codecs",
"../media:rtc_media_base",
"../modules/audio_device:audio_device_api",
"../modules/audio_device:audio_device_module_from_input_and_output",
"../modules/audio_device:windows_core_audio_utility",
"../modules/audio_mixer:audio_mixer_impl",
"../modules/rtp_rtcp",
"../modules/rtp_rtcp:rtp_rtcp_format",
"../modules/video_coding",
"../modules/video_coding:video_coding_utility",
"../modules/video_coding:webrtc_h264",
"../modules/video_coding:webrtc_multiplex",
"../modules/video_coding:webrtc_vp8",
"../modules/video_coding:webrtc_vp9",
"../rtc_base:rtc_base_approved",
"../rtc_base:rtc_base_tests_utils",
"../rtc_base:rtc_numerics",
"../rtc_base:task_queue_for_test",
"../rtc_base/synchronization:mutex",
"../rtc_base/task_utils:repeating_task",
"../system_wrappers",
"../test:fake_video_codecs",
"../test:fileutils",
"../test:perf_test",
"../test:platform_video_capturer",
"../test:rtp_test_utils",
"../test:test_common",
"../test:test_renderer",
"../test:test_support",
"../test:test_support_test_artifacts",
"../test:video_test_common",
"../test:video_test_support",
]
absl_deps = [
"//third_party/abseil-cpp/absl/algorithm:container",
"//third_party/abseil-cpp/absl/flags:flag",
"//third_party/abseil-cpp/absl/flags:parse",
]
if (is_mac || is_ios) {
deps += [ "../test:video_test_mac" ]
}
} }
} else {
rtc_executable("video_loopback") { rtc_library("video_full_stack_tests") {
testonly = true testonly = true
sources = [ "video_loopback_main.cc" ]
deps = [ ":video_loopback_lib" ] sources = [ "full_stack_tests.cc" ]
deps = [
":video_quality_test",
"../api:simulated_network_api",
"../api:test_dependency_factory",
"../api:video_quality_test_fixture_api",
"../api/video_codecs:video_codecs_api",
"../media:rtc_vp9_profile",
"../modules/pacing",
"../modules/video_coding:webrtc_vp9",
"../rtc_base/experiments:alr_experiment",
"../system_wrappers:field_trial",
"../test:field_trial",
"../test:fileutils",
"../test:test_common",
"../test:test_support",
"//testing/gtest",
]
absl_deps = [
"//third_party/abseil-cpp/absl/flags:flag",
"//third_party/abseil-cpp/absl/flags:parse",
"//third_party/abseil-cpp/absl/types:optional",
]
} }
}
rtc_executable("screenshare_loopback") { rtc_library("video_pc_full_stack_tests") {
testonly = true testonly = true
sources = [ "screenshare_loopback.cc" ]
deps = [ sources = [ "pc_full_stack_tests.cc" ]
":video_quality_test", deps = [
"../api:libjingle_peerconnection_api", "../api:create_network_emulation_manager",
"../api:simulated_network_api", "../api:create_peer_connection_quality_test_frame_generator",
"../api:video_quality_test_fixture_api", "../api:create_peerconnection_quality_test_fixture",
"../api/transport:bitrate_settings", "../api:frame_generator_api",
"../api/video_codecs:video_codecs_api", "../api:media_stream_interface",
"../rtc_base:checks", "../api:network_emulation_manager_api",
"../rtc_base:logging", "../api:peer_connection_quality_test_fixture_api",
"../rtc_base:stringutils", "../api:simulated_network_api",
"../system_wrappers:field_trial", "../api:time_controller",
"../test:field_trial", "../call:simulated_network",
"../test:run_test", "../media:rtc_vp9_profile",
"../test:run_test_interface", "../modules/video_coding:webrtc_vp9",
"../test:test_common", "../system_wrappers:field_trial",
"../test:test_renderer", "../test:field_trial",
"../test:test_support", "../test:fileutils",
"//third_party/abseil-cpp/absl/flags:flag", "../test:test_support",
"//third_party/abseil-cpp/absl/flags:parse", "../test/pc/e2e:network_quality_metrics_reporter",
"//third_party/abseil-cpp/absl/types:optional", ]
] }
}
rtc_executable("sv_loopback") { rtc_library("video_loopback_lib") {
testonly = true testonly = true
sources = [ "sv_loopback.cc" ] sources = [
deps = [ "video_loopback.cc",
":video_quality_test", "video_loopback.h",
"../api:libjingle_peerconnection_api", ]
"../api:simulated_network_api", deps = [
"../api:video_quality_test_fixture_api", ":video_quality_test",
"../api/transport:bitrate_settings", "../api:libjingle_peerconnection_api",
"../api/video_codecs:video_codecs_api", "../api:simulated_network_api",
"../rtc_base:checks", "../api:video_quality_test_fixture_api",
"../rtc_base:logging", "../api/transport:bitrate_settings",
"../rtc_base:stringutils", "../api/video_codecs:video_codecs_api",
"../system_wrappers:field_trial", "../rtc_base:checks",
"../test:field_trial", "../rtc_base:logging",
"../test:run_test", "../system_wrappers:field_trial",
"../test:run_test_interface", "../test:field_trial",
"../test:test_common", "../test:run_test",
"../test:test_renderer", "../test:run_test_interface",
"../test:test_support", "../test:test_common",
"//testing/gtest", "../test:test_renderer",
"//third_party/abseil-cpp/absl/flags:flag", "../test:test_support",
"//third_party/abseil-cpp/absl/flags:parse", "//testing/gtest",
"//third_party/abseil-cpp/absl/types:optional", ]
] absl_deps = [
"//third_party/abseil-cpp/absl/flags:flag",
"//third_party/abseil-cpp/absl/flags:parse",
"//third_party/abseil-cpp/absl/types:optional",
]
}
if (is_mac) {
mac_app_bundle("video_loopback") {
testonly = true
sources = [ "video_loopback_main.mm" ]
info_plist = "../test/mac/Info.plist"
deps = [ ":video_loopback_lib" ]
}
} else {
rtc_executable("video_loopback") {
testonly = true
sources = [ "video_loopback_main.cc" ]
deps = [ ":video_loopback_lib" ]
}
}
rtc_executable("screenshare_loopback") {
testonly = true
sources = [ "screenshare_loopback.cc" ]
deps = [
":video_quality_test",
"../api:libjingle_peerconnection_api",
"../api:simulated_network_api",
"../api:video_quality_test_fixture_api",
"../api/transport:bitrate_settings",
"../api/video_codecs:video_codecs_api",
"../rtc_base:checks",
"../rtc_base:logging",
"../rtc_base:stringutils",
"../system_wrappers:field_trial",
"../test:field_trial",
"../test:run_test",
"../test:run_test_interface",
"../test:test_common",
"../test:test_renderer",
"../test:test_support",
"//third_party/abseil-cpp/absl/flags:flag",
"//third_party/abseil-cpp/absl/flags:parse",
"//third_party/abseil-cpp/absl/types:optional",
]
}
rtc_executable("sv_loopback") {
testonly = true
sources = [ "sv_loopback.cc" ]
deps = [
":video_quality_test",
"../api:libjingle_peerconnection_api",
"../api:simulated_network_api",
"../api:video_quality_test_fixture_api",
"../api/transport:bitrate_settings",
"../api/video_codecs:video_codecs_api",
"../rtc_base:checks",
"../rtc_base:logging",
"../rtc_base:stringutils",
"../system_wrappers:field_trial",
"../test:field_trial",
"../test:run_test",
"../test:run_test_interface",
"../test:test_common",
"../test:test_renderer",
"../test:test_support",
"//testing/gtest",
"//third_party/abseil-cpp/absl/flags:flag",
"//third_party/abseil-cpp/absl/flags:parse",
"//third_party/abseil-cpp/absl/types:optional",
]
}
} }
# TODO(pbos): Rename test suite. # TODO(pbos): Rename test suite.