From 1921fa5ea1db3126cca9bed7cbe5898dc9741b27 Mon Sep 17 00:00:00 2001 From: Dor Hen Date: Tue, 13 Aug 2024 05:43:47 -0700 Subject: [PATCH] Apply include-cleaner to api/test/[^/]* e.g all files in the api/test folder not including subdirectories Bug: webrtc:42226242 Change-Id: I18d74a18f8feec41eb252faa9acfffd1d6f45ce4 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/359420 Reviewed-by: Harald Alvestrand Reviewed-by: Mirko Bonadei Commit-Queue: Dor Hen Cr-Commit-Position: refs/heads/main@{#42773} --- api/BUILD.gn | 103 ++++++++++++++++++ api/test/DEPS | 20 ++++ api/test/audioproc_float.cc | 3 + api/test/audioproc_float.h | 2 +- api/test/create_frame_generator.cc | 8 +- api/test/create_frame_generator.h | 2 + api/test/create_network_emulation_manager.cc | 1 + ...connection_quality_test_frame_generator.cc | 6 + ...ate_peerconnection_quality_test_fixture.cc | 4 + api/test/create_simulcast_test_fixture.cc | 3 + api/test/create_time_controller.cc | 3 + api/test/create_time_controller_unittest.cc | 4 +- api/test/create_video_quality_test_fixture.cc | 2 + api/test/create_videocodec_test_fixture.cc | 2 + api/test/fake_frame_decryptor.cc | 4 + api/test/fake_frame_encryptor.cc | 5 + api/test/frame_generator_interface.cc | 2 + api/test/frame_generator_interface.h | 1 + api/test/mock_async_dns_resolver.h | 3 +- api/test/mock_audio_mixer.h | 3 + api/test/mock_audio_sink.h | 3 + api/test/mock_data_channel.h | 6 + api/test/mock_dtmf_sender.h | 4 + api/test/mock_encoder_selector.h | 4 + api/test/mock_frame_decryptor.h | 4 + api/test/mock_frame_encryptor.h | 5 + api/test/mock_frame_transformer.h | 3 +- api/test/mock_media_stream_interface.h | 4 + api/test/mock_packet_socket_factory.h | 6 +- .../mock_peer_connection_factory_interface.h | 12 ++ api/test/mock_peerconnectioninterface.h | 22 +++- api/test/mock_rtp_transceiver.h | 10 ++ api/test/mock_rtpreceiver.h | 7 ++ api/test/mock_rtpsender.h | 14 +++ api/test/mock_transformable_audio_frame.h | 3 + api/test/mock_transformable_frame.h | 1 + api/test/mock_transformable_video_frame.h | 7 +- api/test/mock_video_bitrate_allocator.h | 1 + .../mock_video_bitrate_allocator_factory.h | 3 + api/test/mock_video_decoder.h | 5 +- api/test/mock_video_encoder.h | 7 ++ api/test/mock_video_track.h | 3 + api/test/neteq_simulator_factory.cc | 6 +- api/test/network_emulation_manager.cc | 5 + api/test/network_emulation_manager.h | 7 +- .../peerconnection_quality_test_fixture.h | 35 ------ ...onnection_quality_test_fixture_unittest.cc | 9 +- api/test/simulated_network.h | 3 +- api/test/stats_observer_interface.h | 1 + api/test/test_dependency_factory.cc | 1 + api/test/time_controller.cc | 8 ++ api/test/time_controller.h | 2 +- api/test/video_quality_analyzer_interface.h | 4 +- api/test/video_quality_test_fixture.h | 7 +- api/test/videocodec_test_fixture.h | 10 +- api/test/videocodec_test_stats.cc | 4 + api/test/videocodec_test_stats.h | 1 - modules/video_coding/BUILD.gn | 1 + .../codecs/test/videocodec_test_stats_impl.h | 1 + net/dcsctp/socket/BUILD.gn | 1 + .../socket/dcsctp_socket_network_test.cc | 1 + pc/BUILD.gn | 1 + pc/test/svc_e2e_tests.cc | 1 + test/pc/e2e/BUILD.gn | 1 + test/pc/e2e/peer_connection_e2e_smoke_test.cc | 1 + video/BUILD.gn | 1 + video/pc_full_stack_tests.cc | 1 + 67 files changed, 367 insertions(+), 61 deletions(-) diff --git a/api/BUILD.gn b/api/BUILD.gn index 63c1326adf..419ebc1785 100644 --- a/api/BUILD.gn +++ b/api/BUILD.gn @@ -490,6 +490,8 @@ rtc_source_set("video_quality_analyzer_api") { deps = [ ":array_view", + ":rtc_stats_api", + ":scoped_refptr", ":stats_observer_interface", "../rtc_base:checks", "video:encoded_image", @@ -574,6 +576,7 @@ rtc_source_set("stats_observer_interface") { deps = [ ":rtc_stats_api", + ":scoped_refptr", "//third_party/abseil-cpp/absl/strings:string_view", ] } @@ -645,6 +648,7 @@ rtc_source_set("frame_generator_api") { deps = [ ":scoped_refptr", + "../rtc_base:checks", "video:video_frame", "//third_party/abseil-cpp/absl/types:optional", ] @@ -685,6 +689,7 @@ if (rtc_include_tests) { "transport:bitrate_settings", "transport:network_control", "video_codecs:video_codecs_api", + "//third_party/abseil-cpp/absl/types:optional", ] } @@ -769,8 +774,10 @@ rtc_library("create_peer_connection_quality_test_frame_generator") { ":create_frame_generator", ":frame_generator_api", "../rtc_base:checks", + "../system_wrappers", "../test:fileutils", "test/pclf:media_configuration", + "units:time_delta", "//third_party/abseil-cpp/absl/types:optional", ] } @@ -882,19 +889,24 @@ rtc_source_set("network_emulation_manager_api") { ] deps = [ ":array_view", + ":field_trials_view", ":packet_socket_factory", ":peer_network_dependencies", ":simulated_network_api", ":time_controller", "..//test/network:simulated_network", "../rtc_base:checks", + "../rtc_base:ip_address", "../rtc_base:network", "../rtc_base:network_constants", + "../rtc_base:socket_address", "../rtc_base:threading", "test/network_emulation", "units:data_rate", "units:data_size", "units:timestamp", + "//third_party/abseil-cpp/absl/strings:string_view", + "//third_party/abseil-cpp/absl/types:optional", ] } @@ -906,12 +918,14 @@ rtc_source_set("time_controller") { ] deps = [ + "../rtc_base:socket_server", "../rtc_base:threading", "../rtc_base/synchronization:yield_policy", "../system_wrappers", "task_queue", "units:time_delta", "units:timestamp", + "//third_party/abseil-cpp/absl/strings:string_view", ] } @@ -1017,6 +1031,7 @@ if (rtc_include_tests) { ] deps = [ + ":scoped_refptr", "../modules/audio_processing", "../modules/audio_processing:audioproc_f_impl", "audio:audio_processing", @@ -1085,8 +1100,12 @@ if (rtc_include_tests) { sources = [ "test/videocodec_test_fixture.h" ] deps = [ ":videocodec_test_stats_api", + "../modules/video_coding:codec_globals_headers", "../modules/video_coding:video_codec_interface", + "video:encoded_image", + "video:video_frame", "video_codecs:video_codecs_api", + "//third_party/abseil-cpp/absl/types:optional", ] } @@ -1112,6 +1131,7 @@ if (rtc_include_tests) { deps = [ "../test:test_support", + "audio:audio_frame_api", "audio:audio_mixer_api", ] } @@ -1136,7 +1156,12 @@ if (rtc_include_tests) { deps = [ ":libjingle_peerconnection_api", ":priority", + ":rtc_error", + ":scoped_refptr", + "../rtc_base:refcount", "../test:test_support", + "//third_party/abseil-cpp/absl/functional:any_invocable", + "//third_party/abseil-cpp/absl/types:optional", ] } @@ -1148,6 +1173,9 @@ if (rtc_include_tests) { deps = [ ":dtmf_sender_interface", ":libjingle_peerconnection_api", + ":make_ref_counted", + ":scoped_refptr", + "../rtc_base:refcount", "../test:test_support", ] } @@ -1167,6 +1195,9 @@ if (rtc_include_tests) { testonly = true sources = [ "test/mock_frame_encryptor.h" ] deps = [ + ":array_view", + ":rtp_parameters", + # For api/crypto/frame_encryptor_interface.h ":libjingle_peerconnection_api", "../test:test_support", @@ -1179,7 +1210,9 @@ if (rtc_include_tests) { testonly = true sources = [ "test/mock_frame_decryptor.h" ] deps = [ + ":array_view", ":libjingle_peerconnection_api", + ":rtp_parameters", "../test:test_support", "crypto:frame_decryptor_interface", ] @@ -1191,6 +1224,7 @@ if (rtc_include_tests) { sources = [ "test/mock_frame_transformer.h" ] deps = [ ":frame_transformer_interface", + ":scoped_refptr", "../test:test_support", ] } @@ -1203,6 +1237,9 @@ if (rtc_include_tests) { ":libjingle_peerconnection_api", "../api/video_codecs:video_codecs_api", "../test:test_support", + "units:data_rate", + "video:render_resolution", + "//third_party/abseil-cpp/absl/types:optional", ] } @@ -1248,7 +1285,10 @@ if (rtc_include_tests) { sources = [ "test/mock_media_stream_interface.h" ] deps = [ + ":audio_options_api", ":media_stream_interface", + ":scoped_refptr", + "../rtc_base:refcount", "../test:test_support", ] } @@ -1259,7 +1299,10 @@ if (rtc_include_tests) { sources = [ "test/mock_packet_socket_factory.h" ] deps = [ + ":async_dns_resolver", ":packet_socket_factory", + "../rtc_base:async_packet_socket", + "../rtc_base:socket_address", "../test:test_support", ] } @@ -1270,11 +1313,24 @@ if (rtc_include_tests) { sources = [ "test/mock_peerconnectioninterface.h" ] deps = [ + ":candidate", + ":dtls_transport_interface", + ":libjingle_logging_api", ":libjingle_peerconnection_api", + ":make_ref_counted", + ":media_stream_interface", ":ref_count", + ":rtc_error", + ":rtc_stats_api", + ":rtp_parameters", "../api:scoped_refptr", "../rtc_base:refcount", "../test:test_support", + "adaptation:resource_adaptation_api", + "transport:bandwidth_estimation_settings", + "transport:bitrate_settings", + "transport:network_control", + "//third_party/abseil-cpp/absl/types:optional", ] } @@ -1284,8 +1340,17 @@ if (rtc_include_tests) { sources = [ "test/mock_peer_connection_factory_interface.h" ] deps = [ + ":audio_options_api", ":libjingle_peerconnection_api", + ":media_stream_interface", + ":rtc_error", + ":rtp_parameters", + ":scoped_refptr", + "../p2p:rtc_p2p", + "../rtc_base:refcount", + "../rtc_base:rtc_certificate_generator", "../test:test_support", + "//third_party/abseil-cpp/absl/strings:string_view", ] } @@ -1317,7 +1382,9 @@ if (rtc_include_tests) { sources = [ "test/mock_async_dns_resolver.h" ] deps = [ ":async_dns_resolver", + "../rtc_base:socket_address", "../test:test_support", + "//third_party/abseil-cpp/absl/functional:any_invocable", ] } @@ -1331,10 +1398,24 @@ if (rtc_include_tests) { ] deps = [ + ":array_view", + ":dtls_transport_interface", + ":frame_transformer_interface", ":libjingle_peerconnection_api", + ":make_ref_counted", + ":media_stream_interface", + ":rtc_error", + ":rtp_parameters", ":rtp_sender_interface", + ":rtp_transceiver_direction", + ":scoped_refptr", "../api/crypto:frame_decryptor_interface", + "../rtc_base:refcount", "../test:test_support", + "crypto:frame_encryptor_interface", + "transport/rtp:rtp_source", + "video_codecs:video_codecs_api", + "//third_party/abseil-cpp/absl/types:optional", ] } @@ -1344,9 +1425,11 @@ if (rtc_include_tests) { sources = [ "test/mock_transformable_audio_frame.h" ] deps = [ + ":array_view", ":frame_transformer_interface", "../api/units:timestamp", "../test:test_support", + "//third_party/abseil-cpp/absl/types:optional", ] } @@ -1356,8 +1439,12 @@ if (rtc_include_tests) { sources = [ "test/mock_transformable_video_frame.h" ] deps = [ + ":array_view", ":frame_transformer_interface", "../test:test_support", + "units:timestamp", + "video:video_frame_metadata", + "//third_party/abseil-cpp/absl/types:optional", ] } @@ -1369,6 +1456,7 @@ if (rtc_include_tests) { deps = [ "../api/video:video_bitrate_allocator", "../test:test_support", + "video:video_bitrate_allocation", ] } @@ -1380,6 +1468,9 @@ if (rtc_include_tests) { deps = [ "../api/video:video_bitrate_allocator_factory", "../test:test_support", + "environment", + "video:video_bitrate_allocator", + "video_codecs:video_codecs_api", ] } @@ -1406,6 +1497,9 @@ if (rtc_include_tests) { deps = [ "../api/video_codecs:video_codecs_api", "../test:test_support", + "video:encoded_image", + "video:video_frame", + "//third_party/abseil-cpp/absl/types:optional", ] } @@ -1415,8 +1509,12 @@ if (rtc_include_tests) { sources = [ "test/mock_video_encoder.h" ] deps = [ + ":fec_controller_api", "../api/video_codecs:video_codecs_api", "../test:test_support", + "video:encoded_image", + "video:video_frame", + "video:video_frame_type", ] } @@ -1431,6 +1529,7 @@ if (rtc_include_tests) { "../api:scoped_refptr", "../rtc_base:refcount", "../test:test_support", + "video:video_frame", ] } @@ -1448,12 +1547,14 @@ if (rtc_include_tests) { ":time_controller", "../call", "../call:call_interfaces", + "../media:media_engine", "../pc:media_factory", "../rtc_base:checks", "../system_wrappers", "../test/time_controller", "environment", "environment:environment_factory", + "units:timestamp", "//third_party/abseil-cpp/absl/base:nullability", ] } @@ -1508,6 +1609,7 @@ if (rtc_include_tests) { "../rtc_base/containers:flat_set", "../rtc_base/synchronization:sequence_checker_internal", "../rtc_base/task_utils:repeating_task", + "../system_wrappers", "../system_wrappers:field_trial", "../test:field_trial", "../test:fileutils", @@ -1523,6 +1625,7 @@ if (rtc_include_tests) { "units:units_unittests", "video:frame_buffer_unittest", "video:rtp_video_frame_assembler_unittests", + "video:video_frame", "video:video_frame_metadata_unittest", "//testing/gtest", "//third_party/abseil-cpp/absl/functional:any_invocable", diff --git a/api/test/DEPS b/api/test/DEPS index 270b274c5f..5506d6c76a 100644 --- a/api/test/DEPS +++ b/api/test/DEPS @@ -5,6 +5,9 @@ specific_include_rules = { ".*": [ "+video" ], + ".*": [ + "+rtc_base/ref_counted_object.h", + ], "dummy_peer_connection\.h": [ "+rtc_base/ref_counted_object.h", ], @@ -15,6 +18,8 @@ specific_include_rules = { "+rtc_base/thread.h", "+rtc_base/network.h", "+rtc_base/network_constants.h", + "+rtc_base/ip_address.h", + "+rtc_base/socket_address.h", ], "peer_network_dependencies\.h": [ "+rtc_base/network.h", @@ -32,8 +37,23 @@ specific_include_rules = { "time_controller\.h": [ "+rtc_base/synchronization/yield_policy.h", "+system_wrappers/include/clock.h", + "+rtc_base/socket_server.h", ], "create_frame_generator\.h": [ "+system_wrappers/include/clock.h", ], + "mock_async_dns_resolver\.h": [ + "+rtc_base/socket_address.h", + ], + "mock_packet_socket_factory\.h": [ + "+rtc_base/async_packet_socket.h", + "+rtc_base/socket_address.h", + ], + "mock_peer_connection_factory_interface\.h": [ + "+p2p/base/port_allocator.h", + "+rtc_base/rtc_certificate_generator.h", + ], + "videocodec_test_fixture\.h": [ + "+modules/video_coding/codecs/h264/include/h264_globals.h", + ], } diff --git a/api/test/audioproc_float.cc b/api/test/audioproc_float.cc index 2e0f15c4fb..f734b8b2e7 100644 --- a/api/test/audioproc_float.cc +++ b/api/test/audioproc_float.cc @@ -10,8 +10,11 @@ #include "api/test/audioproc_float.h" +#include #include +#include "api/audio/audio_processing.h" +#include "api/scoped_refptr.h" #include "modules/audio_processing/test/audioproc_float_impl.h" namespace webrtc { diff --git a/api/test/audioproc_float.h b/api/test/audioproc_float.h index dbdd9348e7..3c2175351b 100644 --- a/api/test/audioproc_float.h +++ b/api/test/audioproc_float.h @@ -12,9 +12,9 @@ #define API_TEST_AUDIOPROC_FLOAT_H_ #include -#include #include "api/audio/audio_processing.h" +#include "api/scoped_refptr.h" namespace webrtc { namespace test { diff --git a/api/test/create_frame_generator.cc b/api/test/create_frame_generator.cc index 10eb1a8bc0..f0d8e057b1 100644 --- a/api/test/create_frame_generator.cc +++ b/api/test/create_frame_generator.cc @@ -10,12 +10,18 @@ #include "api/test/create_frame_generator.h" +#include #include -#include +#include +#include +#include #include "absl/base/nullability.h" #include "absl/strings/string_view.h" +#include "absl/types/optional.h" +#include "api/environment/environment.h" #include "api/environment/environment_factory.h" +#include "api/test/frame_generator_interface.h" #include "rtc_base/checks.h" #include "test/frame_generator.h" #include "test/testsupport/ivf_video_frame_generator.h" diff --git a/api/test/create_frame_generator.h b/api/test/create_frame_generator.h index 7ed0828cc5..14c88d3860 100644 --- a/api/test/create_frame_generator.h +++ b/api/test/create_frame_generator.h @@ -11,6 +11,8 @@ #ifndef API_TEST_CREATE_FRAME_GENERATOR_H_ #define API_TEST_CREATE_FRAME_GENERATOR_H_ +#include +#include #include #include #include diff --git a/api/test/create_network_emulation_manager.cc b/api/test/create_network_emulation_manager.cc index 36c496f630..488481d338 100644 --- a/api/test/create_network_emulation_manager.cc +++ b/api/test/create_network_emulation_manager.cc @@ -15,6 +15,7 @@ #include #include "api/field_trials_view.h" +#include "api/test/network_emulation_manager.h" #include "test/network/network_emulation_manager.h" namespace webrtc { diff --git a/api/test/create_peer_connection_quality_test_frame_generator.cc b/api/test/create_peer_connection_quality_test_frame_generator.cc index a1c53635f9..d4aa46d488 100644 --- a/api/test/create_peer_connection_quality_test_frame_generator.cc +++ b/api/test/create_peer_connection_quality_test_frame_generator.cc @@ -10,12 +10,18 @@ #include "api/test/create_peer_connection_quality_test_frame_generator.h" +#include +#include #include #include +#include "absl/types/optional.h" #include "api/test/create_frame_generator.h" +#include "api/test/frame_generator_interface.h" #include "api/test/pclf/media_configuration.h" +#include "api/units/time_delta.h" #include "rtc_base/checks.h" +#include "system_wrappers/include/clock.h" #include "test/testsupport/file_utils.h" namespace webrtc { diff --git a/api/test/create_peerconnection_quality_test_fixture.cc b/api/test/create_peerconnection_quality_test_fixture.cc index e156991ed4..fd8e2cfaa7 100644 --- a/api/test/create_peerconnection_quality_test_fixture.cc +++ b/api/test/create_peerconnection_quality_test_fixture.cc @@ -11,10 +11,14 @@ #include "api/test/create_peerconnection_quality_test_fixture.h" #include +#include #include +#include "api/test/audio_quality_analyzer_interface.h" #include "api/test/metrics/global_metrics_logger_and_exporter.h" +#include "api/test/peerconnection_quality_test_fixture.h" #include "api/test/time_controller.h" +#include "api/test/video_quality_analyzer_interface.h" #include "test/pc/e2e/peer_connection_quality_test.h" namespace webrtc { diff --git a/api/test/create_simulcast_test_fixture.cc b/api/test/create_simulcast_test_fixture.cc index 024145dff0..164395f946 100644 --- a/api/test/create_simulcast_test_fixture.cc +++ b/api/test/create_simulcast_test_fixture.cc @@ -14,6 +14,9 @@ #include #include "api/test/simulcast_test_fixture.h" +#include "api/video_codecs/sdp_video_format.h" +#include "api/video_codecs/video_decoder_factory.h" +#include "api/video_codecs/video_encoder_factory.h" #include "modules/video_coding/utility/simulcast_test_fixture_impl.h" namespace webrtc { diff --git a/api/test/create_time_controller.cc b/api/test/create_time_controller.cc index 9189e369fd..f0fb5acb0e 100644 --- a/api/test/create_time_controller.cc +++ b/api/test/create_time_controller.cc @@ -18,8 +18,11 @@ #include "api/environment/environment.h" #include "api/environment/environment_factory.h" #include "api/peer_connection_interface.h" +#include "api/test/time_controller.h" +#include "api/units/timestamp.h" #include "call/call.h" #include "call/call_config.h" +#include "media/base/media_engine.h" #include "pc/media_factory.h" #include "rtc_base/checks.h" #include "system_wrappers/include/clock.h" diff --git a/api/test/create_time_controller_unittest.cc b/api/test/create_time_controller_unittest.cc index 0ea868c5cc..365d4aebe3 100644 --- a/api/test/create_time_controller_unittest.cc +++ b/api/test/create_time_controller_unittest.cc @@ -10,10 +10,12 @@ #include "api/test/create_time_controller.h" +#include + #include "api/test/time_controller.h" #include "api/units/time_delta.h" #include "api/units/timestamp.h" -#include "test/gmock.h" +#include "system_wrappers/include/clock.h" #include "test/gtest.h" namespace webrtc { diff --git a/api/test/create_video_quality_test_fixture.cc b/api/test/create_video_quality_test_fixture.cc index 1fa7d243cc..1cfe228423 100644 --- a/api/test/create_video_quality_test_fixture.cc +++ b/api/test/create_video_quality_test_fixture.cc @@ -13,6 +13,8 @@ #include #include +#include "api/fec_controller.h" +#include "api/test/video_quality_test_fixture.h" #include "video/video_quality_test.h" namespace webrtc { diff --git a/api/test/create_videocodec_test_fixture.cc b/api/test/create_videocodec_test_fixture.cc index 1f618e5db8..f8a035febc 100644 --- a/api/test/create_videocodec_test_fixture.cc +++ b/api/test/create_videocodec_test_fixture.cc @@ -14,6 +14,8 @@ #include #include "api/test/videocodec_test_fixture.h" +#include "api/video_codecs/video_decoder_factory.h" +#include "api/video_codecs/video_encoder_factory.h" #include "modules/video_coding/codecs/test/videocodec_test_fixture_impl.h" namespace webrtc { diff --git a/api/test/fake_frame_decryptor.cc b/api/test/fake_frame_decryptor.cc index 16cb1bd3b6..c82db2c542 100644 --- a/api/test/fake_frame_decryptor.cc +++ b/api/test/fake_frame_decryptor.cc @@ -10,8 +10,12 @@ #include "api/test/fake_frame_decryptor.h" +#include +#include #include +#include "api/array_view.h" +#include "api/media_types.h" #include "rtc_base/checks.h" namespace webrtc { diff --git a/api/test/fake_frame_encryptor.cc b/api/test/fake_frame_encryptor.cc index 89d14aab88..2911e84d26 100644 --- a/api/test/fake_frame_encryptor.cc +++ b/api/test/fake_frame_encryptor.cc @@ -10,6 +10,11 @@ #include "api/test/fake_frame_encryptor.h" +#include +#include + +#include "api/array_view.h" +#include "api/media_types.h" #include "rtc_base/checks.h" namespace webrtc { diff --git a/api/test/frame_generator_interface.cc b/api/test/frame_generator_interface.cc index fe7b1e883d..5779158345 100644 --- a/api/test/frame_generator_interface.cc +++ b/api/test/frame_generator_interface.cc @@ -10,6 +10,8 @@ #include "api/test/frame_generator_interface.h" +#include "rtc_base/checks.h" + namespace webrtc { namespace test { diff --git a/api/test/frame_generator_interface.h b/api/test/frame_generator_interface.h index e963467e95..169ead8de9 100644 --- a/api/test/frame_generator_interface.h +++ b/api/test/frame_generator_interface.h @@ -11,6 +11,7 @@ #ifndef API_TEST_FRAME_GENERATOR_INTERFACE_H_ #define API_TEST_FRAME_GENERATOR_INTERFACE_H_ +#include #include #include "absl/types/optional.h" diff --git a/api/test/mock_async_dns_resolver.h b/api/test/mock_async_dns_resolver.h index 26127eb1f6..d6a7148159 100644 --- a/api/test/mock_async_dns_resolver.h +++ b/api/test/mock_async_dns_resolver.h @@ -11,10 +11,11 @@ #ifndef API_TEST_MOCK_ASYNC_DNS_RESOLVER_H_ #define API_TEST_MOCK_ASYNC_DNS_RESOLVER_H_ -#include #include +#include "absl/functional/any_invocable.h" #include "api/async_dns_resolver.h" +#include "rtc_base/socket_address.h" #include "test/gmock.h" namespace webrtc { diff --git a/api/test/mock_audio_mixer.h b/api/test/mock_audio_mixer.h index 88dc108ca3..458c0763f6 100644 --- a/api/test/mock_audio_mixer.h +++ b/api/test/mock_audio_mixer.h @@ -11,6 +11,9 @@ #ifndef API_TEST_MOCK_AUDIO_MIXER_H_ #define API_TEST_MOCK_AUDIO_MIXER_H_ +#include + +#include "api/audio/audio_frame.h" #include "api/audio/audio_mixer.h" #include "test/gmock.h" diff --git a/api/test/mock_audio_sink.h b/api/test/mock_audio_sink.h index 88f38a3c57..6218b86530 100644 --- a/api/test/mock_audio_sink.h +++ b/api/test/mock_audio_sink.h @@ -11,6 +11,9 @@ #ifndef API_TEST_MOCK_AUDIO_SINK_H_ #define API_TEST_MOCK_AUDIO_SINK_H_ +#include +#include + #include "absl/types/optional.h" #include "api/media_stream_interface.h" #include "test/gmock.h" diff --git a/api/test/mock_data_channel.h b/api/test/mock_data_channel.h index d8e19b0bae..8b8d56a1c6 100644 --- a/api/test/mock_data_channel.h +++ b/api/test/mock_data_channel.h @@ -11,10 +11,16 @@ #ifndef API_TEST_MOCK_DATA_CHANNEL_H_ #define API_TEST_MOCK_DATA_CHANNEL_H_ +#include #include +#include "absl/functional/any_invocable.h" +#include "absl/types/optional.h" #include "api/data_channel_interface.h" #include "api/priority.h" +#include "api/rtc_error.h" +#include "api/scoped_refptr.h" +#include "rtc_base/ref_counted_object.h" #include "test/gmock.h" namespace webrtc { diff --git a/api/test/mock_dtmf_sender.h b/api/test/mock_dtmf_sender.h index 9029195025..ec60ccba25 100644 --- a/api/test/mock_dtmf_sender.h +++ b/api/test/mock_dtmf_sender.h @@ -12,8 +12,12 @@ #define API_TEST_MOCK_DTMF_SENDER_H_ #include +#include #include "api/dtmf_sender_interface.h" +#include "api/make_ref_counted.h" +#include "api/scoped_refptr.h" +#include "rtc_base/ref_counted_object.h" #include "test/gmock.h" namespace webrtc { diff --git a/api/test/mock_encoder_selector.h b/api/test/mock_encoder_selector.h index 2e018d57ba..a54c4c15af 100644 --- a/api/test/mock_encoder_selector.h +++ b/api/test/mock_encoder_selector.h @@ -11,6 +11,10 @@ #ifndef API_TEST_MOCK_ENCODER_SELECTOR_H_ #define API_TEST_MOCK_ENCODER_SELECTOR_H_ +#include "absl/types/optional.h" +#include "api/units/data_rate.h" +#include "api/video/render_resolution.h" +#include "api/video_codecs/sdp_video_format.h" #include "api/video_codecs/video_encoder_factory.h" #include "test/gmock.h" diff --git a/api/test/mock_frame_decryptor.h b/api/test/mock_frame_decryptor.h index 9604b96cc2..3f762ff0d7 100644 --- a/api/test/mock_frame_decryptor.h +++ b/api/test/mock_frame_decryptor.h @@ -11,9 +11,13 @@ #ifndef API_TEST_MOCK_FRAME_DECRYPTOR_H_ #define API_TEST_MOCK_FRAME_DECRYPTOR_H_ +#include +#include #include +#include "api/array_view.h" #include "api/crypto/frame_decryptor_interface.h" +#include "api/media_types.h" #include "test/gmock.h" namespace webrtc { diff --git a/api/test/mock_frame_encryptor.h b/api/test/mock_frame_encryptor.h index e47321f801..5e99dff9a1 100644 --- a/api/test/mock_frame_encryptor.h +++ b/api/test/mock_frame_encryptor.h @@ -11,7 +11,12 @@ #ifndef API_TEST_MOCK_FRAME_ENCRYPTOR_H_ #define API_TEST_MOCK_FRAME_ENCRYPTOR_H_ +#include +#include + +#include "api/array_view.h" #include "api/crypto/frame_encryptor_interface.h" +#include "api/media_types.h" #include "test/gmock.h" namespace webrtc { diff --git a/api/test/mock_frame_transformer.h b/api/test/mock_frame_transformer.h index 8f438bdf9e..d10da47346 100644 --- a/api/test/mock_frame_transformer.h +++ b/api/test/mock_frame_transformer.h @@ -11,10 +11,11 @@ #ifndef API_TEST_MOCK_FRAME_TRANSFORMER_H_ #define API_TEST_MOCK_FRAME_TRANSFORMER_H_ +#include #include -#include #include "api/frame_transformer_interface.h" +#include "api/scoped_refptr.h" #include "test/gmock.h" namespace webrtc { diff --git a/api/test/mock_media_stream_interface.h b/api/test/mock_media_stream_interface.h index dfdbab35e9..34e0c6045a 100644 --- a/api/test/mock_media_stream_interface.h +++ b/api/test/mock_media_stream_interface.h @@ -12,8 +12,12 @@ #define API_TEST_MOCK_MEDIA_STREAM_INTERFACE_H_ #include +#include +#include "api/audio_options.h" #include "api/media_stream_interface.h" +#include "api/scoped_refptr.h" +#include "rtc_base/ref_counted_object.h" #include "test/gmock.h" namespace webrtc { diff --git a/api/test/mock_packet_socket_factory.h b/api/test/mock_packet_socket_factory.h index 82f7676285..d54be78967 100644 --- a/api/test/mock_packet_socket_factory.h +++ b/api/test/mock_packet_socket_factory.h @@ -11,10 +11,14 @@ #ifndef API_TEST_MOCK_PACKET_SOCKET_FACTORY_H_ #define API_TEST_MOCK_PACKET_SOCKET_FACTORY_H_ +#include #include -#include +#include +#include "api/async_dns_resolver.h" #include "api/packet_socket_factory.h" +#include "rtc_base/async_packet_socket.h" +#include "rtc_base/socket_address.h" #include "test/gmock.h" namespace rtc { diff --git a/api/test/mock_peer_connection_factory_interface.h b/api/test/mock_peer_connection_factory_interface.h index 67a67b8e06..4551266f20 100644 --- a/api/test/mock_peer_connection_factory_interface.h +++ b/api/test/mock_peer_connection_factory_interface.h @@ -11,10 +11,22 @@ #ifndef API_TEST_MOCK_PEER_CONNECTION_FACTORY_INTERFACE_H_ #define API_TEST_MOCK_PEER_CONNECTION_FACTORY_INTERFACE_H_ +#include +#include #include #include +#include "absl/strings/string_view.h" +#include "api/audio_options.h" +#include "api/media_stream_interface.h" +#include "api/media_types.h" #include "api/peer_connection_interface.h" +#include "api/rtc_error.h" +#include "api/rtp_parameters.h" +#include "api/scoped_refptr.h" +#include "p2p/base/port_allocator.h" +#include "rtc_base/ref_counted_object.h" +#include "rtc_base/rtc_certificate_generator.h" #include "test/gmock.h" namespace webrtc { diff --git a/api/test/mock_peerconnectioninterface.h b/api/test/mock_peerconnectioninterface.h index 30822930bb..782e45e882 100644 --- a/api/test/mock_peerconnectioninterface.h +++ b/api/test/mock_peerconnectioninterface.h @@ -11,15 +11,35 @@ #ifndef API_TEST_MOCK_PEERCONNECTIONINTERFACE_H_ #define API_TEST_MOCK_PEERCONNECTIONINTERFACE_H_ +#include #include #include #include -#include #include +#include "absl/types/optional.h" +#include "api/adaptation/resource.h" +#include "api/candidate.h" +#include "api/data_channel_interface.h" +#include "api/dtls_transport_interface.h" +#include "api/jsep.h" +#include "api/make_ref_counted.h" +#include "api/media_stream_interface.h" +#include "api/media_types.h" #include "api/peer_connection_interface.h" +#include "api/rtc_error.h" +#include "api/rtc_event_log_output.h" +#include "api/rtp_parameters.h" +#include "api/rtp_receiver_interface.h" +#include "api/rtp_sender_interface.h" +#include "api/rtp_transceiver_interface.h" #include "api/scoped_refptr.h" #include "api/sctp_transport_interface.h" +#include "api/set_remote_description_observer_interface.h" +#include "api/stats/rtc_stats_collector_callback.h" +#include "api/transport/bandwidth_estimation_settings.h" +#include "api/transport/bitrate_settings.h" +#include "api/transport/network_control.h" #include "rtc_base/ref_counted_object.h" #include "test/gmock.h" diff --git a/api/test/mock_rtp_transceiver.h b/api/test/mock_rtp_transceiver.h index 72a69f1bd0..f3dbec6f75 100644 --- a/api/test/mock_rtp_transceiver.h +++ b/api/test/mock_rtp_transceiver.h @@ -14,7 +14,17 @@ #include #include +#include "absl/types/optional.h" +#include "api/array_view.h" +#include "api/make_ref_counted.h" +#include "api/media_types.h" +#include "api/rtc_error.h" +#include "api/rtp_parameters.h" +#include "api/rtp_receiver_interface.h" +#include "api/rtp_sender_interface.h" +#include "api/rtp_transceiver_direction.h" #include "api/rtp_transceiver_interface.h" +#include "api/scoped_refptr.h" #include "test/gmock.h" namespace webrtc { diff --git a/api/test/mock_rtpreceiver.h b/api/test/mock_rtpreceiver.h index 63318dc32d..b591db4950 100644 --- a/api/test/mock_rtpreceiver.h +++ b/api/test/mock_rtpreceiver.h @@ -14,8 +14,15 @@ #include #include +#include "absl/types/optional.h" #include "api/crypto/frame_decryptor_interface.h" +#include "api/media_stream_interface.h" +#include "api/media_types.h" +#include "api/rtp_parameters.h" #include "api/rtp_receiver_interface.h" +#include "api/scoped_refptr.h" +#include "api/transport/rtp/rtp_source.h" +#include "rtc_base/ref_counted_object.h" #include "test/gmock.h" namespace webrtc { diff --git a/api/test/mock_rtpsender.h b/api/test/mock_rtpsender.h index 5a38d1df54..6e85451195 100644 --- a/api/test/mock_rtpsender.h +++ b/api/test/mock_rtpsender.h @@ -11,11 +11,25 @@ #ifndef API_TEST_MOCK_RTPSENDER_H_ #define API_TEST_MOCK_RTPSENDER_H_ +#include #include #include +#include #include +#include "api/crypto/frame_encryptor_interface.h" +#include "api/dtls_transport_interface.h" +#include "api/dtmf_sender_interface.h" +#include "api/frame_transformer_interface.h" +#include "api/make_ref_counted.h" +#include "api/media_stream_interface.h" +#include "api/media_types.h" +#include "api/rtc_error.h" +#include "api/rtp_parameters.h" #include "api/rtp_sender_interface.h" +#include "api/scoped_refptr.h" +#include "api/video_codecs/video_encoder_factory.h" +#include "rtc_base/ref_counted_object.h" #include "test/gmock.h" namespace webrtc { diff --git a/api/test/mock_transformable_audio_frame.h b/api/test/mock_transformable_audio_frame.h index c51d2f0920..0bed6266a3 100644 --- a/api/test/mock_transformable_audio_frame.h +++ b/api/test/mock_transformable_audio_frame.h @@ -11,8 +11,11 @@ #ifndef API_TEST_MOCK_TRANSFORMABLE_AUDIO_FRAME_H_ #define API_TEST_MOCK_TRANSFORMABLE_AUDIO_FRAME_H_ +#include #include +#include "absl/types/optional.h" +#include "api/array_view.h" #include "api/frame_transformer_interface.h" #include "api/units/timestamp.h" #include "test/gmock.h" diff --git a/api/test/mock_transformable_frame.h b/api/test/mock_transformable_frame.h index d6e08565d6..8ca2681fc4 100644 --- a/api/test/mock_transformable_frame.h +++ b/api/test/mock_transformable_frame.h @@ -15,6 +15,7 @@ #include #include +#include #include "api/array_view.h" #include "api/frame_transformer_interface.h" diff --git a/api/test/mock_transformable_video_frame.h b/api/test/mock_transformable_video_frame.h index 2cf7cb29eb..2ec3579594 100644 --- a/api/test/mock_transformable_video_frame.h +++ b/api/test/mock_transformable_video_frame.h @@ -11,10 +11,15 @@ #ifndef API_TEST_MOCK_TRANSFORMABLE_VIDEO_FRAME_H_ #define API_TEST_MOCK_TRANSFORMABLE_VIDEO_FRAME_H_ +#include #include -#include +#include +#include "absl/types/optional.h" +#include "api/array_view.h" #include "api/frame_transformer_interface.h" +#include "api/units/timestamp.h" +#include "api/video/video_frame_metadata.h" #include "test/gmock.h" namespace webrtc { diff --git a/api/test/mock_video_bitrate_allocator.h b/api/test/mock_video_bitrate_allocator.h index 76cf49e955..de06d93e3f 100644 --- a/api/test/mock_video_bitrate_allocator.h +++ b/api/test/mock_video_bitrate_allocator.h @@ -11,6 +11,7 @@ #ifndef API_TEST_MOCK_VIDEO_BITRATE_ALLOCATOR_H_ #define API_TEST_MOCK_VIDEO_BITRATE_ALLOCATOR_H_ +#include "api/video/video_bitrate_allocation.h" #include "api/video/video_bitrate_allocator.h" #include "test/gmock.h" diff --git a/api/test/mock_video_bitrate_allocator_factory.h b/api/test/mock_video_bitrate_allocator_factory.h index 7c6492ed4e..7e7906a921 100644 --- a/api/test/mock_video_bitrate_allocator_factory.h +++ b/api/test/mock_video_bitrate_allocator_factory.h @@ -13,7 +13,10 @@ #include +#include "api/environment/environment.h" +#include "api/video/video_bitrate_allocator.h" #include "api/video/video_bitrate_allocator_factory.h" +#include "api/video_codecs/video_codec.h" #include "test/gmock.h" namespace webrtc { diff --git a/api/test/mock_video_decoder.h b/api/test/mock_video_decoder.h index dc499d45f7..c252c24daa 100644 --- a/api/test/mock_video_decoder.h +++ b/api/test/mock_video_decoder.h @@ -11,8 +11,11 @@ #ifndef API_TEST_MOCK_VIDEO_DECODER_H_ #define API_TEST_MOCK_VIDEO_DECODER_H_ -#include +#include +#include "absl/types/optional.h" +#include "api/video/encoded_image.h" +#include "api/video/video_frame.h" #include "api/video_codecs/video_decoder.h" #include "test/gmock.h" diff --git a/api/test/mock_video_encoder.h b/api/test/mock_video_encoder.h index 11e0f64b3f..9340d6ea38 100644 --- a/api/test/mock_video_encoder.h +++ b/api/test/mock_video_encoder.h @@ -11,8 +11,15 @@ #ifndef API_TEST_MOCK_VIDEO_ENCODER_H_ #define API_TEST_MOCK_VIDEO_ENCODER_H_ +#include +#include #include +#include "api/fec_controller_override.h" +#include "api/video/encoded_image.h" +#include "api/video/video_frame.h" +#include "api/video/video_frame_type.h" +#include "api/video_codecs/video_codec.h" #include "api/video_codecs/video_encoder.h" #include "test/gmock.h" diff --git a/api/test/mock_video_track.h b/api/test/mock_video_track.h index 1212a32527..fbedaec48d 100644 --- a/api/test/mock_video_track.h +++ b/api/test/mock_video_track.h @@ -15,6 +15,9 @@ #include "api/media_stream_interface.h" #include "api/scoped_refptr.h" +#include "api/video/video_frame.h" +#include "api/video/video_sink_interface.h" +#include "api/video/video_source_interface.h" #include "rtc_base/ref_counted_object.h" #include "test/gmock.h" diff --git a/api/test/neteq_simulator_factory.cc b/api/test/neteq_simulator_factory.cc index b146fe1c39..6a05816744 100644 --- a/api/test/neteq_simulator_factory.cc +++ b/api/test/neteq_simulator_factory.cc @@ -12,12 +12,10 @@ #include #include -#include -#include "absl/flags/flag.h" -#include "absl/flags/parse.h" +#include "absl/strings/string_view.h" +#include "api/test/neteq_simulator.h" #include "modules/audio_coding/neteq/tools/neteq_test_factory.h" -#include "rtc_base/checks.h" namespace webrtc { namespace test { diff --git a/api/test/network_emulation_manager.cc b/api/test/network_emulation_manager.cc index 9d50897495..03dcd84573 100644 --- a/api/test/network_emulation_manager.cc +++ b/api/test/network_emulation_manager.cc @@ -9,8 +9,13 @@ */ #include "api/test/network_emulation_manager.h" +#include +#include +#include #include +#include "absl/strings/string_view.h" +#include "api/test/simulated_network.h" #include "api/units/data_rate.h" #include "rtc_base/checks.h" #include "test/network/simulated_network.h" diff --git a/api/test/network_emulation_manager.h b/api/test/network_emulation_manager.h index 48bb19b082..aeb32e79e3 100644 --- a/api/test/network_emulation_manager.h +++ b/api/test/network_emulation_manager.h @@ -11,13 +11,17 @@ #ifndef API_TEST_NETWORK_EMULATION_MANAGER_H_ #define API_TEST_NETWORK_EMULATION_MANAGER_H_ +#include #include #include #include #include #include +#include "absl/strings/string_view.h" +#include "absl/types/optional.h" #include "api/array_view.h" +#include "api/field_trials_view.h" #include "api/packet_socket_factory.h" #include "api/test/network_emulation/cross_traffic.h" #include "api/test/network_emulation/network_emulation_interfaces.h" @@ -25,9 +29,10 @@ #include "api/test/simulated_network.h" #include "api/test/time_controller.h" #include "api/units/data_rate.h" -#include "api/units/timestamp.h" +#include "rtc_base/ip_address.h" #include "rtc_base/network.h" #include "rtc_base/network_constants.h" +#include "rtc_base/socket_address.h" #include "rtc_base/thread.h" namespace webrtc { diff --git a/api/test/peerconnection_quality_test_fixture.h b/api/test/peerconnection_quality_test_fixture.h index 0b1e69e5ab..04be298bdb 100644 --- a/api/test/peerconnection_quality_test_fixture.h +++ b/api/test/peerconnection_quality_test_fixture.h @@ -11,51 +11,16 @@ #define API_TEST_PEERCONNECTION_QUALITY_TEST_FIXTURE_H_ #include -#include #include -#include #include -#include -#include -#include -#include "absl/base/macros.h" -#include "absl/memory/memory.h" #include "absl/strings/string_view.h" -#include "absl/types/optional.h" -#include "api/array_view.h" -#include "api/audio/audio_mixer.h" -#include "api/audio/audio_processing.h" -#include "api/fec_controller.h" -#include "api/function_view.h" -#include "api/media_stream_interface.h" -#include "api/peer_connection_interface.h" -#include "api/rtc_event_log/rtc_event_log_factory_interface.h" -#include "api/rtp_parameters.h" -#include "api/task_queue/task_queue_factory.h" -#include "api/test/audio_quality_analyzer_interface.h" -#include "api/test/frame_generator_interface.h" -#include "api/test/pclf/media_configuration.h" #include "api/test/pclf/media_quality_test_params.h" #include "api/test/pclf/peer_configurer.h" -#include "api/test/peer_network_dependencies.h" -#include "api/test/simulated_network.h" #include "api/test/stats_observer_interface.h" #include "api/test/track_id_stream_info_map.h" -#include "api/test/video/video_frame_writer.h" -#include "api/test/video_quality_analyzer_interface.h" -#include "api/transport/network_control.h" #include "api/units/time_delta.h" -#include "api/video_codecs/video_decoder_factory.h" -#include "api/video_codecs/video_encoder.h" -#include "api/video_codecs/video_encoder_factory.h" -#include "media/base/media_constants.h" -#include "rtc_base/checks.h" -#include "rtc_base/network.h" -#include "rtc_base/rtc_certificate_generator.h" -#include "rtc_base/ssl_certificate.h" -#include "rtc_base/thread.h" namespace webrtc { namespace webrtc_pc_e2e { diff --git a/api/test/peerconnection_quality_test_fixture_unittest.cc b/api/test/peerconnection_quality_test_fixture_unittest.cc index 26ae8cf98f..cd3dbb22e6 100644 --- a/api/test/peerconnection_quality_test_fixture_unittest.cc +++ b/api/test/peerconnection_quality_test_fixture_unittest.cc @@ -8,15 +8,18 @@ * be found in the AUTHORS file in the root of the source tree. */ -#include "api/test/peerconnection_quality_test_fixture.h" - +#include +#include +#include #include +#include "absl/strings/string_view.h" #include "absl/types/optional.h" #include "api/test/pclf/media_configuration.h" #include "api/test/video/video_frame_writer.h" -#include "rtc_base/gunit.h" +#include "api/video/video_frame.h" #include "test/gmock.h" +#include "test/gtest.h" #include "test/testsupport/file_utils.h" namespace webrtc { diff --git a/api/test/simulated_network.h b/api/test/simulated_network.h index 581540e54c..618fe7184d 100644 --- a/api/test/simulated_network.h +++ b/api/test/simulated_network.h @@ -14,13 +14,12 @@ #include #include +#include #include #include "absl/functional/any_invocable.h" #include "absl/types/optional.h" #include "api/units/data_rate.h" -#include "rtc_base/random.h" -#include "rtc_base/thread_annotations.h" namespace webrtc { diff --git a/api/test/stats_observer_interface.h b/api/test/stats_observer_interface.h index 58d8f52d77..364e2013b2 100644 --- a/api/test/stats_observer_interface.h +++ b/api/test/stats_observer_interface.h @@ -12,6 +12,7 @@ #define API_TEST_STATS_OBSERVER_INTERFACE_H_ #include "absl/strings/string_view.h" +#include "api/scoped_refptr.h" #include "api/stats/rtc_stats_report.h" namespace webrtc { diff --git a/api/test/test_dependency_factory.cc b/api/test/test_dependency_factory.cc index 41ad70cc3f..983213ecd4 100644 --- a/api/test/test_dependency_factory.cc +++ b/api/test/test_dependency_factory.cc @@ -13,6 +13,7 @@ #include #include +#include "api/test/video_quality_test_fixture.h" #include "rtc_base/checks.h" #include "rtc_base/platform_thread_types.h" diff --git a/api/test/time_controller.cc b/api/test/time_controller.cc index 364dbc235d..627777bc24 100644 --- a/api/test/time_controller.cc +++ b/api/test/time_controller.cc @@ -9,6 +9,14 @@ */ #include "api/test/time_controller.h" +#include +#include + +#include "absl/strings/string_view.h" +#include "api/task_queue/task_queue_base.h" +#include "api/task_queue/task_queue_factory.h" +#include "api/units/time_delta.h" + namespace webrtc { std::unique_ptr TimeController::CreateTaskQueueFactory() { class FactoryWrapper final : public TaskQueueFactory { diff --git a/api/test/time_controller.h b/api/test/time_controller.h index 121f65cea9..c2b20e2e64 100644 --- a/api/test/time_controller.h +++ b/api/test/time_controller.h @@ -17,7 +17,7 @@ #include "api/task_queue/task_queue_factory.h" #include "api/units/time_delta.h" #include "api/units/timestamp.h" -#include "rtc_base/synchronization/yield_policy.h" +#include "rtc_base/socket_server.h" #include "rtc_base/thread.h" #include "system_wrappers/include/clock.h" diff --git a/api/test/video_quality_analyzer_interface.h b/api/test/video_quality_analyzer_interface.h index 1127898a25..6e69edef34 100644 --- a/api/test/video_quality_analyzer_interface.h +++ b/api/test/video_quality_analyzer_interface.h @@ -11,12 +11,14 @@ #ifndef API_TEST_VIDEO_QUALITY_ANALYZER_INTERFACE_H_ #define API_TEST_VIDEO_QUALITY_ANALYZER_INTERFACE_H_ -#include +#include #include #include "absl/strings/string_view.h" #include "absl/types/optional.h" #include "api/array_view.h" +#include "api/scoped_refptr.h" +#include "api/stats/rtc_stats_report.h" #include "api/test/stats_observer_interface.h" #include "api/video/encoded_image.h" #include "api/video/video_frame.h" diff --git a/api/test/video_quality_test_fixture.h b/api/test/video_quality_test_fixture.h index cbe547b60d..0302e8952f 100644 --- a/api/test/video_quality_test_fixture.h +++ b/api/test/video_quality_test_fixture.h @@ -11,18 +11,23 @@ #ifndef API_TEST_VIDEO_QUALITY_TEST_FIXTURE_H_ #define API_TEST_VIDEO_QUALITY_TEST_FIXTURE_H_ +#include +#include #include #include #include #include +#include "absl/types/optional.h" #include "api/fec_controller.h" #include "api/media_types.h" #include "api/network_state_predictor.h" +#include "api/rtp_parameters.h" #include "api/test/simulated_network.h" #include "api/transport/bitrate_settings.h" #include "api/transport/network_control.h" -#include "api/video_codecs/sdp_video_format.h" +#include "api/video_codecs/spatial_layer.h" +#include "api/video_codecs/video_codec.h" #include "api/video_codecs/video_decoder_factory.h" #include "api/video_codecs/video_encoder_factory.h" #include "video/config/video_encoder_config.h" diff --git a/api/test/videocodec_test_fixture.h b/api/test/videocodec_test_fixture.h index 8e66f72b91..dd39c4fea6 100644 --- a/api/test/videocodec_test_fixture.h +++ b/api/test/videocodec_test_fixture.h @@ -11,14 +11,18 @@ #ifndef API_TEST_VIDEOCODEC_TEST_FIXTURE_H_ #define API_TEST_VIDEOCODEC_TEST_FIXTURE_H_ +#include #include #include +#include "absl/types/optional.h" #include "api/test/videocodec_test_stats.h" +#include "api/video/encoded_image.h" +#include "api/video/video_codec_type.h" #include "api/video_codecs/h264_profile_level_id.h" -#include "api/video_codecs/video_decoder_factory.h" -#include "api/video_codecs/video_encoder_factory.h" -#include "modules/video_coding/include/video_codec_interface.h" +#include "api/video_codecs/sdp_video_format.h" +#include "api/video_codecs/video_codec.h" +#include "modules/video_coding/codecs/h264/include/h264_globals.h" namespace webrtc { namespace test { diff --git a/api/test/videocodec_test_stats.cc b/api/test/videocodec_test_stats.cc index f082b1e935..d71ebd231f 100644 --- a/api/test/videocodec_test_stats.cc +++ b/api/test/videocodec_test_stats.cc @@ -10,6 +10,10 @@ #include "api/test/videocodec_test_stats.h" +#include +#include +#include + #include "rtc_base/strings/string_builder.h" namespace webrtc { diff --git a/api/test/videocodec_test_stats.h b/api/test/videocodec_test_stats.h index d620d31f12..3ce91ce451 100644 --- a/api/test/videocodec_test_stats.h +++ b/api/test/videocodec_test_stats.h @@ -18,7 +18,6 @@ #include #include -#include "absl/types/optional.h" #include "api/units/data_rate.h" #include "api/units/frequency.h" #include "api/video/video_frame_type.h" diff --git a/modules/video_coding/BUILD.gn b/modules/video_coding/BUILD.gn index 7b8ac7c4c9..2e6b1c3242 100644 --- a/modules/video_coding/BUILD.gn +++ b/modules/video_coding/BUILD.gn @@ -954,6 +954,7 @@ if (rtc_include_tests) { "../../rtc_base:stringutils", "../../test:test_common", "../rtp_rtcp:rtp_rtcp_format", + "//third_party/abseil-cpp/absl/types:optional", ] } diff --git a/modules/video_coding/codecs/test/videocodec_test_stats_impl.h b/modules/video_coding/codecs/test/videocodec_test_stats_impl.h index 1a7980aa0a..4212cfaa63 100644 --- a/modules/video_coding/codecs/test/videocodec_test_stats_impl.h +++ b/modules/video_coding/codecs/test/videocodec_test_stats_impl.h @@ -17,6 +17,7 @@ #include #include +#include "absl/types/optional.h" #include "api/test/videocodec_test_stats.h" // NOLINT(build/include) namespace webrtc { diff --git a/net/dcsctp/socket/BUILD.gn b/net/dcsctp/socket/BUILD.gn index 7810419c5b..56c790705d 100644 --- a/net/dcsctp/socket/BUILD.gn +++ b/net/dcsctp/socket/BUILD.gn @@ -228,6 +228,7 @@ if (rtc_include_tests) { "../../../rtc_base:copy_on_write_buffer", "../../../rtc_base:gunit_helpers", "../../../rtc_base:logging", + "../../../rtc_base:random", "../../../rtc_base:rtc_base_tests_utils", "../../../rtc_base:socket_address", "../../../rtc_base:stringutils", diff --git a/net/dcsctp/socket/dcsctp_socket_network_test.cc b/net/dcsctp/socket/dcsctp_socket_network_test.cc index 0f41efbcff..f497cfa75c 100644 --- a/net/dcsctp/socket/dcsctp_socket_network_test.cc +++ b/net/dcsctp/socket/dcsctp_socket_network_test.cc @@ -33,6 +33,7 @@ #include "rtc_base/copy_on_write_buffer.h" #include "rtc_base/gunit.h" #include "rtc_base/logging.h" +#include "rtc_base/random.h" #include "rtc_base/socket_address.h" #include "rtc_base/strings/string_format.h" #include "rtc_base/time_utils.h" diff --git a/pc/BUILD.gn b/pc/BUILD.gn index 61cb0f3854..fe9bb652f9 100644 --- a/pc/BUILD.gn +++ b/pc/BUILD.gn @@ -2819,6 +2819,7 @@ if (rtc_include_tests && !build_with_chromium) { "../api/test/pclf:media_quality_test_params", "../api/test/pclf:peer_configurer", "../api/video_codecs:video_codecs_api", + "../media:media_constants", "../modules/video_coding:webrtc_vp9", "../modules/video_coding/svc:scalability_mode_util", "../rtc_base/containers:flat_map", diff --git a/pc/test/svc_e2e_tests.cc b/pc/test/svc_e2e_tests.cc index 78342d456e..757e983ca0 100644 --- a/pc/test/svc_e2e_tests.cc +++ b/pc/test/svc_e2e_tests.cc @@ -27,6 +27,7 @@ #include "api/test/simulated_network.h" #include "api/test/time_controller.h" #include "api/video_codecs/vp9_profile.h" +#include "media/base/media_constants.h" #include "modules/video_coding/codecs/vp9/include/vp9.h" #include "modules/video_coding/svc/scalability_mode_util.h" #include "rtc_base/containers/flat_map.h" diff --git a/test/pc/e2e/BUILD.gn b/test/pc/e2e/BUILD.gn index 3d9d5bd286..f9d1f479a2 100644 --- a/test/pc/e2e/BUILD.gn +++ b/test/pc/e2e/BUILD.gn @@ -304,6 +304,7 @@ if (!build_with_chromium) { "../../../api/test/pclf:peer_configurer", "../../../api/video_codecs:builtin_video_decoder_factory", "../../../api/video_codecs:builtin_video_encoder_factory", + "../../../media:media_constants", "../../../media:rtc_audio_video", "../../../modules/audio_device:audio_device_impl", "../../../p2p:rtc_p2p", diff --git a/test/pc/e2e/peer_connection_e2e_smoke_test.cc b/test/pc/e2e/peer_connection_e2e_smoke_test.cc index 2478289913..b2374729ea 100644 --- a/test/pc/e2e/peer_connection_e2e_smoke_test.cc +++ b/test/pc/e2e/peer_connection_e2e_smoke_test.cc @@ -22,6 +22,7 @@ #include "api/test/pclf/media_quality_test_params.h" #include "api/test/pclf/peer_configurer.h" #include "api/test/peerconnection_quality_test_fixture.h" +#include "media/base/media_constants.h" #include "system_wrappers/include/field_trial.h" #include "test/field_trial.h" #include "test/gtest.h" diff --git a/video/BUILD.gn b/video/BUILD.gn index 77b453e077..aa18fd019a 100644 --- a/video/BUILD.gn +++ b/video/BUILD.gn @@ -629,6 +629,7 @@ if (rtc_include_tests) { "../api/test/pclf:media_quality_test_params", "../api/test/pclf:peer_configurer", "../api/video_codecs:video_codecs_api", + "../media:media_constants", "../modules/video_coding:webrtc_vp9", "../system_wrappers:field_trial", "../test:field_trial", diff --git a/video/pc_full_stack_tests.cc b/video/pc_full_stack_tests.cc index f1d6494670..345d090314 100644 --- a/video/pc_full_stack_tests.cc +++ b/video/pc_full_stack_tests.cc @@ -26,6 +26,7 @@ #include "api/test/simulated_network.h" #include "api/test/time_controller.h" #include "api/video_codecs/vp9_profile.h" +#include "media/base/media_constants.h" #include "modules/video_coding/codecs/vp9/include/vp9.h" #include "system_wrappers/include/field_trial.h" #include "test/field_trial.h"