Index: webrtc/api/webrtcsession_unittest.cc |
diff --git a/webrtc/api/webrtcsession_unittest.cc b/webrtc/api/webrtcsession_unittest.cc |
index fe3468820e9124c20cb297d47c14f2add24ac1d4..6f0b45cc5d57eb4f9699775399ec2b0a388459ea 100644 |
--- a/webrtc/api/webrtcsession_unittest.cc |
+++ b/webrtc/api/webrtcsession_unittest.cc |
@@ -3039,9 +3039,8 @@ TEST_F(WebRtcSessionTest, TestIgnoreCandidatesForUnusedTransportWhenBundling) { |
// Checks if one of the transport channels contains a connection using a given |
// port. |
auto connection_with_remote_port = [this, voice_channel](int port) { |
- SessionStats stats; |
- session_->GetChannelTransportStats(voice_channel, &stats); |
- for (auto& kv : stats.transport_stats) { |
+ std::unique_ptr<webrtc::SessionStats> stats = session_->GetStats(); |
+ for (auto& kv : stats->transport_stats) { |
for (auto& chan_stat : kv.second.channel_stats) { |
for (auto& conn_info : chan_stat.connection_infos) { |
if (conn_info.remote_candidate.address().port() == port) { |