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

Unified Diff: webrtc/api/audio_codecs/test/audio_encoder_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_encoder_factory_template_unittest.cc
diff --git a/webrtc/api/audio_codecs/test/audio_encoder_factory_template_unittest.cc b/webrtc/api/audio_codecs/test/audio_encoder_factory_template_unittest.cc
index 19c3071bef3d7b8a68519c83c9e9dcf440850298..58ab28ea41b466d62bee8c694bb912126c1d91cb 100644
--- a/webrtc/api/audio_codecs/test/audio_encoder_factory_template_unittest.cc
+++ b/webrtc/api/audio_codecs/test/audio_encoder_factory_template_unittest.cc
@@ -9,7 +9,6 @@
*/
#include "webrtc/api/audio_codecs/audio_encoder_factory_template.h"
-#include "webrtc/api/audio_codecs/L16/audio_encoder_L16.h"
#include "webrtc/api/audio_codecs/g711/audio_encoder_g711.h"
#include "webrtc/api/audio_codecs/g722/audio_encoder_g722.h"
#include "webrtc/api/audio_codecs/ilbc/audio_encoder_ilbc.h"
@@ -171,27 +170,6 @@
EXPECT_EQ(8000, enc->SampleRateHz());
}
-TEST(AudioEncoderFactoryTemplateTest, L16) {
- auto factory = CreateAudioEncoderFactory<AudioEncoderL16>();
- EXPECT_THAT(
- factory->GetSupportedEncoders(),
- 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_EQ(rtc::Optional<AudioCodecInfo>(),
- factory->QueryAudioEncoder({"L16", 8000, 0}));
- EXPECT_EQ(rtc::Optional<AudioCodecInfo>({48000, 1, 48000 * 16}),
- factory->QueryAudioEncoder({"L16", 48000, 1}));
- EXPECT_EQ(nullptr, factory->MakeAudioEncoder(17, {"L16", 8000, 0}));
- auto enc = factory->MakeAudioEncoder(17, {"L16", 48000, 2});
- ASSERT_NE(nullptr, enc);
- EXPECT_EQ(48000, enc->SampleRateHz());
-}
-
TEST(AudioEncoderFactoryTemplateTest, Opus) {
auto factory = CreateAudioEncoderFactory<AudioEncoderOpus>();
AudioCodecInfo info = {48000, 1, 32000, 6000, 510000};
« no previous file with comments | « webrtc/api/audio_codecs/test/audio_decoder_factory_template_unittest.cc ('k') | webrtc/modules/audio_coding/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698