diff --git a/api/BUILD.gn b/api/BUILD.gn index c7bbff0c42..1235896c34 100644 --- a/api/BUILD.gn +++ b/api/BUILD.gn @@ -158,6 +158,7 @@ rtc_library("candidate") { rtc_source_set("turn_customizer") { visibility = [ "*" ] sources = [ "turn_customizer.h" ] + deps = [ "transport:stun_types" ] } rtc_source_set("ice_transport_interface") { diff --git a/api/DEPS b/api/DEPS index 0e7467e1b8..62e04860e2 100644 --- a/api/DEPS +++ b/api/DEPS @@ -307,6 +307,10 @@ specific_include_rules = { "+rtc_base/containers/flat_map.h", ], + "video_track_source_proxy_factory.h": [ + "+rtc_base/thread.h", + ], + # .cc files in api/ should not be restricted in what they can #include, # so we re-add all the top-level directories here. (That's because .h # files leak their #includes to whoever's #including them, but .cc files diff --git a/api/audio_codecs/g722/BUILD.gn b/api/audio_codecs/g722/BUILD.gn index d78ee75984..af13ac3de3 100644 --- a/api/audio_codecs/g722/BUILD.gn +++ b/api/audio_codecs/g722/BUILD.gn @@ -15,6 +15,7 @@ if (is_android) { rtc_source_set("audio_encoder_g722_config") { visibility = [ "*" ] sources = [ "audio_encoder_g722_config.h" ] + deps = [ "..:audio_codecs_api" ] } rtc_library("audio_encoder_g722") { diff --git a/api/audio_codecs/g722/audio_encoder_g722_config.h b/api/audio_codecs/g722/audio_encoder_g722_config.h index f85eef00a8..f3f3a9f016 100644 --- a/api/audio_codecs/g722/audio_encoder_g722_config.h +++ b/api/audio_codecs/g722/audio_encoder_g722_config.h @@ -11,6 +11,8 @@ #ifndef API_AUDIO_CODECS_G722_AUDIO_ENCODER_G722_CONFIG_H_ #define API_AUDIO_CODECS_G722_AUDIO_ENCODER_G722_CONFIG_H_ +#include "api/audio_codecs/audio_encoder.h" + namespace webrtc { struct AudioEncoderG722Config { diff --git a/api/audio_codecs/opus/BUILD.gn b/api/audio_codecs/opus/BUILD.gn index 2091cbd000..eb90a0b9ac 100644 --- a/api/audio_codecs/opus/BUILD.gn +++ b/api/audio_codecs/opus/BUILD.gn @@ -20,9 +20,7 @@ rtc_library("audio_encoder_opus_config") { "audio_encoder_opus_config.cc", "audio_encoder_opus_config.h", ] - deps = [ - "../../../rtc_base/system:rtc_export", - ] + deps = [ "../../../rtc_base/system:rtc_export" ] absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ] defines = [] if (rtc_opus_variable_complexity) { @@ -35,6 +33,7 @@ rtc_library("audio_encoder_opus_config") { rtc_source_set("audio_decoder_opus_config") { visibility = [ "*" ] sources = [ "audio_decoder_multi_channel_opus_config.h" ] + deps = [ "..:audio_codecs_api" ] } rtc_library("audio_encoder_opus") { diff --git a/api/audio_codecs/opus/audio_decoder_multi_channel_opus_config.h b/api/audio_codecs/opus/audio_decoder_multi_channel_opus_config.h index 7350045bf5..f97c5c3193 100644 --- a/api/audio_codecs/opus/audio_decoder_multi_channel_opus_config.h +++ b/api/audio_codecs/opus/audio_decoder_multi_channel_opus_config.h @@ -13,6 +13,8 @@ #include +#include "api/audio_codecs/audio_decoder.h" + namespace webrtc { struct AudioDecoderMultiChannelOpusConfig { // The number of channels that the decoder will output. diff --git a/api/call/audio_sink.h b/api/call/audio_sink.h index 76feb13fee..fec26593a6 100644 --- a/api/call/audio_sink.h +++ b/api/call/audio_sink.h @@ -11,6 +11,7 @@ #ifndef API_CALL_AUDIO_SINK_H_ #define API_CALL_AUDIO_SINK_H_ +#include #include namespace webrtc { diff --git a/api/test/mock_video_decoder_factory.h b/api/test/mock_video_decoder_factory.h index 98a5d40eb6..6150d9f8b5 100644 --- a/api/test/mock_video_decoder_factory.h +++ b/api/test/mock_video_decoder_factory.h @@ -15,6 +15,7 @@ #include #include "api/video_codecs/sdp_video_format.h" +#include "api/video_codecs/video_decoder.h" #include "api/video_codecs/video_decoder_factory.h" #include "test/gmock.h" diff --git a/api/test/mock_video_encoder_factory.h b/api/test/mock_video_encoder_factory.h index 79851096b7..02ee7aa15e 100644 --- a/api/test/mock_video_encoder_factory.h +++ b/api/test/mock_video_encoder_factory.h @@ -15,6 +15,7 @@ #include #include "api/video_codecs/sdp_video_format.h" +#include "api/video_codecs/video_encoder.h" #include "api/video_codecs/video_encoder_factory.h" #include "test/gmock.h" diff --git a/api/test/video/function_video_decoder_factory.h b/api/test/video/function_video_decoder_factory.h index 86abdd0746..2145c71bff 100644 --- a/api/test/video/function_video_decoder_factory.h +++ b/api/test/video/function_video_decoder_factory.h @@ -17,6 +17,7 @@ #include #include "api/video_codecs/sdp_video_format.h" +#include "api/video_codecs/video_decoder.h" #include "api/video_codecs/video_decoder_factory.h" #include "rtc_base/checks.h" diff --git a/api/test/video/function_video_encoder_factory.h b/api/test/video/function_video_encoder_factory.h index 9ae9719916..98ece2bc94 100644 --- a/api/test/video/function_video_encoder_factory.h +++ b/api/test/video/function_video_encoder_factory.h @@ -17,6 +17,7 @@ #include #include "api/video_codecs/sdp_video_format.h" +#include "api/video_codecs/video_encoder.h" #include "api/video_codecs/video_encoder_factory.h" #include "rtc_base/checks.h" diff --git a/api/turn_customizer.h b/api/turn_customizer.h index 50e406516e..8d569b36d2 100644 --- a/api/turn_customizer.h +++ b/api/turn_customizer.h @@ -13,9 +13,10 @@ #include +#include "api/transport/stun.h" + namespace cricket { class PortInterface; -class StunMessage; } // namespace cricket namespace webrtc { diff --git a/api/video_codecs/BUILD.gn b/api/video_codecs/BUILD.gn index 386c46b1f9..173d49ade2 100644 --- a/api/video_codecs/BUILD.gn +++ b/api/video_codecs/BUILD.gn @@ -100,6 +100,7 @@ rtc_source_set("bitstream_parser_api") { visibility = [ "*" ] sources = [ "bitstream_parser.h" ] deps = [ "..:array_view" ] + absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ] } rtc_library("builtin_video_decoder_factory") { @@ -164,6 +165,7 @@ rtc_source_set("video_encoder_factory_template_libvpx_vp8_adapter") { public = [ "video_encoder_factory_template_libvpx_vp8_adapter.h" ] deps = [ + ":video_codecs_api", "../../modules/video_coding:webrtc_vp8", "../../modules/video_coding:webrtc_vp8_scalability", ] @@ -194,6 +196,7 @@ rtc_source_set("video_encoder_factory_template_libaom_av1_adapter") { deps = [ ":scalability_mode", + ":video_codecs_api", "../../modules/video_coding/codecs/av1:av1_svc_config", "../../modules/video_coding/codecs/av1:libaom_av1_encoder", "../../modules/video_coding/svc:scalability_mode_util", @@ -219,7 +222,10 @@ rtc_source_set("video_decoder_factory_template_libvpx_vp8_adapter") { allow_poison = [ "software_video_codecs" ] public = [ "video_decoder_factory_template_libvpx_vp8_adapter.h" ] - deps = [ "../../modules/video_coding:webrtc_vp8" ] + deps = [ + ":video_codecs_api", + "../../modules/video_coding:webrtc_vp8", + ] } rtc_source_set("video_decoder_factory_template_libvpx_vp9_adapter") { @@ -243,7 +249,10 @@ rtc_source_set("video_decoder_factory_template_dav1d_adapter") { allow_poison = [ "software_video_codecs" ] public = [ "video_decoder_factory_template_dav1d_adapter.h" ] - deps = [ "../../modules/video_coding/codecs/av1:dav1d_decoder" ] + deps = [ + ":video_codecs_api", + "../../modules/video_coding/codecs/av1:dav1d_decoder", + ] } rtc_library("vp8_temporal_layers_factory") { diff --git a/api/video_codecs/bitstream_parser.h b/api/video_codecs/bitstream_parser.h index 0d8d014d62..86ce192e49 100644 --- a/api/video_codecs/bitstream_parser.h +++ b/api/video_codecs/bitstream_parser.h @@ -10,9 +10,11 @@ #ifndef API_VIDEO_CODECS_BITSTREAM_PARSER_H_ #define API_VIDEO_CODECS_BITSTREAM_PARSER_H_ + #include #include +#include "absl/types/optional.h" #include "api/array_view.h" namespace webrtc { diff --git a/api/video_codecs/video_decoder_factory_template_dav1d_adapter.h b/api/video_codecs/video_decoder_factory_template_dav1d_adapter.h index ab90435b6f..6d80cadf83 100644 --- a/api/video_codecs/video_decoder_factory_template_dav1d_adapter.h +++ b/api/video_codecs/video_decoder_factory_template_dav1d_adapter.h @@ -14,6 +14,7 @@ #include #include +#include "api/video_codecs/sdp_video_format.h" #include "modules/video_coding/codecs/av1/dav1d_decoder.h" namespace webrtc { diff --git a/api/video_codecs/video_decoder_factory_template_libvpx_vp8_adapter.h b/api/video_codecs/video_decoder_factory_template_libvpx_vp8_adapter.h index 7042195c8f..0c45a4b622 100644 --- a/api/video_codecs/video_decoder_factory_template_libvpx_vp8_adapter.h +++ b/api/video_codecs/video_decoder_factory_template_libvpx_vp8_adapter.h @@ -14,6 +14,7 @@ #include #include +#include "api/video_codecs/sdp_video_format.h" #include "modules/video_coding/codecs/vp8/include/vp8.h" namespace webrtc { diff --git a/api/video_codecs/video_encoder_factory_template_libaom_av1_adapter.h b/api/video_codecs/video_encoder_factory_template_libaom_av1_adapter.h index ce273ffb82..417df1e192 100644 --- a/api/video_codecs/video_encoder_factory_template_libaom_av1_adapter.h +++ b/api/video_codecs/video_encoder_factory_template_libaom_av1_adapter.h @@ -15,6 +15,7 @@ #include #include "absl/container/inlined_vector.h" +#include "api/video_codecs/sdp_video_format.h" #include "modules/video_coding/codecs/av1/av1_svc_config.h" #include "modules/video_coding/codecs/av1/libaom_av1_encoder.h" diff --git a/api/video_codecs/video_encoder_factory_template_libvpx_vp8_adapter.h b/api/video_codecs/video_encoder_factory_template_libvpx_vp8_adapter.h index d7d0cd48f1..0f0a9bacd5 100644 --- a/api/video_codecs/video_encoder_factory_template_libvpx_vp8_adapter.h +++ b/api/video_codecs/video_encoder_factory_template_libvpx_vp8_adapter.h @@ -15,6 +15,7 @@ #include #include "absl/container/inlined_vector.h" +#include "api/video_codecs/sdp_video_format.h" #include "modules/video_coding/codecs/vp8/include/vp8.h" #include "modules/video_coding/codecs/vp8/vp8_scalability.h" diff --git a/api/video_track_source_proxy_factory.h b/api/video_track_source_proxy_factory.h index 7b161f4443..eb6e96429a 100644 --- a/api/video_track_source_proxy_factory.h +++ b/api/video_track_source_proxy_factory.h @@ -12,6 +12,7 @@ #define API_VIDEO_TRACK_SOURCE_PROXY_FACTORY_H_ #include "api/media_stream_interface.h" +#include "rtc_base/thread.h" namespace webrtc { diff --git a/audio/conversion.h b/audio/conversion.h index 920aa3a434..dd71942f6a 100644 --- a/audio/conversion.h +++ b/audio/conversion.h @@ -11,6 +11,9 @@ #ifndef AUDIO_CONVERSION_H_ #define AUDIO_CONVERSION_H_ +#include +#include + namespace webrtc { // Convert fixed point number with 8 bit fractional part, to floating point. diff --git a/common_audio/signal_processing/include/spl_inl.h b/common_audio/signal_processing/include/spl_inl.h index 656a3125bb..2b0995886a 100644 --- a/common_audio/signal_processing/include/spl_inl.h +++ b/common_audio/signal_processing/include/spl_inl.h @@ -14,6 +14,8 @@ #ifndef COMMON_AUDIO_SIGNAL_PROCESSING_INCLUDE_SPL_INL_H_ #define COMMON_AUDIO_SIGNAL_PROCESSING_INCLUDE_SPL_INL_H_ +#include + #include "rtc_base/compile_assert_c.h" extern const int8_t kWebRtcSpl_CountLeadingZeros32_Table[64]; diff --git a/common_audio/signal_processing/include/spl_inl_armv7.h b/common_audio/signal_processing/include/spl_inl_armv7.h index 930e91e2b3..6fc3e7c1b8 100644 --- a/common_audio/signal_processing/include/spl_inl_armv7.h +++ b/common_audio/signal_processing/include/spl_inl_armv7.h @@ -15,6 +15,8 @@ #ifndef COMMON_AUDIO_SIGNAL_PROCESSING_INCLUDE_SPL_INL_ARMV7_H_ #define COMMON_AUDIO_SIGNAL_PROCESSING_INCLUDE_SPL_INL_ARMV7_H_ +#include + /* TODO(kma): Replace some assembly code with GCC intrinsics * (e.g. __builtin_clz). */ diff --git a/common_video/frame_counts.h b/common_video/frame_counts.h index 663fda4a2f..505d3129ef 100644 --- a/common_video/frame_counts.h +++ b/common_video/frame_counts.h @@ -11,6 +11,8 @@ #ifndef COMMON_VIDEO_FRAME_COUNTS_H_ #define COMMON_VIDEO_FRAME_COUNTS_H_ +#include + namespace webrtc { struct FrameCounts { diff --git a/modules/audio_coding/codecs/g711/g711_interface.h b/modules/audio_coding/codecs/g711/g711_interface.h index 83f9d378ed..c92e6cc1c8 100644 --- a/modules/audio_coding/codecs/g711/g711_interface.h +++ b/modules/audio_coding/codecs/g711/g711_interface.h @@ -11,6 +11,7 @@ #ifndef MODULES_AUDIO_CODING_CODECS_G711_G711_INTERFACE_H_ #define MODULES_AUDIO_CODING_CODECS_G711_G711_INTERFACE_H_ +#include #include // Comfort noise constants diff --git a/modules/audio_coding/codecs/g722/g722_interface.h b/modules/audio_coding/codecs/g722/g722_interface.h index 85c1cd02a0..353de4504f 100644 --- a/modules/audio_coding/codecs/g722/g722_interface.h +++ b/modules/audio_coding/codecs/g722/g722_interface.h @@ -11,6 +11,7 @@ #ifndef MODULES_AUDIO_CODING_CODECS_G722_G722_INTERFACE_H_ #define MODULES_AUDIO_CODING_CODECS_G722_G722_INTERFACE_H_ +#include #include /* diff --git a/modules/audio_coding/codecs/isac/audio_decoder_isac_t_impl.h b/modules/audio_coding/codecs/isac/audio_decoder_isac_t_impl.h index 2e43fd317f..9aa498866b 100644 --- a/modules/audio_coding/codecs/isac/audio_decoder_isac_t_impl.h +++ b/modules/audio_coding/codecs/isac/audio_decoder_isac_t_impl.h @@ -11,6 +11,7 @@ #ifndef MODULES_AUDIO_CODING_CODECS_ISAC_AUDIO_DECODER_ISAC_T_IMPL_H_ #define MODULES_AUDIO_CODING_CODECS_ISAC_AUDIO_DECODER_ISAC_T_IMPL_H_ +#include "modules/audio_coding/codecs/isac/audio_decoder_isac_t.h" #include "rtc_base/checks.h" namespace webrtc { diff --git a/modules/audio_coding/codecs/isac/audio_encoder_isac_t_impl.h b/modules/audio_coding/codecs/isac/audio_encoder_isac_t_impl.h index fa84515204..1bd27cf80d 100644 --- a/modules/audio_coding/codecs/isac/audio_encoder_isac_t_impl.h +++ b/modules/audio_coding/codecs/isac/audio_encoder_isac_t_impl.h @@ -11,6 +11,7 @@ #ifndef MODULES_AUDIO_CODING_CODECS_ISAC_AUDIO_ENCODER_ISAC_T_IMPL_H_ #define MODULES_AUDIO_CODING_CODECS_ISAC_AUDIO_ENCODER_ISAC_T_IMPL_H_ +#include "modules/audio_coding/codecs/isac/audio_encoder_isac_t.h" #include "rtc_base/checks.h" #include "rtc_base/numerics/safe_minmax.h" diff --git a/modules/audio_coding/codecs/isac/fix/source/lpc_tables.h b/modules/audio_coding/codecs/isac/fix/source/lpc_tables.h index 6965822952..50e1b12459 100644 --- a/modules/audio_coding/codecs/isac/fix/source/lpc_tables.h +++ b/modules/audio_coding/codecs/isac/fix/source/lpc_tables.h @@ -20,6 +20,8 @@ #include +#include "modules/audio_coding/codecs/isac/fix/source/settings.h" + /* indices of KLT coefficients used */ extern const uint16_t WebRtcIsacfix_kSelIndGain[12]; diff --git a/modules/audio_coding/codecs/isac/main/source/filter_functions.h b/modules/audio_coding/codecs/isac/main/source/filter_functions.h index 48a9b7426b..a747a7f549 100644 --- a/modules/audio_coding/codecs/isac/main/source/filter_functions.h +++ b/modules/audio_coding/codecs/isac/main/source/filter_functions.h @@ -11,6 +11,8 @@ #ifndef MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_FILTER_FUNCTIONS_H_ #define MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_FILTER_FUNCTIONS_H_ +#include + #include "modules/audio_coding/codecs/isac/main/source/structs.h" void WebRtcIsac_AutoCorr(double* r, const double* x, size_t N, size_t order); diff --git a/modules/audio_processing/aec3/delay_estimate.h b/modules/audio_processing/aec3/delay_estimate.h index ea5dd27153..7838a0c255 100644 --- a/modules/audio_processing/aec3/delay_estimate.h +++ b/modules/audio_processing/aec3/delay_estimate.h @@ -11,6 +11,8 @@ #ifndef MODULES_AUDIO_PROCESSING_AEC3_DELAY_ESTIMATE_H_ #define MODULES_AUDIO_PROCESSING_AEC3_DELAY_ESTIMATE_H_ +#include + namespace webrtc { // Stores delay_estimates. diff --git a/modules/audio_processing/agc/legacy/gain_control.h b/modules/audio_processing/agc/legacy/gain_control.h index abb8e63228..6010a988fa 100644 --- a/modules/audio_processing/agc/legacy/gain_control.h +++ b/modules/audio_processing/agc/legacy/gain_control.h @@ -11,6 +11,9 @@ #ifndef MODULES_AUDIO_PROCESSING_AGC_LEGACY_GAIN_CONTROL_H_ #define MODULES_AUDIO_PROCESSING_AGC_LEGACY_GAIN_CONTROL_H_ +#include +#include + namespace webrtc { enum { diff --git a/modules/audio_processing/vad/vad_audio_proc_internal.h b/modules/audio_processing/vad/vad_audio_proc_internal.h index 915524f474..93589affe8 100644 --- a/modules/audio_processing/vad/vad_audio_proc_internal.h +++ b/modules/audio_processing/vad/vad_audio_proc_internal.h @@ -11,6 +11,8 @@ #ifndef MODULES_AUDIO_PROCESSING_VAD_VAD_AUDIO_PROC_INTERNAL_H_ #define MODULES_AUDIO_PROCESSING_VAD_VAD_AUDIO_PROC_INTERNAL_H_ +#include + namespace webrtc { // These values should match MATLAB counterparts for unit-tests to pass. diff --git a/modules/third_party/g722/g722_enc_dec.h b/modules/third_party/g722/g722_enc_dec.h index 898fa279cc..47b0936d82 100644 --- a/modules/third_party/g722/g722_enc_dec.h +++ b/modules/third_party/g722/g722_enc_dec.h @@ -30,6 +30,7 @@ #ifndef MODULES_THIRD_PARTY_G722_G722_H_ #define MODULES_THIRD_PARTY_G722_G722_H_ +#include #include /*! \page g722_page G.722 encoding and decoding diff --git a/modules/video_coding/utility/ivf_defines.h b/modules/video_coding/utility/ivf_defines.h index 83d6691b87..212d381e70 100644 --- a/modules/video_coding/utility/ivf_defines.h +++ b/modules/video_coding/utility/ivf_defines.h @@ -16,6 +16,8 @@ #ifndef MODULES_VIDEO_CODING_UTILITY_IVF_DEFINES_H_ #define MODULES_VIDEO_CODING_UTILITY_IVF_DEFINES_H_ +#include + namespace webrtc { constexpr size_t kIvfHeaderSize = 32; } // namespace webrtc diff --git a/pc/BUILD.gn b/pc/BUILD.gn index f06f78c940..26a044b615 100644 --- a/pc/BUILD.gn +++ b/pc/BUILD.gn @@ -2631,6 +2631,7 @@ if (rtc_include_tests && !build_with_chromium) { ":stream_collection", ":video_track_source", "../api:audio_options_api", + "../api:call_api", "../api:create_frame_generator", "../api:create_peerconnection_factory", "../api:field_trials_view", diff --git a/pc/test/mock_voice_media_channel.h b/pc/test/mock_voice_media_channel.h index daa5b1a4a0..444ca5aed6 100644 --- a/pc/test/mock_voice_media_channel.h +++ b/pc/test/mock_voice_media_channel.h @@ -14,6 +14,7 @@ #include #include +#include "api/call/audio_sink.h" #include "media/base/media_channel.h" #include "rtc_base/gunit.h" #include "test/gmock.h" diff --git a/pc/test/rtc_stats_obtainer.h b/pc/test/rtc_stats_obtainer.h index 4da23c6628..b1cc701a06 100644 --- a/pc/test/rtc_stats_obtainer.h +++ b/pc/test/rtc_stats_obtainer.h @@ -11,6 +11,9 @@ #ifndef PC_TEST_RTC_STATS_OBTAINER_H_ #define PC_TEST_RTC_STATS_OBTAINER_H_ +#include "api/make_ref_counted.h" +#include "api/sequence_checker.h" +#include "api/stats/rtc_stats_collector_callback.h" #include "api/stats/rtc_stats_report.h" #include "rtc_base/gunit.h" diff --git a/rtc_base/ssl_roots.h b/rtc_base/ssl_roots.h index 8f869f4a9e..34a4f082b4 100644 --- a/rtc_base/ssl_roots.h +++ b/rtc_base/ssl_roots.h @@ -11,6 +11,8 @@ #ifndef RTC_BASE_SSL_ROOTS_H_ #define RTC_BASE_SSL_ROOTS_H_ +#include + // This file is the root certificates in C form that are needed to connect to // Google. diff --git a/rtc_base/system_time.h b/rtc_base/system_time.h index d86e94adf4..c0ebc2a217 100644 --- a/rtc_base/system_time.h +++ b/rtc_base/system_time.h @@ -11,6 +11,8 @@ #ifndef RTC_BASE_SYSTEM_TIME_H_ #define RTC_BASE_SYSTEM_TIME_H_ +#include + namespace rtc { // Returns the actual system time, even if a clock is set for testing. diff --git a/sdk/android/native_api/jni/jni_int_wrapper.h b/sdk/android/native_api/jni/jni_int_wrapper.h index 23da7f2ce4..2628fc685d 100644 --- a/sdk/android/native_api/jni/jni_int_wrapper.h +++ b/sdk/android/native_api/jni/jni_int_wrapper.h @@ -14,6 +14,8 @@ #ifndef SDK_ANDROID_NATIVE_API_JNI_JNI_INT_WRAPPER_H_ #define SDK_ANDROID_NATIVE_API_JNI_JNI_INT_WRAPPER_H_ +#include + // Wrapper used to receive int when calling Java from native. The wrapper // disallows automatic conversion of anything besides int32_t to a jint. // Checking is only done in debugging builds. diff --git a/sdk/objc/native/src/audio/helpers.h b/sdk/objc/native/src/audio/helpers.h index ac86258a5e..12464ac897 100644 --- a/sdk/objc/native/src/audio/helpers.h +++ b/sdk/objc/native/src/audio/helpers.h @@ -11,6 +11,9 @@ #ifndef SDK_OBJC_NATIVE_SRC_AUDIO_HELPERS_H_ #define SDK_OBJC_NATIVE_SRC_AUDIO_HELPERS_H_ +#import +#include + #include namespace webrtc { diff --git a/test/mock_audio_encoder_factory.h b/test/mock_audio_encoder_factory.h index 9a0279e4bf..eaa5b8f17d 100644 --- a/test/mock_audio_encoder_factory.h +++ b/test/mock_audio_encoder_factory.h @@ -15,6 +15,7 @@ #include #include "api/audio_codecs/audio_encoder_factory.h" +#include "api/make_ref_counted.h" #include "api/scoped_refptr.h" #include "test/gmock.h" diff --git a/test/pc/sctp/BUILD.gn b/test/pc/sctp/BUILD.gn index b47cff2c0f..f088a5b20c 100644 --- a/test/pc/sctp/BUILD.gn +++ b/test/pc/sctp/BUILD.gn @@ -11,5 +11,8 @@ import("../../../webrtc.gni") rtc_source_set("fake_sctp_transport") { visibility = [ "*" ] sources = [ "fake_sctp_transport.h" ] - deps = [ "../../../media:rtc_data_sctp_transport_internal" ] + deps = [ + "../../../api/transport:sctp_transport_factory_interface", + "../../../media:rtc_data_sctp_transport_internal", + ] } diff --git a/test/pc/sctp/fake_sctp_transport.h b/test/pc/sctp/fake_sctp_transport.h index 94272346f9..a1bb0e219c 100644 --- a/test/pc/sctp/fake_sctp_transport.h +++ b/test/pc/sctp/fake_sctp_transport.h @@ -13,6 +13,7 @@ #include +#include "api/transport/sctp_transport_factory_interface.h" #include "media/sctp/sctp_transport_internal.h" // Used for tests in this file to verify that PeerConnection responds to signals diff --git a/test/testsupport/mock/mock_frame_reader.h b/test/testsupport/mock/mock_frame_reader.h index bda6b1ad2d..dbb246cfc8 100644 --- a/test/testsupport/mock/mock_frame_reader.h +++ b/test/testsupport/mock/mock_frame_reader.h @@ -11,6 +11,7 @@ #ifndef TEST_TESTSUPPORT_MOCK_MOCK_FRAME_READER_H_ #define TEST_TESTSUPPORT_MOCK_MOCK_FRAME_READER_H_ +#include "api/video/i420_buffer.h" #include "test/gmock.h" #include "test/testsupport/frame_reader.h"