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

Unified Diff: webrtc/api/audio_codecs/test/audio_decoder_factory_template_unittest.cc

Issue 2996993002: Revert of L16 implementation of the Audio{En,De}coderFactoryTemplate APIs (Closed)
Patch Set: Created 3 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/api/audio_codecs/test/audio_decoder_factory_template_unittest.cc
diff --git a/webrtc/api/audio_codecs/test/audio_decoder_factory_template_unittest.cc b/webrtc/api/audio_codecs/test/audio_decoder_factory_template_unittest.cc
index da261ac5b3a29c1ac2471b962b79293ea3873a5f..ee754d4a9b6ee9958bc35ed48b95cb132a2ac927 100644
--- a/webrtc/api/audio_codecs/test/audio_decoder_factory_template_unittest.cc
+++ b/webrtc/api/audio_codecs/test/audio_decoder_factory_template_unittest.cc
@@ -9,7 +9,6 @@
*/
#include "webrtc/api/audio_codecs/audio_decoder_factory_template.h"
-#include "webrtc/api/audio_codecs/L16/audio_decoder_L16.h"
#include "webrtc/api/audio_codecs/g711/audio_decoder_g711.h"
#include "webrtc/api/audio_codecs/g722/audio_decoder_g722.h"
#include "webrtc/api/audio_codecs/ilbc/audio_decoder_ilbc.h"
@@ -166,26 +165,6 @@
EXPECT_EQ(8000, dec->SampleRateHz());
}
-TEST(AudioDecoderFactoryTemplateTest, L16) {
- auto factory = CreateAudioDecoderFactory<AudioDecoderL16>();
- EXPECT_THAT(
- factory->GetSupportedDecoders(),
- testing::ElementsAre(
- AudioCodecSpec{{"L16", 8000, 1}, {8000, 1, 8000 * 16}},
- AudioCodecSpec{{"L16", 16000, 1}, {16000, 1, 16000 * 16}},
- AudioCodecSpec{{"L16", 32000, 1}, {32000, 1, 32000 * 16}},
- AudioCodecSpec{{"L16", 8000, 2}, {8000, 2, 8000 * 16 * 2}},
- AudioCodecSpec{{"L16", 16000, 2}, {16000, 2, 16000 * 16 * 2}},
- AudioCodecSpec{{"L16", 32000, 2}, {32000, 2, 32000 * 16 * 2}}));
- EXPECT_FALSE(factory->IsSupportedDecoder({"foo", 8000, 1}));
- EXPECT_TRUE(factory->IsSupportedDecoder({"L16", 48000, 1}));
- EXPECT_FALSE(factory->IsSupportedDecoder({"L16", 96000, 1}));
- EXPECT_EQ(nullptr, factory->MakeAudioDecoder({"L16", 8000, 0}));
- auto dec = factory->MakeAudioDecoder({"L16", 48000, 2});
- ASSERT_NE(nullptr, dec);
- EXPECT_EQ(48000, dec->SampleRateHz());
-}
-
TEST(AudioDecoderFactoryTemplateTest, Opus) {
auto factory = CreateAudioDecoderFactory<AudioDecoderOpus>();
AudioCodecInfo opus_info{48000, 1, 64000, 6000, 510000};
« no previous file with comments | « webrtc/api/audio_codecs/test/BUILD.gn ('k') | webrtc/api/audio_codecs/test/audio_encoder_factory_template_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698