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

Unified Diff: webrtc/modules/audio_coding/main/test/TwoWayCommunication.cc

Issue 1308283003: Remove no-op and unused methods from AudioCodingModule (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 4 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
Index: webrtc/modules/audio_coding/main/test/TwoWayCommunication.cc
diff --git a/webrtc/modules/audio_coding/main/test/TwoWayCommunication.cc b/webrtc/modules/audio_coding/main/test/TwoWayCommunication.cc
index 1014fc9d0abba8a1ed76598211c9d3943e8a92e8..860e7da52b2914ca824991d7cd93ff2588301e0b 100644
--- a/webrtc/modules/audio_coding/main/test/TwoWayCommunication.cc
+++ b/webrtc/modules/audio_coding/main/test/TwoWayCommunication.cc
@@ -279,8 +279,8 @@ void TwoWayCommunication::Perform() {
// In the following loop we tests that the code can handle misuse of the APIs.
// In the middle of a session with data flowing between two sides, called A
- // and B, APIs will be called, like ResetEncoder(), and the code should
- // continue to run, and be able to recover.
+ // and B, APIs will be called, and the code should continue to run, and be
+ // able to recover.
while (!_inFileA.EndOfFile() && !_inFileB.EndOfFile()) {
msecPassed += 10;
EXPECT_GT(_inFileA.Read10MsData(audioFrame), 0);
@@ -305,21 +305,14 @@ void TwoWayCommunication::Perform() {
msecPassed = 0;
secPassed++;
}
- // Call RestEncoder for ACM on side A, and InitializeSender for ACM on
- // side B.
- if (((secPassed % 5) == 4) && (msecPassed == 0)) {
- EXPECT_EQ(0, _acmA->ResetEncoder());
- }
// Re-register send codec on side B.
if (((secPassed % 5) == 4) && (msecPassed >= 990)) {
EXPECT_EQ(0, _acmB->RegisterSendCodec(codecInst_B));
EXPECT_EQ(0, _acmB->SendCodec(&dummy));
}
- // Reset decoder on side B, and initialize receiver on side A.
- if (((secPassed % 7) == 6) && (msecPassed == 0)) {
- EXPECT_EQ(0, _acmB->ResetDecoder());
+ // Initialize receiver on side A.
+ if (((secPassed % 7) == 6) && (msecPassed == 0))
EXPECT_EQ(0, _acmA->InitializeReceiver());
- }
// Re-register codec on side A.
if (((secPassed % 7) == 6) && (msecPassed >= 990)) {
EXPECT_EQ(0, _acmA->RegisterReceiveCodec(codecInst_B));
« no previous file with comments | « webrtc/modules/audio_coding/main/test/TestVADDTX.cc ('k') | webrtc/modules/audio_coding/main/test/iSACTest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698