| # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | |
| # | |
| # Use of this source code is governed by a BSD-style license | |
| # that can be found in the LICENSE file in the root of the source | |
| # tree. An additional intellectual property rights grant can be found | |
| # in the file PATENTS. All contributing project authors may | |
| # be found in the AUTHORS file in the root of the source tree. | |
| import("../webrtc.gni") | |
| rtc_library("version") { | |
| sources = [ | |
| "version.cc", | |
| "version.h", | |
| ] | |
| visibility = [ ":*" ] | |
| } | |
| rtc_library("call_interfaces") { | |
| sources = [ | |
| "audio_receive_stream.cc", | |
| "audio_receive_stream.h", | |
| "audio_send_stream.h", | |
| "audio_state.cc", | |
| "audio_state.h", | |
| "call.h", | |
| "call_config.cc", | |
| "call_config.h", | |
| "flexfec_receive_stream.cc", | |
| "flexfec_receive_stream.h", | |
| "packet_receiver.h", | |
| "syncable.cc", | |
| "syncable.h", | |
| ] | |
| if (!build_with_mozilla) { | |
| sources += [ "audio_send_stream.cc" ] | |
| } | |
| deps = [ | |
| ":audio_sender_interface", | |
| ":receive_stream_interface", | |
| ":rtp_interfaces", | |
| ":video_receive_stream_api", | |
| ":video_send_stream_api", | |
| "../api:fec_controller_api", | |
| "../api:frame_transformer_interface", | |
| "../api:network_state_predictor_api", | |
| "../api:ref_count", | |
| "../api:rtp_headers", | |
| "../api:rtp_parameters", | |
| "../api:rtp_sender_interface", | |
| "../api:scoped_refptr", | |
| "../api:transport_api", | |
| "../api/adaptation:resource_adaptation_api", | |
| "../api/audio:audio_device", | |
| "../api/audio:audio_mixer_api", | |
| "../api/audio:audio_processing", | |
| "../api/audio:audio_processing_statistics", | |
| "../api/audio_codecs:audio_codecs_api", | |
| "../api/crypto:frame_decryptor_interface", | |
| "../api/crypto:frame_encryptor_interface", | |
| "../api/crypto:options", | |
| "../api/environment", | |
| "../api/metronome", | |
| "../api/neteq:neteq_api", | |
| "../api/task_queue", | |
| "../api/transport:bitrate_settings", | |
| "../api/transport:network_control", | |
| "../api/units:time_delta", | |
| "../api/units:timestamp", | |
| "../api/video:video_stream_encoder", | |
| "../modules/async_audio_processing", | |
| "../modules/congestion_controller/rtp:congestion_controller_feedback_stats", | |
| "../modules/rtp_rtcp", | |
| "../modules/rtp_rtcp:rtp_rtcp_format", | |
| "../rtc_base:checks", | |
| "../rtc_base:copy_on_write_buffer", | |
| "../rtc_base:stringutils", | |
| "../rtc_base/containers:flat_map", | |
| "../rtc_base/network:sent_packet", | |
| "../system_wrappers", | |
| "../video/config:encoder_config", | |
| "//third_party/abseil-cpp/absl/functional:any_invocable", | |
| "//third_party/abseil-cpp/absl/strings", | |
| "//third_party/abseil-cpp/absl/strings:string_view", | |
| ] | |
| } | |
| rtc_source_set("audio_sender_interface") { | |
| visibility = [ "*" ] | |
| sources = [ "audio_sender.h" ] | |
| deps = [ "../api/audio:audio_frame_api" ] | |
| } | |
| # TODO(nisse): These RTP targets should be moved elsewhere | |
| # when interfaces have stabilized. See also TODO for `mock_rtp_interfaces`. | |
| rtc_library("rtp_interfaces") { | |
| # Client code SHOULD NOT USE THIS TARGET, but for now it needs to be public | |
| # because there exists client code that uses it. | |
| # TODO(bugs.webrtc.org/9808): Move to private visibility as soon as that | |
| # client code gets updated. | |
| visibility = [ "*" ] | |
| sources = [ | |
| "rtp_config.cc", | |
| "rtp_config.h", | |
| "rtp_packet_sink_interface.h", | |
| "rtp_stream_receiver_controller_interface.h", | |
| "rtp_transport_config.h", | |
| "rtp_transport_controller_send_interface.h", | |
| ] | |
| deps = [ | |
| "../api:fec_controller_api", | |
| "../api:frame_transformer_interface", | |
| "../api:network_state_predictor_api", | |
| "../api:rtp_headers", | |
| "../api:rtp_packet_sender", | |
| "../api:rtp_parameters", | |
| "../api:scoped_refptr", | |
| "../api/crypto:options", | |
| "../api/environment", | |
| "../api/transport:bandwidth_estimation_settings", | |
| "../api/transport:bitrate_settings", | |
| "../api/transport:network_control", | |
| "../api/units:time_delta", | |
| "../api/units:timestamp", | |
| "../common_video:frame_counts", | |
| "../modules/congestion_controller/rtp:congestion_controller_feedback_stats", | |
| "../modules/rtp_rtcp:rtp_rtcp_format", | |
| "../rtc_base:checks", | |
| "../rtc_base:network_route", | |
| "../rtc_base:stringutils", | |
| "../rtc_base/containers:flat_map", | |
| "//third_party/abseil-cpp/absl/algorithm:container", | |
| "//third_party/abseil-cpp/absl/strings:string_view", | |
| ] | |
| } | |
| rtc_library("rtp_receiver") { | |
| visibility = [ "*" ] | |
| sources = [ | |
| "rtp_demuxer.cc", | |
| "rtp_demuxer.h", | |
| "rtp_stream_receiver_controller.cc", | |
| "rtp_stream_receiver_controller.h", | |
| "rtx_receive_stream.cc", | |
| "rtx_receive_stream.h", | |
| ] | |
| deps = [ | |
| ":rtp_interfaces", | |
| "../api:sequence_checker", | |
| "../api/environment", | |
| "../logging:rtc_event_rtp_rtcp", | |
| "../modules/rtp_rtcp", | |
| "../modules/rtp_rtcp:rtp_rtcp_format", | |
| "../rtc_base:checks", | |
| "../rtc_base:logging", | |
| "../rtc_base:macromagic", | |
| "../rtc_base:stringutils", | |
| "../rtc_base/containers:flat_map", | |
| "../rtc_base/containers:flat_set", | |
| "../rtc_base/system:no_unique_address", | |
| "//third_party/abseil-cpp/absl/strings:string_view", | |
| ] | |
| } | |
| rtc_library("rtp_sender") { | |
| sources = [ | |
| "rtp_payload_params.cc", | |
| "rtp_payload_params.h", | |
| "rtp_transport_controller_send.cc", | |
| "rtp_transport_controller_send.h", | |
| "rtp_video_sender.cc", | |
| "rtp_video_sender.h", | |
| "rtp_video_sender_interface.h", | |
| ] | |
| deps = [ | |
| ":bitrate_configurator", | |
| ":rtp_interfaces", | |
| "../api:bitrate_allocation", | |
| "../api:fec_controller_api", | |
| "../api:field_trials_view", | |
| "../api:frame_transformer_interface", | |
| "../api:rtp_headers", | |
| "../api:rtp_packet_sender", | |
| "../api:rtp_parameters", | |
| "../api:scoped_refptr", | |
| "../api:sequence_checker", | |
| "../api:transport_api", | |
| "../api/crypto:options", | |
| "../api/environment", | |
| "../api/rtc_event_log", | |
| "../api/task_queue", | |
| "../api/task_queue:pending_task_safety_flag", | |
| "../api/transport:bandwidth_estimation_settings", | |
| "../api/transport:bitrate_settings", | |
| "../api/transport:ecn_marking", | |
| "../api/transport:goog_cc", | |
| "../api/transport:network_control", | |
| "../api/transport/rtp:dependency_descriptor", | |
| "../api/units:data_rate", | |
| "../api/units:data_size", | |
| "../api/units:frequency", | |
| "../api/units:time_delta", | |
| "../api/units:timestamp", | |
| "../api/video:encoded_image", | |
| "../api/video:render_resolution", | |
| "../api/video:video_bitrate_allocation", | |
| "../api/video:video_codec_constants", | |
| "../api/video:video_frame", | |
| "../api/video:video_frame_type", | |
| "../api/video:video_layers_allocation", | |
| "../api/video:video_rtp_headers", | |
| "../api/video_codecs:video_codecs_api", | |
| "../common_video:frame_counts", | |
| "../common_video/generic_frame_descriptor", | |
| "../logging:rtc_event_bwe", | |
| "../modules:module_fec_api", | |
| "../modules/congestion_controller/rtp:congestion_controller_feedback_stats", | |
| "../modules/congestion_controller/rtp:control_handler", | |
| "../modules/congestion_controller/rtp:transport_feedback", | |
| "../modules/pacing", | |
| "../modules/rtp_rtcp", | |
| "../modules/rtp_rtcp:rtp_rtcp_format", | |
| "../modules/rtp_rtcp:rtp_video_header", | |
| "../modules/video_coding:chain_diff_calculator", | |
| "../modules/video_coding:codec_globals_headers", | |
| "../modules/video_coding:frame_dependencies_calculator", | |
| "../modules/video_coding:video_codec_interface", | |
| "../rtc_base:checks", | |
| "../rtc_base:event_tracer", | |
| "../rtc_base:logging", | |
| "../rtc_base:macromagic", | |
| "../rtc_base:network_route", | |
| "../rtc_base:random", | |
| "../rtc_base:rate_limiter", | |
| "../rtc_base:safe_conversions", | |
| "../rtc_base/containers:flat_map", | |
| "../rtc_base/experiments:field_trial_parser", | |
| "../rtc_base/network:sent_packet", | |
| "../rtc_base/synchronization:mutex", | |
| "../rtc_base/system:no_unique_address", | |
| "../rtc_base/task_utils:repeating_task", | |
| "//third_party/abseil-cpp/absl/algorithm:container", | |
| "//third_party/abseil-cpp/absl/base:nullability", | |
| "//third_party/abseil-cpp/absl/container:inlined_vector", | |
| "//third_party/abseil-cpp/absl/strings", | |
| "//third_party/abseil-cpp/absl/strings:string_view", | |
| ] | |
| } | |
| rtc_library("bitrate_configurator") { | |
| sources = [ | |
| "rtp_bitrate_configurator.cc", | |
| "rtp_bitrate_configurator.h", | |
| ] | |
| deps = [ | |
| "../api/transport:bitrate_settings", | |
| "../api/units:data_rate", | |
| "../rtc_base:checks", | |
| ] | |
| } | |
| rtc_library("bitrate_allocator") { | |
| sources = [ | |
| "bitrate_allocator.cc", | |
| "bitrate_allocator.h", | |
| ] | |
| deps = [ | |
| "../api:bitrate_allocation", | |
| "../api:field_trials_view", | |
| "../api:sequence_checker", | |
| "../api/transport:network_control", | |
| "../api/units:data_rate", | |
| "../api/units:time_delta", | |
| "../rtc_base:checks", | |
| "../rtc_base:logging", | |
| "../rtc_base:macromagic", | |
| "../rtc_base:safe_conversions", | |
| "../rtc_base:safe_minmax", | |
| "../rtc_base/experiments:field_trial_parser", | |
| "../rtc_base/system:no_unique_address", | |
| "../system_wrappers:metrics", | |
| "//third_party/abseil-cpp/absl/algorithm:container", | |
| ] | |
| } | |
| rtc_library("call") { | |
| sources = [ | |
| "call.cc", | |
| "flexfec_receive_stream_impl.cc", | |
| "flexfec_receive_stream_impl.h", | |
| "receive_time_calculator.cc", | |
| "receive_time_calculator.h", | |
| ] | |
| deps = [ | |
| ":bitrate_allocator", | |
| ":call_interfaces", | |
| ":receive_stream_interface", | |
| ":rtp_interfaces", | |
| ":rtp_receiver", | |
| ":rtp_sender", | |
| ":version", | |
| ":video_receive_stream_api", | |
| ":video_send_stream_api", | |
| "../api:fec_controller_api", | |
| "../api:field_trials_view", | |
| "../api:rtp_headers", | |
| "../api:rtp_parameters", | |
| "../api:scoped_refptr", | |
| "../api:sequence_checker", | |
| "../api/adaptation:resource_adaptation_api", | |
| "../api/environment", | |
| "../api/rtc_event_log", | |
| "../api/task_queue", | |
| "../api/task_queue:pending_task_safety_flag", | |
| "../api/transport:bitrate_settings", | |
| "../api/transport:network_control", | |
| "../api/units:data_rate", | |
| "../api/units:data_size", | |
| "../api/units:time_delta", | |
| "../api/units:timestamp", | |
| "../api/video:video_stream_encoder", | |
| "../audio", | |
| "../logging:rtc_event_audio", | |
| "../logging:rtc_event_rtp_rtcp", | |
| "../logging:rtc_event_video", | |
| "../logging:rtc_stream_config", | |
| "../modules/congestion_controller", | |
| "../modules/pacing", | |
| "../modules/rtp_rtcp", | |
| "../modules/rtp_rtcp:rtp_rtcp_format", | |
| "../modules/video_coding", | |
| "../modules/video_coding:nack_requester", | |
| "../rtc_base:checks", | |
| "../rtc_base:copy_on_write_buffer", | |
| "../rtc_base:cpu_info", | |
| "../rtc_base:event_tracer", | |
| "../rtc_base:logging", | |
| "../rtc_base:macromagic", | |
| "../rtc_base:safe_minmax", | |
| "../rtc_base:stringutils", | |
| "../rtc_base:threading", | |
| "../rtc_base:timeutils", | |
| "../rtc_base/experiments:field_trial_parser", | |
| "../rtc_base/network:sent_packet", | |
| "../rtc_base/system:no_unique_address", | |
| "../rtc_base/task_utils:repeating_task", | |
| "../system_wrappers", | |
| "../system_wrappers:metrics", | |
| "../video", | |
| "../video:decode_synchronizer", | |
| "../video/config:encoder_config", | |
| "adaptation:resource_adaptation", | |
| "//third_party/abseil-cpp/absl/functional:bind_front", | |
| "//third_party/abseil-cpp/absl/strings:string_view", | |
| ] | |
| } | |
| rtc_library("payload_type_picker") { | |
| sources = [ | |
| "payload_type_picker.cc", | |
| "payload_type_picker.h", | |
| ] | |
| deps = [ | |
| ":payload_type", | |
| "../api:payload_type", | |
| "../api:rtc_error", | |
| "../api:rtp_parameters", | |
| "../api/audio_codecs:audio_codecs_api", | |
| "../media:codec", | |
| "../media:media_constants", | |
| "../rtc_base:checks", | |
| "../rtc_base:logging", | |
| "../rtc_base:stringutils", | |
| "../rtc_base/containers:flat_map", | |
| "../rtc_base/containers:flat_set", | |
| "//third_party/abseil-cpp/absl/strings", | |
| ] | |
| } | |
| rtc_source_set("payload_type") { | |
| sources = [ "payload_type.h" ] | |
| deps = [ | |
| "../api:payload_type", | |
| "../api:rtc_error", | |
| "../api:rtp_parameters", | |
| "../media:codec", | |
| "//third_party/abseil-cpp/absl/strings:string_view", | |
| ] | |
| } | |
| rtc_source_set("receive_stream_interface") { | |
| sources = [ "receive_stream.h" ] | |
| deps = [ | |
| "../api:frame_transformer_interface", | |
| "../api:rtp_headers", | |
| "../api:scoped_refptr", | |
| "../api/crypto:frame_decryptor_interface", | |
| "../api/transport/rtp:rtp_source", | |
| ] | |
| } | |
| rtc_library("video_send_stream_api") { | |
| sources = [ | |
| "video_send_stream.cc", | |
| "video_send_stream.h", | |
| ] | |
| deps = [ | |
| ":rtp_interfaces", | |
| "../api:frame_transformer_interface", | |
| "../api:rtp_parameters", | |
| "../api:rtp_sender_interface", | |
| "../api:scoped_refptr", | |
| "../api:transport_api", | |
| "../api/adaptation:resource_adaptation_api", | |
| "../api/crypto:options", | |
| "../api/units:data_rate", | |
| "../api/video:encoded_image", | |
| "../api/video:video_frame", | |
| "../api/video:video_rtp_headers", | |
| "../api/video:video_stream_encoder", | |
| "../api/video_codecs:scalability_mode", | |
| "../api/video_codecs:video_codecs_api", | |
| "../common_video", | |
| "../common_video:frame_counts", | |
| "../modules/rtp_rtcp:rtp_rtcp_format", | |
| "../rtc_base:checks", | |
| "../rtc_base:stringutils", | |
| "../video/config:encoder_config", | |
| ] | |
| } | |
| rtc_library("video_receive_stream_api") { | |
| sources = [ | |
| "video_receive_stream.cc", | |
| "video_receive_stream.h", | |
| ] | |
| deps = [ | |
| ":receive_stream_interface", | |
| ":rtp_interfaces", | |
| "../api:frame_transformer_interface", | |
| "../api:rtp_headers", | |
| "../api:scoped_refptr", | |
| "../api:transport_api", | |
| "../api/crypto:frame_decryptor_interface", | |
| "../api/crypto:options", | |
| "../api/units:time_delta", | |
| "../api/units:timestamp", | |
| "../api/video:recordable_encoded_frame", | |
| "../api/video:video_frame", | |
| "../api/video:video_rtp_headers", | |
| "../api/video_codecs:video_codecs_api", | |
| "../common_video:frame_counts", | |
| "../modules/rtp_rtcp:rtp_rtcp_format", | |
| "../rtc_base:stringutils", | |
| ] | |
| } | |
| rtc_library("simulated_network") { | |
| # TODO(bugs.webrtc.org/14525): Remove target and directly depend on test/network:simulated_network. | |
| sources = [ "simulated_network.h" ] | |
| deps = [ "../test/network:simulated_network" ] | |
| } | |
| rtc_source_set("simulated_packet_receiver") { | |
| sources = [ "simulated_packet_receiver.h" ] | |
| deps = [ ":call_interfaces" ] | |
| } | |
| rtc_library("fake_network") { | |
| sources = [ | |
| "fake_network_pipe.cc", | |
| "fake_network_pipe.h", | |
| ] | |
| deps = [ | |
| ":simulated_packet_receiver", | |
| "../api:rtp_parameters", | |
| "../api:simulated_network_api", | |
| "../api:transport_api", | |
| "../api/units:timestamp", | |
| "../modules/rtp_rtcp:rtp_rtcp_format", | |
| "../rtc_base:checks", | |
| "../rtc_base:copy_on_write_buffer", | |
| "../rtc_base:logging", | |
| "../rtc_base:macromagic", | |
| "../rtc_base/synchronization:mutex", | |
| "../system_wrappers", | |
| ] | |
| } | |
| if (rtc_include_tests) { | |
| if (!build_with_chromium) { | |
| rtc_cc_test("bitrate_allocator_unittest") { | |
| sources = [ "bitrate_allocator_unittest.cc" ] | |
| deps = [ | |
| ":bitrate_allocator", | |
| ":call", | |
| ":call_interfaces", | |
| "../api:bitrate_allocation", | |
| "../api:field_trials", | |
| "../api/transport:network_control", | |
| "../api/units:data_rate", | |
| "../api/units:time_delta", | |
| "../api/units:timestamp", | |
| "../rtc_base:safe_conversions", | |
| "../test:create_test_field_trials", | |
| "../test:test_support", | |
| "//third_party/abseil-cpp/absl/strings:string_view", | |
| ] | |
| } | |
| rtc_cc_test("bitrate_estimator_tests") { | |
| sources = [ "bitrate_estimator_tests.cc" ] | |
| deps = [ | |
| ":call", | |
| ":call_interfaces", | |
| ":rtp_interfaces", | |
| ":rtp_receiver", | |
| ":rtp_sender", | |
| ":video_receive_stream_api", | |
| ":video_send_stream_api", | |
| "../api:bitrate_allocation", | |
| "../api:create_frame_generator", | |
| "../api:field_trials", | |
| "../api:frame_transformer_interface", | |
| "../api:make_ref_counted", | |
| "../api:mock_audio_mixer", | |
| "../api:mock_frame_transformer", | |
| "../api:mock_video_codec_factory", | |
| "../api:payload_type", | |
| "../api:rtp_headers", | |
| "../api:rtp_parameters", | |
| "../api:scoped_refptr", | |
| "../api:simulated_network_api", | |
| "../api:transport_api", | |
| "../api/adaptation:resource_adaptation_api", | |
| "../api/audio_codecs:audio_codecs_api", | |
| "../api/crypto:options", | |
| "../api/environment", | |
| "../api/environment:environment_factory", | |
| "../api/rtc_event_log", | |
| "../api/test/network_emulation", | |
| "../api/test/video:function_video_factory", | |
| "../api/transport:bitrate_settings", | |
| "../api/transport:ecn_marking", | |
| "../api/transport:network_control", | |
| "../api/transport/rtp:dependency_descriptor", | |
| "../api/units:data_rate", | |
| "../api/units:data_size", | |
| "../api/units:time_delta", | |
| "../api/units:timestamp", | |
| "../api/video:builtin_video_bitrate_allocator_factory", | |
| "../api/video:encoded_image", | |
| "../api/video:video_codec_constants", | |
| "../api/video:video_frame", | |
| "../api/video:video_frame_type", | |
| "../api/video:video_layers_allocation", | |
| "../api/video:video_rtp_headers", | |
| "../api/video_codecs:video_codecs_api", | |
| "../audio", | |
| "../common_video:frame_counts", | |
| "../common_video/generic_frame_descriptor", | |
| "../logging:mocks", | |
| "../logging:rtc_event_rtp_rtcp", | |
| "../media:codec", | |
| "../media:media_constants", | |
| "../modules/audio_device:mock_audio_device", | |
| "../modules/audio_processing:mocks", | |
| "../modules/congestion_controller/rtp:congestion_controller_feedback_stats", | |
| "../modules/rtp_rtcp", | |
| "../modules/rtp_rtcp:mock_rtp_rtcp", | |
| "../modules/rtp_rtcp:rtp_rtcp_format", | |
| "../modules/rtp_rtcp:rtp_video_header", | |
| "../modules/video_coding", | |
| "../modules/video_coding:codec_globals_headers", | |
| "../modules/video_coding:video_codec_interface", | |
| "../rtc_base:buffer", | |
| "../rtc_base:checks", | |
| "../rtc_base:logging", | |
| "../rtc_base:macromagic", | |
| "../rtc_base:random", | |
| "../rtc_base:rate_limiter", | |
| "../rtc_base:rtc_event", | |
| "../rtc_base:safe_conversions", | |
| "../rtc_base:task_queue_for_test", | |
| "../rtc_base:threading", | |
| "../rtc_base:timeutils", | |
| "../rtc_base/containers:flat_map", | |
| "../rtc_base/synchronization:mutex", | |
| "../test:audio_codec_mocks", | |
| "../test:create_test_environment", | |
| "../test:create_test_field_trials", | |
| "../test:encoder_settings", | |
| "../test:fake_video_codecs", | |
| "../test:frame_generator_capturer", | |
| "../test:mock_transport", | |
| "../test:run_loop", | |
| "../test:test_common", | |
| "../test:test_support", | |
| "../test:video_test_common", | |
| "../test:video_test_constants", | |
| "../test/scenario", | |
| "../test/time_controller", | |
| "../video", | |
| "../video/config:encoder_config", | |
| "adaptation:resource_adaptation_test_utilities", | |
| "//third_party/abseil-cpp/absl/container:inlined_vector", | |
| "//third_party/abseil-cpp/absl/strings", | |
| "//third_party/abseil-cpp/absl/strings:string_view", | |
| ] | |
| } | |
| rtc_cc_test("call_unittest") { | |
| sources = [ "call_unittest.cc" ] | |
| deps = [ | |
| ":call", | |
| ":call_interfaces", | |
| ":video_receive_stream_api", | |
| ":video_send_stream_api", | |
| "../api:make_ref_counted", | |
| "../api:mock_audio_mixer", | |
| "../api:mock_video_codec_factory", | |
| "../api:rtp_parameters", | |
| "../api:scoped_refptr", | |
| "../api/adaptation:resource_adaptation_api", | |
| "../api/audio_codecs:audio_codecs_api", | |
| "../api/environment", | |
| "../api/rtc_event_log", | |
| "../api/test/video:function_video_factory", | |
| "../api/units:time_delta", | |
| "../api/units:timestamp", | |
| "../api/video:builtin_video_bitrate_allocator_factory", | |
| "../api/video_codecs:video_codecs_api", | |
| "../audio", | |
| "../logging:mocks", | |
| "../logging:rtc_event_rtp_rtcp", | |
| "../modules/audio_device:mock_audio_device", | |
| "../modules/audio_processing:mocks", | |
| "../modules/rtp_rtcp:rtp_rtcp_format", | |
| "../test:audio_codec_mocks", | |
| "../test:create_test_environment", | |
| "../test:fake_video_codecs", | |
| "../test:mock_transport", | |
| "../test:run_loop", | |
| "../test:test_support", | |
| "../test:video_test_common", | |
| "../test/time_controller", | |
| "../video/config:encoder_config", | |
| "adaptation:resource_adaptation_test_utilities", | |
| "//third_party/abseil-cpp/absl/strings:string_view", | |
| ] | |
| } | |
| rtc_cc_test("flexfec_receive_stream_unittest") { | |
| sources = [ "flexfec_receive_stream_unittest.cc" ] | |
| deps = [ | |
| ":call", | |
| ":call_interfaces", | |
| ":rtp_receiver", | |
| "../api:rtp_headers", | |
| "../api:transport_api", | |
| "../api/environment:environment_factory", | |
| "../logging:mocks", | |
| "../modules/rtp_rtcp:mock_rtp_rtcp", | |
| "../modules/rtp_rtcp:rtp_rtcp_format", | |
| "../test:mock_transport", | |
| "../test:run_loop", | |
| "../test:test_support", | |
| ] | |
| } | |
| rtc_cc_test("payload_type_picker_unittest") { | |
| sources = [ "payload_type_picker_unittest.cc" ] | |
| deps = [ | |
| ":call", | |
| ":call_interfaces", | |
| ":payload_type", | |
| ":payload_type_picker", | |
| "../api:payload_type", | |
| "../api/video_codecs:video_codecs_api", | |
| "../media:codec", | |
| "../media:media_constants", | |
| "../test:test_support", | |
| "//third_party/abseil-cpp/absl/strings", | |
| ] | |
| } | |
| rtc_cc_test("receive_time_calculator_unittest") { | |
| sources = [ "receive_time_calculator_unittest.cc" ] | |
| deps = [ | |
| ":call", | |
| ":call_interfaces", | |
| "../api:field_trials", | |
| "../rtc_base:random", | |
| "../rtc_base:timeutils", | |
| "../test:create_test_field_trials", | |
| "../test:test_support", | |
| ] | |
| } | |
| rtc_cc_test("rtp_bitrate_configurator_unittest") { | |
| sources = [ "rtp_bitrate_configurator_unittest.cc" ] | |
| deps = [ | |
| ":bitrate_configurator", | |
| ":call", | |
| ":call_interfaces", | |
| "../api/transport:bitrate_settings", | |
| "../test:test_support", | |
| ] | |
| } | |
| rtc_cc_test("rtp_demuxer_unittest") { | |
| sources = [ "rtp_demuxer_unittest.cc" ] | |
| deps = [ | |
| ":call", | |
| ":call_interfaces", | |
| ":mock_rtp_interfaces", | |
| ":rtp_receiver", | |
| "../modules/rtp_rtcp:rtp_rtcp_format", | |
| "../rtc_base:checks", | |
| "../rtc_base:safe_conversions", | |
| "../test:test_support", | |
| "//third_party/abseil-cpp/absl/strings:string_view", | |
| ] | |
| } | |
| rtc_cc_test("rtp_payload_params_unittest") { | |
| sources = [ "rtp_payload_params_unittest.cc" ] | |
| deps = [ | |
| ":call", | |
| ":call_interfaces", | |
| ":rtp_interfaces", | |
| ":rtp_sender", | |
| "../api/transport/rtp:dependency_descriptor", | |
| "../api/video:encoded_image", | |
| "../api/video:video_codec_constants", | |
| "../api/video:video_frame", | |
| "../api/video:video_frame_type", | |
| "../api/video:video_rtp_headers", | |
| "../common_video/generic_frame_descriptor", | |
| "../modules/rtp_rtcp:rtp_rtcp_format", | |
| "../modules/rtp_rtcp:rtp_video_header", | |
| "../modules/video_coding:codec_globals_headers", | |
| "../modules/video_coding:video_codec_interface", | |
| "../test:create_test_environment", | |
| "../test:test_support", | |
| "//third_party/abseil-cpp/absl/container:inlined_vector", | |
| ] | |
| } | |
| rtc_cc_test("rtp_transport_controller_send_unittest") { | |
| sources = [ "rtp_transport_controller_send_unittest.cc" ] | |
| deps = [ | |
| ":call", | |
| ":call_interfaces", | |
| ":rtp_sender", | |
| "../api:rtp_parameters", | |
| "../api/transport:ecn_marking", | |
| "../api/units:time_delta", | |
| "../api/units:timestamp", | |
| "../modules/congestion_controller/rtp:congestion_controller_feedback_stats", | |
| "../modules/rtp_rtcp:rtp_rtcp_format", | |
| "../rtc_base/containers:flat_map", | |
| "../test:create_test_environment", | |
| "../test:run_loop", | |
| "../test:test_support", | |
| ] | |
| } | |
| rtc_cc_test("rtp_video_sender_unittest") { | |
| sources = [ "rtp_video_sender_unittest.cc" ] | |
| deps = [ | |
| ":call", | |
| ":call_interfaces", | |
| ":rtp_interfaces", | |
| ":rtp_sender", | |
| ":video_send_stream_api", | |
| "../api:bitrate_allocation", | |
| "../api:field_trials", | |
| "../api:frame_transformer_interface", | |
| "../api:make_ref_counted", | |
| "../api:mock_frame_transformer", | |
| "../api:rtp_parameters", | |
| "../api:scoped_refptr", | |
| "../api:transport_api", | |
| "../api/crypto:options", | |
| "../api/environment", | |
| "../api/environment:environment_factory", | |
| "../api/test/network_emulation", | |
| "../api/transport:bitrate_settings", | |
| "../api/transport/rtp:dependency_descriptor", | |
| "../api/units:data_rate", | |
| "../api/units:data_size", | |
| "../api/units:time_delta", | |
| "../api/units:timestamp", | |
| "../api/video:encoded_image", | |
| "../api/video:video_frame", | |
| "../api/video:video_frame_type", | |
| "../api/video:video_layers_allocation", | |
| "../api/video_codecs:video_codecs_api", | |
| "../common_video:frame_counts", | |
| "../common_video/generic_frame_descriptor", | |
| "../modules/rtp_rtcp", | |
| "../modules/rtp_rtcp:rtp_rtcp_format", | |
| "../modules/video_coding", | |
| "../modules/video_coding:codec_globals_headers", | |
| "../modules/video_coding:video_codec_interface", | |
| "../rtc_base:buffer", | |
| "../rtc_base:checks", | |
| "../rtc_base:rate_limiter", | |
| "../test:create_test_field_trials", | |
| "../test:mock_transport", | |
| "../test:test_support", | |
| "../test/scenario", | |
| "../test/time_controller", | |
| "../video", | |
| "../video/config:encoder_config", | |
| "//third_party/abseil-cpp/absl/strings:string_view", | |
| ] | |
| } | |
| rtc_cc_test("rtx_receive_stream_unittest") { | |
| sources = [ "rtx_receive_stream_unittest.cc" ] | |
| deps = [ | |
| ":call", | |
| ":call_interfaces", | |
| ":mock_rtp_interfaces", | |
| ":rtp_receiver", | |
| "../api/environment", | |
| "../api/rtc_event_log", | |
| "../api/units:timestamp", | |
| "../api/video:video_rtp_headers", | |
| "../logging:mocks", | |
| "../logging:rtc_event_rtp_rtcp", | |
| "../modules/rtp_rtcp:rtp_rtcp_format", | |
| "../test:create_test_environment", | |
| "../test:test_support", | |
| ] | |
| } | |
| rtc_test_suite("call_tests") { | |
| tests = [ | |
| ":bitrate_allocator_unittest", | |
| ":bitrate_estimator_tests", | |
| ":call_unittest", | |
| ":flexfec_receive_stream_unittest", | |
| ":payload_type_picker_unittest", | |
| ":receive_time_calculator_unittest", | |
| ":rtp_bitrate_configurator_unittest", | |
| ":rtp_demuxer_unittest", | |
| ":rtp_payload_params_unittest", | |
| ":rtp_transport_controller_send_unittest", | |
| ":rtp_video_sender_unittest", | |
| ":rtx_receive_stream_unittest", | |
| ] | |
| } | |
| rtc_library("call_perf_tests") { | |
| testonly = true | |
| sources = [ | |
| "call_perf_tests.cc", | |
| "rampup_tests.cc", | |
| "rampup_tests.h", | |
| ] | |
| deps = [ | |
| ":call_interfaces", | |
| ":fake_network", | |
| ":video_receive_stream_api", | |
| ":video_send_stream_api", | |
| "../api:field_trials_view", | |
| "../api:make_ref_counted", | |
| "../api:rtc_event_log_output_file", | |
| "../api:rtp_parameters", | |
| "../api:scoped_refptr", | |
| "../api:sequence_checker", | |
| "../api:simulated_network_api", | |
| "../api/audio:audio_device", | |
| "../api/audio:builtin_audio_processing_builder", | |
| "../api/audio_codecs:builtin_audio_encoder_factory", | |
| "../api/environment", | |
| "../api/numerics", | |
| "../api/rtc_event_log", | |
| "../api/rtc_event_log:rtc_event_log_factory", | |
| "../api/task_queue", | |
| "../api/task_queue:pending_task_safety_flag", | |
| "../api/test/metrics:global_metrics_logger_and_exporter", | |
| "../api/test/metrics:metric", | |
| "../api/test/video:function_video_factory", | |
| "../api/transport:bitrate_settings", | |
| "../api/units:data_rate", | |
| "../api/units:time_delta", | |
| "../api/units:timestamp", | |
| "../api/video:builtin_video_bitrate_allocator_factory", | |
| "../api/video:video_bitrate_allocation", | |
| "../api/video:video_bitrate_allocator_factory", | |
| "../api/video:video_frame", | |
| "../api/video_codecs:video_codecs_api", | |
| "../media:rtc_internal_video_codecs", | |
| "../media:rtc_simulcast_encoder_adapter", | |
| "../modules/audio_device:test_audio_device_module", | |
| "../modules/audio_mixer:audio_mixer_impl", | |
| "../rtc_base:checks", | |
| "../rtc_base:logging", | |
| "../rtc_base:rtc_event", | |
| "../rtc_base:task_queue_for_test", | |
| "../rtc_base:threading", | |
| "../rtc_base/task_utils:repeating_task", | |
| "../system_wrappers:metrics", | |
| "../test:encoder_settings", | |
| "../test:fake_video_codecs", | |
| "../test:frame_generator_capturer", | |
| "../test:run_loop", | |
| "../test:test_common", | |
| "../test:test_flags", | |
| "../test:test_support", | |
| "../test:video_test_common", | |
| "../test:video_test_constants", | |
| "../test/network:simulated_network", | |
| "../video/config:encoder_config", | |
| "//third_party/abseil-cpp/absl/flags:flag", | |
| "//third_party/abseil-cpp/absl/strings", | |
| "//third_party/abseil-cpp/absl/strings:string_view", | |
| ] | |
| } | |
| } | |
| # TODO(eladalon): This should be moved, as with the TODO for `rtp_interfaces`. | |
| rtc_source_set("mock_rtp_interfaces") { | |
| testonly = true | |
| sources = [ | |
| "test/mock_rtp_packet_sink_interface.h", | |
| "test/mock_rtp_transport_controller_send.h", | |
| ] | |
| deps = [ | |
| ":rtp_interfaces", | |
| "../api:fec_controller_api", | |
| "../api:frame_transformer_interface", | |
| "../api:rtp_parameters", | |
| "../api:scoped_refptr", | |
| "../api/transport:bandwidth_estimation_settings", | |
| "../api/transport:bitrate_settings", | |
| "../api/transport:network_control", | |
| "../api/units:timestamp", | |
| "../modules/congestion_controller/rtp:congestion_controller_feedback_stats", | |
| "../modules/pacing", | |
| "../modules/rtp_rtcp", | |
| "../modules/rtp_rtcp:rtp_rtcp_format", | |
| "../rtc_base:network_route", | |
| "../rtc_base/containers:flat_map", | |
| "../rtc_base/network:sent_packet", | |
| "../test:run_loop", | |
| "../test:test_support", | |
| "//third_party/abseil-cpp/absl/strings:string_view", | |
| ] | |
| } | |
| rtc_source_set("mock_bitrate_allocator") { | |
| testonly = true | |
| sources = [ "test/mock_bitrate_allocator.h" ] | |
| deps = [ | |
| ":bitrate_allocator", | |
| "../test:run_loop", | |
| "../test:test_support", | |
| ] | |
| } | |
| rtc_source_set("mock_call_interfaces") { | |
| testonly = true | |
| sources = [ | |
| "test/mock_audio_receive_stream.h", | |
| "test/mock_audio_send_stream.h", | |
| ] | |
| deps = [ | |
| ":call_interfaces", | |
| "../api:frame_transformer_interface", | |
| "../api:rtp_headers", | |
| "../api:rtp_sender_interface", | |
| "../api:scoped_refptr", | |
| "../api/audio:audio_frame_api", | |
| "../api/audio:audio_mixer_api", | |
| "../api/audio_codecs:audio_codecs_api", | |
| "../api/crypto:frame_decryptor_interface", | |
| "../api/transport/rtp:rtp_source", | |
| "../test:run_loop", | |
| "../test:test_support", | |
| ] | |
| } | |
| rtc_source_set("fake_payload_type_suggester") { | |
| testonly = true | |
| sources = [ "fake_payload_type_suggester.h" ] | |
| deps = [ | |
| ":payload_type", | |
| ":payload_type_picker", | |
| "../api:payload_type", | |
| "../api:rtc_error", | |
| "../api:rtp_parameters", | |
| "../media:codec", | |
| "//third_party/abseil-cpp/absl/strings:string_view", | |
| ] | |
| } | |
| rtc_library("fake_network_pipe_unittests") { | |
| testonly = true | |
| sources = [ "fake_network_pipe_unittest.cc" ] | |
| deps = [ | |
| ":fake_network", | |
| "../api:simulated_network_api", | |
| "../api/units:data_rate", | |
| "../api/units:time_delta", | |
| "../api/units:timestamp", | |
| "../modules/rtp_rtcp:rtp_rtcp_format", | |
| "../rtc_base:checks", | |
| "../rtc_base:copy_on_write_buffer", | |
| "../system_wrappers", | |
| "../test:run_loop", | |
| "../test:test_support", | |
| "../test/network:simulated_network", | |
| ] | |
| } | |
| } |