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

Unified Diff: webrtc/modules/audio_processing/audio_processing_impl_unittest.cc

Issue 1766233003: Drop the restriction on same forward and reverse sample rate on the AudioFrame interface of the APM (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 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/modules/audio_processing/audio_processing_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_processing/audio_processing_impl_unittest.cc
diff --git a/webrtc/modules/audio_processing/audio_processing_impl_unittest.cc b/webrtc/modules/audio_processing/audio_processing_impl_unittest.cc
index ed20daaa61ed27ceb2677fde95eecd4a5805b093..965e7eb60b72807e41c7161c589329472115a98c 100644
--- a/webrtc/modules/audio_processing/audio_processing_impl_unittest.cc
+++ b/webrtc/modules/audio_processing/audio_processing_impl_unittest.cc
@@ -65,12 +65,10 @@ TEST(AudioProcessingImplTest, AudioParameterChangeTriggersInit) {
frame.num_channels_ = 2;
EXPECT_NOERR(mock.AnalyzeReverseStream(&frame));
- // A new sample rate passed to AnalyzeReverseStream should be an error and
- // not cause an init.
+ // A new sample rate passed to AnalyzeReverseStream should cause an init.
SetFrameSampleRate(&frame, 16000);
- EXPECT_CALL(mock, InitializeLocked())
- .Times(0);
- EXPECT_EQ(mock.kBadSampleRateError, mock.AnalyzeReverseStream(&frame));
+ EXPECT_CALL(mock, InitializeLocked()).Times(1);
+ EXPECT_NOERR(mock.AnalyzeReverseStream(&frame));
}
} // namespace webrtc
« no previous file with comments | « webrtc/modules/audio_processing/audio_processing_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698