aboutsummaryrefslogtreecommitdiff
path: root/webrtc/voice_engine/test/auto_test
diff options
context:
space:
mode:
authorkwiberg <kwiberg@webrtc.org>2015-12-16 06:24:05 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-16 14:24:09 +0000
commit44307630d3ad6dcdd7b7fd07e78881b50a92ced4 (patch)
tree5e4eb5f5a2eb3766fdfac9accc5b8387115976e3 /webrtc/voice_engine/test/auto_test
parent99b1a32146fcc63e52fd45484958d7c8c4cf0061 (diff)
downloadwebrtc-44307630d3ad6dcdd7b7fd07e78881b50a92ced4.tar.gz
AudioCodingModuleImpl: Stop failing artificially for non-Opus encoders
All encoders already handle the "Opus-specific" requests sanely (by failing nicely), so we don't need extra checks to protect them. BUG=webrtc:5028 Review URL: https://codereview.webrtc.org/1527453005 Cr-Commit-Position: refs/heads/master@{#11051}
Diffstat (limited to 'webrtc/voice_engine/test/auto_test')
-rw-r--r--webrtc/voice_engine/test/auto_test/standard/codec_test.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/webrtc/voice_engine/test/auto_test/standard/codec_test.cc b/webrtc/voice_engine/test/auto_test/standard/codec_test.cc
index eeb12aba04..5ab6d58c1d 100644
--- a/webrtc/voice_engine/test/auto_test/standard/codec_test.cc
+++ b/webrtc/voice_engine/test/auto_test/standard/codec_test.cc
@@ -153,17 +153,6 @@ TEST_F(CodecTest, OpusMaxPlaybackRateCanBeSet) {
}
}
-TEST_F(CodecTest, OpusMaxPlaybackRateCannotBeSetForNonOpus) {
- for (int i = 0; i < voe_codec_->NumOfCodecs(); ++i) {
- voe_codec_->GetCodec(i, codec_instance_);
- if (!_stricmp("opus", codec_instance_.plname)) {
- continue;
- }
- voe_codec_->SetSendCodec(channel_, codec_instance_);
- EXPECT_EQ(-1, voe_codec_->SetOpusMaxPlaybackRate(channel_, 16000));
- }
-}
-
TEST_F(CodecTest, OpusDtxCanBeSetForOpus) {
for (int i = 0; i < voe_codec_->NumOfCodecs(); ++i) {
voe_codec_->GetCodec(i, codec_instance_);
@@ -183,7 +172,6 @@ TEST_F(CodecTest, OpusDtxCannotBeSetForNonOpus) {
continue;
}
voe_codec_->SetSendCodec(channel_, codec_instance_);
- EXPECT_EQ(-1, voe_codec_->SetOpusDtx(channel_, false));
EXPECT_EQ(-1, voe_codec_->SetOpusDtx(channel_, true));
}
}