tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

BUILD.gn (23325B)


      1 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
      2 #
      3 # Use of this source code is governed by a BSD-style license
      4 # that can be found in the LICENSE file in the root of the source
      5 # tree. An additional intellectual property rights grant can be found
      6 # in the file PATENTS.  All contributing project authors may
      7 # be found in the AUTHORS file in the root of the source tree.
      8 
      9 import("../webrtc.gni")
     10 
     11 rtc_library("version") {
     12   sources = [
     13     "version.cc",
     14     "version.h",
     15   ]
     16   visibility = [ ":*" ]
     17 }
     18 
     19 rtc_library("call_interfaces") {
     20   sources = [
     21     "audio_receive_stream.cc",
     22     "audio_receive_stream.h",
     23     "audio_send_stream.cc",
     24     "audio_send_stream.h",
     25     "audio_state.cc",
     26     "audio_state.h",
     27     "call.h",
     28     "call_config.cc",
     29     "call_config.h",
     30     "flexfec_receive_stream.cc",
     31     "flexfec_receive_stream.h",
     32     "packet_receiver.h",
     33     "syncable.cc",
     34     "syncable.h",
     35   ]
     36 
     37   deps = [
     38     ":audio_sender_interface",
     39     ":payload_type",
     40     ":receive_stream_interface",
     41     ":rtp_interfaces",
     42     ":video_receive_stream_api",
     43     ":video_send_stream_api",
     44     "../api:fec_controller_api",
     45     "../api:field_trials_view",
     46     "../api:frame_transformer_interface",
     47     "../api:network_state_predictor_api",
     48     "../api:ref_count",
     49     "../api:rtp_headers",
     50     "../api:rtp_parameters",
     51     "../api:rtp_sender_setparameters_callback",
     52     "../api:scoped_refptr",
     53     "../api:transport_api",
     54     "../api/adaptation:resource_adaptation_api",
     55     "../api/audio:audio_device",
     56     "../api/audio:audio_mixer_api",
     57     "../api/audio:audio_processing",
     58     "../api/audio:audio_processing_statistics",
     59     "../api/audio_codecs:audio_codecs_api",
     60     "../api/crypto:frame_decryptor_interface",
     61     "../api/crypto:frame_encryptor_interface",
     62     "../api/crypto:options",
     63     "../api/environment",
     64     "../api/metronome",
     65     "../api/neteq:neteq_api",
     66     "../api/task_queue",
     67     "../api/transport:bitrate_settings",
     68     "../api/transport:network_control",
     69     "../api/units:time_delta",
     70     "../api/units:timestamp",
     71     "../modules/async_audio_processing",
     72     "../modules/rtp_rtcp",
     73     "../modules/rtp_rtcp:rtp_rtcp_format",
     74     "../rtc_base:checks",
     75     "../rtc_base:copy_on_write_buffer",
     76     "../rtc_base:stringutils",
     77     "../rtc_base/network:sent_packet",
     78     "../system_wrappers",
     79     "../video/config:encoder_config",
     80     "//third_party/abseil-cpp/absl/functional:any_invocable",
     81     "//third_party/abseil-cpp/absl/strings",
     82     "//third_party/abseil-cpp/absl/strings:string_view",
     83   ]
     84 }
     85 
     86 rtc_source_set("audio_sender_interface") {
     87   visibility = [ "*" ]
     88   sources = [ "audio_sender.h" ]
     89   deps = [ "../api/audio:audio_frame_api" ]
     90 }
     91 
     92 # TODO(nisse): These RTP targets should be moved elsewhere
     93 # when interfaces have stabilized. See also TODO for `mock_rtp_interfaces`.
     94 rtc_library("rtp_interfaces") {
     95   # Client code SHOULD NOT USE THIS TARGET, but for now it needs to be public
     96   # because there exists client code that uses it.
     97   # TODO(bugs.webrtc.org/9808): Move to private visibility as soon as that
     98   # client code gets updated.
     99   visibility = [ "*" ]
    100   sources = [
    101     "rtp_config.cc",
    102     "rtp_config.h",
    103     "rtp_packet_sink_interface.h",
    104     "rtp_stream_receiver_controller_interface.h",
    105     "rtp_transport_config.h",
    106     "rtp_transport_controller_send_interface.h",
    107   ]
    108   deps = [
    109     "../api:array_view",
    110     "../api:fec_controller_api",
    111     "../api:frame_transformer_interface",
    112     "../api:network_state_predictor_api",
    113     "../api:rtp_headers",
    114     "../api:rtp_packet_sender",
    115     "../api:rtp_parameters",
    116     "../api:scoped_refptr",
    117     "../api/crypto:options",
    118     "../api/environment",
    119     "../api/transport:bandwidth_estimation_settings",
    120     "../api/transport:bitrate_settings",
    121     "../api/transport:network_control",
    122     "../api/units:time_delta",
    123     "../api/units:timestamp",
    124     "../common_video:frame_counts",
    125     "../modules/rtp_rtcp:rtp_rtcp_format",
    126     "../rtc_base:checks",
    127     "../rtc_base:network_route",
    128     "../rtc_base:stringutils",
    129     "//third_party/abseil-cpp/absl/algorithm:container",
    130     "//third_party/abseil-cpp/absl/strings:string_view",
    131   ]
    132 }
    133 
    134 rtc_library("rtp_receiver") {
    135   visibility = [ "*" ]
    136   sources = [
    137     "rtp_demuxer.cc",
    138     "rtp_demuxer.h",
    139     "rtp_stream_receiver_controller.cc",
    140     "rtp_stream_receiver_controller.h",
    141     "rtx_receive_stream.cc",
    142     "rtx_receive_stream.h",
    143   ]
    144   deps = [
    145     ":rtp_interfaces",
    146     "../api:array_view",
    147     "../api:sequence_checker",
    148     "../modules/rtp_rtcp",
    149     "../modules/rtp_rtcp:rtp_rtcp_format",
    150     "../rtc_base:checks",
    151     "../rtc_base:logging",
    152     "../rtc_base:macromagic",
    153     "../rtc_base:stringutils",
    154     "../rtc_base/containers:flat_map",
    155     "../rtc_base/containers:flat_set",
    156     "../rtc_base/system:no_unique_address",
    157     "//third_party/abseil-cpp/absl/strings:string_view",
    158   ]
    159 }
    160 
    161 rtc_library("rtp_sender") {
    162   sources = [
    163     "rtp_payload_params.cc",
    164     "rtp_payload_params.h",
    165     "rtp_transport_controller_send.cc",
    166     "rtp_transport_controller_send.h",
    167     "rtp_video_sender.cc",
    168     "rtp_video_sender.h",
    169     "rtp_video_sender_interface.h",
    170   ]
    171   deps = [
    172     ":bitrate_configurator",
    173     ":rtp_interfaces",
    174     "../api:array_view",
    175     "../api:bitrate_allocation",
    176     "../api:fec_controller_api",
    177     "../api:field_trials_view",
    178     "../api:frame_transformer_interface",
    179     "../api:rtp_headers",
    180     "../api:rtp_packet_sender",
    181     "../api:rtp_parameters",
    182     "../api:scoped_refptr",
    183     "../api:sequence_checker",
    184     "../api:transport_api",
    185     "../api/crypto:options",
    186     "../api/environment",
    187     "../api/rtc_event_log",
    188     "../api/task_queue",
    189     "../api/task_queue:pending_task_safety_flag",
    190     "../api/transport:bandwidth_estimation_settings",
    191     "../api/transport:bitrate_settings",
    192     "../api/transport:goog_cc",
    193     "../api/transport:network_control",
    194     "../api/transport/rtp:dependency_descriptor",
    195     "../api/units:data_rate",
    196     "../api/units:data_size",
    197     "../api/units:frequency",
    198     "../api/units:time_delta",
    199     "../api/units:timestamp",
    200     "../api/video:encoded_image",
    201     "../api/video:render_resolution",
    202     "../api/video:video_bitrate_allocation",
    203     "../api/video:video_codec_constants",
    204     "../api/video:video_frame",
    205     "../api/video:video_frame_type",
    206     "../api/video:video_layers_allocation",
    207     "../api/video:video_rtp_headers",
    208     "../api/video_codecs:video_codecs_api",
    209     "../common_video:frame_counts",
    210     "../common_video/generic_frame_descriptor",
    211     "../logging:rtc_event_bwe",
    212     "../modules:module_fec_api",
    213     "../modules/congestion_controller/rtp:control_handler",
    214     "../modules/congestion_controller/rtp:transport_feedback",
    215     "../modules/pacing",
    216     "../modules/rtp_rtcp",
    217     "../modules/rtp_rtcp:rtp_rtcp_format",
    218     "../modules/rtp_rtcp:rtp_video_header",
    219     "../modules/video_coding:chain_diff_calculator",
    220     "../modules/video_coding:codec_globals_headers",
    221     "../modules/video_coding:frame_dependencies_calculator",
    222     "../modules/video_coding:video_codec_interface",
    223     "../rtc_base:checks",
    224     "../rtc_base:event_tracer",
    225     "../rtc_base:logging",
    226     "../rtc_base:macromagic",
    227     "../rtc_base:network_route",
    228     "../rtc_base:random",
    229     "../rtc_base:rate_limiter",
    230     "../rtc_base:safe_conversions",
    231     "../rtc_base:timeutils",
    232     "../rtc_base/experiments:field_trial_parser",
    233     "../rtc_base/network:sent_packet",
    234     "../rtc_base/synchronization:mutex",
    235     "../rtc_base/system:no_unique_address",
    236     "../rtc_base/task_utils:repeating_task",
    237     "//third_party/abseil-cpp/absl/algorithm:container",
    238     "//third_party/abseil-cpp/absl/base:nullability",
    239     "//third_party/abseil-cpp/absl/container:inlined_vector",
    240     "//third_party/abseil-cpp/absl/strings",
    241     "//third_party/abseil-cpp/absl/strings:string_view",
    242   ]
    243 }
    244 
    245 rtc_library("bitrate_configurator") {
    246   sources = [
    247     "rtp_bitrate_configurator.cc",
    248     "rtp_bitrate_configurator.h",
    249   ]
    250   deps = [
    251     "../api/transport:bitrate_settings",
    252     "../api/units:data_rate",
    253     "../rtc_base:checks",
    254   ]
    255 }
    256 
    257 rtc_library("bitrate_allocator") {
    258   sources = [
    259     "bitrate_allocator.cc",
    260     "bitrate_allocator.h",
    261   ]
    262   deps = [
    263     "../api:bitrate_allocation",
    264     "../api:field_trials_view",
    265     "../api:sequence_checker",
    266     "../api/transport:network_control",
    267     "../api/units:data_rate",
    268     "../api/units:time_delta",
    269     "../rtc_base:checks",
    270     "../rtc_base:logging",
    271     "../rtc_base:macromagic",
    272     "../rtc_base:safe_conversions",
    273     "../rtc_base:safe_minmax",
    274     "../rtc_base/experiments:field_trial_parser",
    275     "../rtc_base/system:no_unique_address",
    276     "../system_wrappers:metrics",
    277     "//third_party/abseil-cpp/absl/algorithm:container",
    278   ]
    279 }
    280 
    281 rtc_library("call") {
    282   sources = [
    283     "call.cc",
    284     "flexfec_receive_stream_impl.cc",
    285     "flexfec_receive_stream_impl.h",
    286     "receive_time_calculator.cc",
    287     "receive_time_calculator.h",
    288   ]
    289 
    290   deps = [
    291     ":bitrate_allocator",
    292     ":call_interfaces",
    293     ":payload_type",
    294     ":payload_type_picker",
    295     ":receive_stream_interface",
    296     ":rtp_interfaces",
    297     ":rtp_receiver",
    298     ":rtp_sender",
    299     ":version",
    300     ":video_receive_stream_api",
    301     ":video_send_stream_api",
    302     "../api:array_view",
    303     "../api:fec_controller_api",
    304     "../api:field_trials_view",
    305     "../api:rtc_error",
    306     "../api:rtp_headers",
    307     "../api:rtp_parameters",
    308     "../api:scoped_refptr",
    309     "../api:sequence_checker",
    310     "../api/adaptation:resource_adaptation_api",
    311     "../api/environment",
    312     "../api/rtc_event_log",
    313     "../api/task_queue",
    314     "../api/task_queue:pending_task_safety_flag",
    315     "../api/transport:bitrate_settings",
    316     "../api/transport:network_control",
    317     "../api/units:data_rate",
    318     "../api/units:data_size",
    319     "../api/units:time_delta",
    320     "../api/units:timestamp",
    321     "../audio",
    322     "../logging:rtc_event_audio",
    323     "../logging:rtc_event_rtp_rtcp",
    324     "../logging:rtc_event_video",
    325     "../logging:rtc_stream_config",
    326     "../media:codec",
    327     "../modules/congestion_controller",
    328     "../modules/rtp_rtcp",
    329     "../modules/rtp_rtcp:rtp_rtcp_format",
    330     "../modules/video_coding",
    331     "../modules/video_coding:nack_requester",
    332     "../rtc_base:checks",
    333     "../rtc_base:copy_on_write_buffer",
    334     "../rtc_base:cpu_info",
    335     "../rtc_base:event_tracer",
    336     "../rtc_base:logging",
    337     "../rtc_base:macromagic",
    338     "../rtc_base:safe_minmax",
    339     "../rtc_base:stringutils",
    340     "../rtc_base:threading",
    341     "../rtc_base:timeutils",
    342     "../rtc_base/experiments:field_trial_parser",
    343     "../rtc_base/network:sent_packet",
    344     "../rtc_base/system:no_unique_address",
    345     "../rtc_base/task_utils:repeating_task",
    346     "../system_wrappers",
    347     "../system_wrappers:metrics",
    348     "../video",
    349     "../video:decode_synchronizer",
    350     "../video/config:encoder_config",
    351     "adaptation:resource_adaptation",
    352     "//third_party/abseil-cpp/absl/functional:bind_front",
    353     "//third_party/abseil-cpp/absl/strings:string_view",
    354   ]
    355 }
    356 
    357 rtc_library("payload_type_picker") {
    358   sources = [
    359     "payload_type_picker.cc",
    360     "payload_type_picker.h",
    361   ]
    362   deps = [
    363     ":payload_type",
    364     "../api:rtc_error",
    365     "../api/audio_codecs:audio_codecs_api",
    366     "../media:codec",
    367     "../media:media_constants",
    368     "../rtc_base:checks",
    369     "../rtc_base:logging",
    370     "../rtc_base:stringutils",
    371     "//third_party/abseil-cpp/absl/strings",
    372   ]
    373 }
    374 
    375 rtc_source_set("payload_type") {
    376   sources = [ "payload_type.h" ]
    377   deps = [
    378     "../api:rtc_error",
    379     "../media:codec",
    380     "../rtc_base:strong_alias",
    381   ]
    382 }
    383 
    384 rtc_source_set("receive_stream_interface") {
    385   sources = [ "receive_stream.h" ]
    386   deps = [
    387     "../api:frame_transformer_interface",
    388     "../api:rtp_headers",
    389     "../api:scoped_refptr",
    390     "../api/crypto:frame_decryptor_interface",
    391     "../api/transport/rtp:rtp_source",
    392   ]
    393 }
    394 
    395 rtc_library("video_send_stream_api") {
    396   sources = [
    397     "video_send_stream.cc",
    398     "video_send_stream.h",
    399   ]
    400   deps = [
    401     ":rtp_interfaces",
    402     "../api:array_view",
    403     "../api:frame_transformer_interface",
    404     "../api:rtp_parameters",
    405     "../api:rtp_sender_interface",
    406     "../api:scoped_refptr",
    407     "../api:transport_api",
    408     "../api/adaptation:resource_adaptation_api",
    409     "../api/crypto:options",
    410     "../api/units:data_rate",
    411     "../api/video:encoded_image",
    412     "../api/video:video_frame",
    413     "../api/video:video_rtp_headers",
    414     "../api/video:video_stream_encoder",
    415     "../api/video_codecs:scalability_mode",
    416     "../api/video_codecs:video_codecs_api",
    417     "../common_video",
    418     "../common_video:frame_counts",
    419     "../modules/rtp_rtcp:rtp_rtcp_format",
    420     "../rtc_base:checks",
    421     "../rtc_base:stringutils",
    422     "../video/config:encoder_config",
    423   ]
    424 }
    425 rtc_library("video_receive_stream_api") {
    426   sources = [
    427     "video_receive_stream.cc",
    428     "video_receive_stream.h",
    429   ]
    430   deps = [
    431     ":receive_stream_interface",
    432     ":rtp_interfaces",
    433     "../api:frame_transformer_interface",
    434     "../api:rtp_headers",
    435     "../api:scoped_refptr",
    436     "../api:transport_api",
    437     "../api/crypto:frame_decryptor_interface",
    438     "../api/crypto:options",
    439     "../api/units:time_delta",
    440     "../api/units:timestamp",
    441     "../api/video:recordable_encoded_frame",
    442     "../api/video:video_frame",
    443     "../api/video:video_rtp_headers",
    444     "../api/video_codecs:video_codecs_api",
    445     "../common_video:frame_counts",
    446     "../modules/rtp_rtcp:rtp_rtcp_format",
    447     "../rtc_base:stringutils",
    448   ]
    449 }
    450 
    451 rtc_library("simulated_network") {
    452   # TODO(bugs.webrtc.org/14525): Remove target and directly depend on test/network:simulated_network.
    453   sources = [ "simulated_network.h" ]
    454   deps = [ "../test/network:simulated_network" ]
    455 }
    456 
    457 rtc_source_set("simulated_packet_receiver") {
    458   sources = [ "simulated_packet_receiver.h" ]
    459   deps = [ ":call_interfaces" ]
    460 }
    461 
    462 rtc_library("fake_network") {
    463   sources = [
    464     "fake_network_pipe.cc",
    465     "fake_network_pipe.h",
    466   ]
    467   deps = [
    468     ":simulated_packet_receiver",
    469     "../api:array_view",
    470     "../api:rtp_parameters",
    471     "../api:simulated_network_api",
    472     "../api:transport_api",
    473     "../api/units:timestamp",
    474     "../modules/rtp_rtcp:rtp_rtcp_format",
    475     "../rtc_base:checks",
    476     "../rtc_base:copy_on_write_buffer",
    477     "../rtc_base:logging",
    478     "../rtc_base:macromagic",
    479     "../rtc_base/synchronization:mutex",
    480     "../system_wrappers",
    481   ]
    482 }
    483 
    484 if (rtc_include_tests) {
    485   if (!build_with_chromium) {
    486     rtc_library("call_tests") {
    487       testonly = true
    488 
    489       sources = [
    490         "bitrate_allocator_unittest.cc",
    491         "bitrate_estimator_tests.cc",
    492         "call_unittest.cc",
    493         "flexfec_receive_stream_unittest.cc",
    494         "payload_type_picker_unittest.cc",
    495         "receive_time_calculator_unittest.cc",
    496         "rtp_bitrate_configurator_unittest.cc",
    497         "rtp_demuxer_unittest.cc",
    498         "rtp_payload_params_unittest.cc",
    499         "rtp_video_sender_unittest.cc",
    500         "rtx_receive_stream_unittest.cc",
    501       ]
    502       deps = [
    503         ":bitrate_allocator",
    504         ":bitrate_configurator",
    505         ":call",
    506         ":call_interfaces",
    507         ":mock_rtp_interfaces",
    508         ":payload_type",
    509         ":payload_type_picker",
    510         ":rtp_interfaces",
    511         ":rtp_receiver",
    512         ":rtp_sender",
    513         ":video_receive_stream_api",
    514         ":video_send_stream_api",
    515         "../api:array_view",
    516         "../api:bitrate_allocation",
    517         "../api:create_frame_generator",
    518         "../api:field_trials",
    519         "../api:frame_transformer_interface",
    520         "../api:make_ref_counted",
    521         "../api:mock_audio_mixer",
    522         "../api:mock_frame_transformer",
    523         "../api:rtp_headers",
    524         "../api:rtp_parameters",
    525         "../api:scoped_refptr",
    526         "../api:simulated_network_api",
    527         "../api:transport_api",
    528         "../api/adaptation:resource_adaptation_api",
    529         "../api/crypto:options",
    530         "../api/environment",
    531         "../api/environment:environment_factory",
    532         "../api/test/network_emulation",
    533         "../api/test/video:function_video_factory",
    534         "../api/transport:bitrate_settings",
    535         "../api/transport:network_control",
    536         "../api/transport/rtp:dependency_descriptor",
    537         "../api/units:data_rate",
    538         "../api/units:data_size",
    539         "../api/units:time_delta",
    540         "../api/units:timestamp",
    541         "../api/video:builtin_video_bitrate_allocator_factory",
    542         "../api/video:encoded_image",
    543         "../api/video:video_codec_constants",
    544         "../api/video:video_frame",
    545         "../api/video:video_frame_type",
    546         "../api/video:video_rtp_headers",
    547         "../api/video_codecs:video_codecs_api",
    548         "../audio",
    549         "../common_video:frame_counts",
    550         "../common_video/generic_frame_descriptor",
    551         "../media:codec",
    552         "../media:media_constants",
    553         "../modules/audio_device:mock_audio_device",
    554         "../modules/audio_processing:mocks",
    555         "../modules/rtp_rtcp",
    556         "../modules/rtp_rtcp:mock_rtp_rtcp",
    557         "../modules/rtp_rtcp:rtp_rtcp_format",
    558         "../modules/rtp_rtcp:rtp_video_header",
    559         "../modules/video_coding",
    560         "../modules/video_coding:codec_globals_headers",
    561         "../modules/video_coding:video_codec_interface",
    562         "../rtc_base:buffer",
    563         "../rtc_base:checks",
    564         "../rtc_base:logging",
    565         "../rtc_base:macromagic",
    566         "../rtc_base:random",
    567         "../rtc_base:rate_limiter",
    568         "../rtc_base:rtc_event",
    569         "../rtc_base:safe_conversions",
    570         "../rtc_base:task_queue_for_test",
    571         "../rtc_base:threading",
    572         "../rtc_base:timeutils",
    573         "../rtc_base/synchronization:mutex",
    574         "../test:audio_codec_mocks",
    575         "../test:create_test_field_trials",
    576         "../test:encoder_settings",
    577         "../test:fake_video_codecs",
    578         "../test:frame_generator_capturer",
    579         "../test:mock_transport",
    580         "../test:run_loop",
    581         "../test:test_common",
    582         "../test:test_support",
    583         "../test:video_test_constants",
    584         "../test/scenario",
    585         "../test/time_controller",
    586         "../video",
    587         "../video/config:encoder_config",
    588         "adaptation:resource_adaptation_test_utilities",
    589         "//third_party/abseil-cpp/absl/container:inlined_vector",
    590         "//third_party/abseil-cpp/absl/strings",
    591         "//third_party/abseil-cpp/absl/strings:string_view",
    592       ]
    593     }
    594 
    595     rtc_library("call_perf_tests") {
    596       testonly = true
    597 
    598       sources = [
    599         "call_perf_tests.cc",
    600         "rampup_tests.cc",
    601         "rampup_tests.h",
    602       ]
    603       deps = [
    604         ":call_interfaces",
    605         ":fake_network",
    606         ":video_receive_stream_api",
    607         ":video_send_stream_api",
    608         "../api:array_view",
    609         "../api:field_trials_view",
    610         "../api:make_ref_counted",
    611         "../api:rtc_event_log_output_file",
    612         "../api:rtp_parameters",
    613         "../api:scoped_refptr",
    614         "../api:sequence_checker",
    615         "../api:simulated_network_api",
    616         "../api/audio:audio_device",
    617         "../api/audio:builtin_audio_processing_builder",
    618         "../api/audio_codecs:builtin_audio_encoder_factory",
    619         "../api/environment",
    620         "../api/numerics",
    621         "../api/rtc_event_log",
    622         "../api/rtc_event_log:rtc_event_log_factory",
    623         "../api/task_queue",
    624         "../api/task_queue:pending_task_safety_flag",
    625         "../api/test/metrics:global_metrics_logger_and_exporter",
    626         "../api/test/metrics:metric",
    627         "../api/test/video:function_video_factory",
    628         "../api/transport:bitrate_settings",
    629         "../api/units:data_rate",
    630         "../api/units:time_delta",
    631         "../api/units:timestamp",
    632         "../api/video:builtin_video_bitrate_allocator_factory",
    633         "../api/video:video_bitrate_allocation",
    634         "../api/video:video_bitrate_allocator_factory",
    635         "../api/video:video_frame",
    636         "../api/video_codecs:video_codecs_api",
    637         "../media:rtc_internal_video_codecs",
    638         "../media:rtc_simulcast_encoder_adapter",
    639         "../modules/audio_device:test_audio_device_module",
    640         "../modules/audio_mixer:audio_mixer_impl",
    641         "../rtc_base:checks",
    642         "../rtc_base:logging",
    643         "../rtc_base:rtc_event",
    644         "../rtc_base:stringutils",
    645         "../rtc_base:task_queue_for_test",
    646         "../rtc_base:threading",
    647         "../rtc_base/task_utils:repeating_task",
    648         "../system_wrappers:metrics",
    649         "../test:encoder_settings",
    650         "../test:fake_video_codecs",
    651         "../test:fileutils",
    652         "../test:frame_generator_capturer",
    653         "../test:test_common",
    654         "../test:test_flags",
    655         "../test:test_support",
    656         "../test:video_test_common",
    657         "../test:video_test_constants",
    658         "../test/network:simulated_network",
    659         "../video/config:encoder_config",
    660         "//third_party/abseil-cpp/absl/flags:flag",
    661         "//third_party/abseil-cpp/absl/strings",
    662         "//third_party/abseil-cpp/absl/strings:string_view",
    663       ]
    664     }
    665   }
    666 
    667   # TODO(eladalon): This should be moved, as with the TODO for `rtp_interfaces`.
    668   rtc_source_set("mock_rtp_interfaces") {
    669     testonly = true
    670 
    671     sources = [
    672       "test/mock_rtp_packet_sink_interface.h",
    673       "test/mock_rtp_transport_controller_send.h",
    674     ]
    675     deps = [
    676       ":rtp_interfaces",
    677       "../api:fec_controller_api",
    678       "../api:frame_transformer_interface",
    679       "../api:scoped_refptr",
    680       "../api/transport:bandwidth_estimation_settings",
    681       "../api/transport:bitrate_settings",
    682       "../api/transport:network_control",
    683       "../api/units:timestamp",
    684       "../modules/pacing",
    685       "../modules/rtp_rtcp",
    686       "../modules/rtp_rtcp:rtp_rtcp_format",
    687       "../rtc_base:network_route",
    688       "../rtc_base/network:sent_packet",
    689       "../test:test_support",
    690       "//third_party/abseil-cpp/absl/strings:string_view",
    691     ]
    692   }
    693   rtc_source_set("mock_bitrate_allocator") {
    694     testonly = true
    695 
    696     sources = [ "test/mock_bitrate_allocator.h" ]
    697     deps = [
    698       ":bitrate_allocator",
    699       "../test:test_support",
    700     ]
    701   }
    702   rtc_source_set("mock_call_interfaces") {
    703     testonly = true
    704 
    705     sources = [
    706       "test/mock_audio_receive_stream.h",
    707       "test/mock_audio_send_stream.h",
    708     ]
    709     deps = [
    710       ":call_interfaces",
    711       "../api:frame_transformer_interface",
    712       "../api:rtp_headers",
    713       "../api:rtp_sender_interface",
    714       "../api:scoped_refptr",
    715       "../api/audio:audio_frame_api",
    716       "../api/audio:audio_mixer_api",
    717       "../api/audio_codecs:audio_codecs_api",
    718       "../api/crypto:frame_decryptor_interface",
    719       "../api/transport/rtp:rtp_source",
    720       "../test:test_support",
    721     ]
    722   }
    723 
    724   rtc_source_set("fake_payload_type_suggester") {
    725     testonly = true
    726     sources = [ "fake_payload_type_suggester.h" ]
    727     deps = [
    728       ":payload_type",
    729       ":payload_type_picker",
    730       "../api:rtc_error",
    731       "../media:codec",
    732     ]
    733   }
    734 
    735   rtc_library("fake_network_pipe_unittests") {
    736     testonly = true
    737 
    738     sources = [ "fake_network_pipe_unittest.cc" ]
    739     deps = [
    740       ":fake_network",
    741       "../api:simulated_network_api",
    742       "../api/units:data_rate",
    743       "../api/units:time_delta",
    744       "../api/units:timestamp",
    745       "../modules/rtp_rtcp:rtp_rtcp_format",
    746       "../rtc_base:checks",
    747       "../rtc_base:copy_on_write_buffer",
    748       "../system_wrappers",
    749       "../test:test_support",
    750       "../test/network:simulated_network",
    751     ]
    752   }
    753 }