Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Unified Diff: webrtc/logging/rtc_event_log/rtc_event_log_unittest_helper.cc

Issue 2644863002: Reland of "Log audio network adapter decisions in event log." (Closed)
Patch Set: rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/logging/rtc_event_log/rtc_event_log_unittest_helper.h ('k') | webrtc/modules/audio_coding/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/logging/rtc_event_log/rtc_event_log_unittest_helper.cc
diff --git a/webrtc/logging/rtc_event_log/rtc_event_log_unittest_helper.cc b/webrtc/logging/rtc_event_log/rtc_event_log_unittest_helper.cc
index fb60dbcc05663df040513578bb7e53aac8985d83..19ca8aa15c645a524c860fdaf73b6fc903af570f 100644
--- a/webrtc/logging/rtc_event_log/rtc_event_log_unittest_helper.cc
+++ b/webrtc/logging/rtc_event_log/rtc_event_log_unittest_helper.cc
@@ -461,6 +461,21 @@ void RtcEventLogTestHelper::VerifyBweLossEvent(
EXPECT_EQ(total_packets, parsed_total_packets);
}
+void RtcEventLogTestHelper::VerifyAudioNetworkAdaptation(
+ const ParsedRtcEventLog& parsed_log,
+ size_t index,
+ const AudioNetworkAdaptor::EncoderRuntimeConfig& config) {
+ AudioNetworkAdaptor::EncoderRuntimeConfig parsed_config;
+ parsed_log.GetAudioNetworkAdaptation(index, &parsed_config);
+ EXPECT_EQ(config.bitrate_bps, parsed_config.bitrate_bps);
+ EXPECT_EQ(config.enable_dtx, parsed_config.enable_dtx);
+ EXPECT_EQ(config.enable_fec, parsed_config.enable_fec);
+ EXPECT_EQ(config.frame_length_ms, parsed_config.frame_length_ms);
+ EXPECT_EQ(config.num_channels, parsed_config.num_channels);
+ EXPECT_EQ(config.uplink_packet_loss_fraction,
+ parsed_config.uplink_packet_loss_fraction);
+}
+
void RtcEventLogTestHelper::VerifyLogStartEvent(
const ParsedRtcEventLog& parsed_log,
size_t index) {
« no previous file with comments | « webrtc/logging/rtc_event_log/rtc_event_log_unittest_helper.h ('k') | webrtc/modules/audio_coding/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698