Format p2p/base files
I ran the formatter on everything to make find leftovers, and these are
the last files.
git ls-files | grep -E '^.*\.(h|cc|mm|c|m)$' | xargs clang-format -i
No-Iwyu: Includes didn't change and it isn't related to formatting
Bug: webrtc:42225392
Change-Id: I8bbe8bd3c97b76c691e38b8ca290417202a61b6c
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/374161
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#43720}
diff --git a/p2p/base/connection.cc b/p2p/base/connection.cc
index 8afd719..b081d99 100644
--- a/p2p/base/connection.cc
+++ b/p2p/base/connection.cc
@@ -739,8 +739,7 @@
RTC_LOG(LS_ERROR) << "GOOG_DELTA consumer did not return ack!";
}
} else {
- RTC_LOG(LS_WARNING) << "Ignore GOOG_DELTA"
- << " len: " << delta->length()
+ RTC_LOG(LS_WARNING) << "Ignore GOOG_DELTA" << " len: " << delta->length()
<< " answer_goog_delta = "
<< field_trials_->answer_goog_delta
<< " goog_delta_consumer_ = "
diff --git a/p2p/base/ice_transport_internal.h b/p2p/base/ice_transport_internal.h
index 1d7bd89..851dbaf 100644
--- a/p2p/base/ice_transport_internal.h
+++ b/p2p/base/ice_transport_internal.h
@@ -400,9 +400,7 @@
}
protected:
- void SendGatheringStateEvent() {
- gathering_state_callback_list_.Send(this);
- }
+ void SendGatheringStateEvent() { gathering_state_callback_list_.Send(this); }
webrtc::CallbackList<IceTransportInternal*,
const StunDictionaryView&,
diff --git a/p2p/base/p2p_transport_channel.cc b/p2p/base/p2p_transport_channel.cc
index 1e5b0fe..63d681e 100644
--- a/p2p/base/p2p_transport_channel.cc
+++ b/p2p/base/p2p_transport_channel.cc
@@ -2230,21 +2230,21 @@
return;
}
- // Let the client know of an incoming packet
- packets_received_++;
- bytes_received_ += packet.payload().size();
- RTC_DCHECK(connection->last_data_received() >= last_data_received_ms_);
- last_data_received_ms_ =
- std::max(last_data_received_ms_, connection->last_data_received());
+ // Let the client know of an incoming packet
+ packets_received_++;
+ bytes_received_ += packet.payload().size();
+ RTC_DCHECK(connection->last_data_received() >= last_data_received_ms_);
+ last_data_received_ms_ =
+ std::max(last_data_received_ms_, connection->last_data_received());
- NotifyPacketReceived(packet);
+ NotifyPacketReceived(packet);
- // May need to switch the sending connection based on the receiving media
- // path if this is the controlled side.
- if (ice_role_ == ICEROLE_CONTROLLED && connection != selected_connection_) {
- ice_controller_->OnImmediateSwitchRequest(IceSwitchReason::DATA_RECEIVED,
- connection);
- }
+ // May need to switch the sending connection based on the receiving media
+ // path if this is the controlled side.
+ if (ice_role_ == ICEROLE_CONTROLLED && connection != selected_connection_) {
+ ice_controller_->OnImmediateSwitchRequest(IceSwitchReason::DATA_RECEIVED,
+ connection);
+ }
}
void P2PTransportChannel::OnSentPacket(const rtc::SentPacket& sent_packet) {
diff --git a/p2p/base/p2p_transport_channel_unittest.cc b/p2p/base/p2p_transport_channel_unittest.cc
index b6fc5d0..04c0641 100644
--- a/p2p/base/p2p_transport_channel_unittest.cc
+++ b/p2p/base/p2p_transport_channel_unittest.cc
@@ -1211,17 +1211,17 @@
#define P2P_TEST(x, y) P2P_TEST_DECLARATION(x, y, /* empty argument */)
-#define P2P_TEST_SET(x) \
- P2P_TEST(x, OPEN) \
- P2P_TEST(x, NAT_FULL_CONE) \
- P2P_TEST(x, NAT_ADDR_RESTRICTED) \
- P2P_TEST(x, NAT_PORT_RESTRICTED) \
- P2P_TEST(x, NAT_SYMMETRIC) \
- P2P_TEST(x, NAT_DOUBLE_CONE) \
- P2P_TEST(x, NAT_SYMMETRIC_THEN_CONE) \
- P2P_TEST(x, BLOCK_UDP) \
- P2P_TEST(x, BLOCK_UDP_AND_INCOMING_TCP) \
- P2P_TEST(x, BLOCK_ALL_BUT_OUTGOING_HTTP) \
+#define P2P_TEST_SET(x) \
+ P2P_TEST(x, OPEN) \
+ P2P_TEST(x, NAT_FULL_CONE) \
+ P2P_TEST(x, NAT_ADDR_RESTRICTED) \
+ P2P_TEST(x, NAT_PORT_RESTRICTED) \
+ P2P_TEST(x, NAT_SYMMETRIC) \
+ P2P_TEST(x, NAT_DOUBLE_CONE) \
+ P2P_TEST(x, NAT_SYMMETRIC_THEN_CONE) \
+ P2P_TEST(x, BLOCK_UDP) \
+ P2P_TEST(x, BLOCK_UDP_AND_INCOMING_TCP) \
+ P2P_TEST(x, BLOCK_ALL_BUT_OUTGOING_HTTP)
P2P_TEST_SET(OPEN)
P2P_TEST_SET(NAT_FULL_CONE)