Apply include-cleaner to api/transport

Bug: webrtc:42226242
Change-Id: I41fe8dcb2f68b1f05c70058fee527f4cae67c51b
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/358502
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Dor Hen <dorhen@meta.com>
Cr-Commit-Position: refs/heads/main@{#42742}
This commit is contained in:
Dor Hen 2024-08-06 10:30:18 +03:00 committed by WebRTC LUCI CQ
parent c7e2568457
commit ec5a968070
14 changed files with 50 additions and 5 deletions

View File

@ -46,6 +46,7 @@ rtc_library("network_control") {
deps = [
"../../api:field_trials_view",
"../../rtc_base/system:rtc_export",
"../environment",
"../rtc_event_log",
"../units:data_rate",
@ -135,6 +136,10 @@ if (rtc_include_tests) {
deps = [
":network_control",
"..:simulated_network_api",
"../units:data_rate",
"../units:data_size",
"../units:time_delta",
"../units:timestamp",
]
}
rtc_library("test_feedback_generator") {
@ -159,8 +164,10 @@ if (rtc_include_tests) {
sources = [ "stun_unittest.cc" ]
deps = [
":stun_types",
"..:array_view",
"../../rtc_base:byte_buffer",
"../../rtc_base:byte_order",
"../../rtc_base:ip_address",
"../../rtc_base:macromagic",
"../../rtc_base:socket_address",
"../../system_wrappers:metrics",

View File

@ -11,7 +11,6 @@
#ifndef API_TRANSPORT_BITRATE_SETTINGS_H_
#define API_TRANSPORT_BITRATE_SETTINGS_H_
#include <algorithm>
#include "absl/types/optional.h"
#include "rtc_base/system/rtc_export.h"

View File

@ -12,6 +12,8 @@
#ifndef API_TRANSPORT_DATA_CHANNEL_TRANSPORT_INTERFACE_H_
#define API_TRANSPORT_DATA_CHANNEL_TRANSPORT_INTERFACE_H_
#include <cstddef>
#include "absl/types/optional.h"
#include "api/priority.h"
#include "api/rtc_error.h"

View File

@ -9,6 +9,9 @@
*/
#include "api/transport/field_trial_based_config.h"
#include <string>
#include "absl/strings/string_view.h"
#include "system_wrappers/include/field_trial.h"
namespace webrtc {

View File

@ -10,9 +10,11 @@
#include "api/transport/goog_cc_factory.h"
#include <cstdint>
#include <memory>
#include <utility>
#include "api/transport/network_control.h"
#include "api/units/time_delta.h"
#include "modules/congestion_controller/goog_cc/goog_cc_network_control.h"

View File

@ -10,15 +10,16 @@
#ifndef API_TRANSPORT_NETWORK_CONTROL_H_
#define API_TRANSPORT_NETWORK_CONTROL_H_
#include <stdint.h>
#include <memory>
#include "absl/base/attributes.h"
#include "absl/types/optional.h"
#include "api/environment/environment.h"
#include "api/field_trials_view.h"
#include "api/rtc_event_log/rtc_event_log.h"
#include "api/transport/network_types.h"
#include "api/units/data_rate.h"
#include "api/units/time_delta.h"
namespace webrtc {

View File

@ -11,6 +11,7 @@
#include "api/transport/network_types.h"
#include <algorithm>
#include <vector>
namespace webrtc {
StreamsConfig::StreamsConfig() = default;

View File

@ -12,6 +12,7 @@
#define API_TRANSPORT_NETWORK_TYPES_H_
#include <stdint.h>
#include <cmath>
#include <vector>
#include "absl/types/optional.h"
@ -19,6 +20,7 @@
#include "api/units/data_size.h"
#include "api/units/time_delta.h"
#include "api/units/timestamp.h"
#include "rtc_base/system/rtc_export.h"
namespace webrtc {

View File

@ -17,7 +17,6 @@
#include "api/rtp_headers.h"
#include "api/units/time_delta.h"
#include "api/units/timestamp.h"
#include "rtc_base/checks.h"
namespace webrtc {

View File

@ -10,20 +10,33 @@
#include "api/transport/stun.h"
#if defined(WEBRTC_POSIX)
#include <netinet/in.h>
#include <sys/socket.h>
#endif
#include <string.h>
#include <algorithm>
#include <algorithm> // IWYU pragma: keep
#include <cstdint>
#include <cstring>
#include <functional>
#include <iterator>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "absl/strings/string_view.h"
#include "api/array_view.h"
#include "rtc_base/byte_buffer.h"
#include "rtc_base/byte_order.h"
#include "rtc_base/checks.h"
#include "rtc_base/crc32.h"
#include "rtc_base/crypto_random.h"
#include "rtc_base/ip_address.h"
#include "rtc_base/logging.h"
#include "rtc_base/message_digest.h"
#include "rtc_base/socket_address.h"
#include "system_wrappers/include/metrics.h"
using rtc::ByteBufferReader;

View File

@ -14,6 +14,9 @@
// This file contains classes for dealing with the STUN protocol, as specified
// in RFC 5389, and its descendants.
#if defined(WEBRTC_POSIX)
#include <sys/socket.h>
#endif
#include <stddef.h>
#include <stdint.h>
@ -25,6 +28,7 @@
#include "absl/strings/string_view.h"
#include "api/array_view.h"
#include "rtc_base/byte_buffer.h"
#include "rtc_base/checks.h"
#include "rtc_base/ip_address.h"
#include "rtc_base/socket_address.h"

View File

@ -10,15 +10,21 @@
#include "api/transport/stun.h"
#if defined(WEBRTC_POSIX)
#include <netinet/in.h>
#endif
#include <string.h>
#include <cstdint>
#include <memory>
#include <string>
#include <utility>
#include "api/array_view.h"
#include "rtc_base/arraysize.h"
#include "rtc_base/byte_buffer.h"
#include "rtc_base/byte_order.h"
#include "rtc_base/ip_address.h"
#include "rtc_base/socket_address.h"
#include "system_wrappers/include/metrics.h"
#include "test/gtest.h"

View File

@ -11,6 +11,7 @@
#include <memory>
#include "api/transport/test/feedback_generator_interface.h"
#include "test/network/feedback_generator.h"
namespace webrtc {

View File

@ -10,10 +10,15 @@
#ifndef API_TRANSPORT_TEST_FEEDBACK_GENERATOR_INTERFACE_H_
#define API_TRANSPORT_TEST_FEEDBACK_GENERATOR_INTERFACE_H_
#include <cstddef>
#include <vector>
#include "api/test/simulated_network.h"
#include "api/transport/network_types.h"
#include "api/units/data_rate.h"
#include "api/units/data_size.h"
#include "api/units/time_delta.h"
#include "api/units/timestamp.h"
namespace webrtc {
class FeedbackGenerator {