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

Unified Diff: webrtc/modules/audio_coding/neteq/audio_decoder_unittest.cc

Issue 2934833002: G722 implementation of the AudioEncoderFactoryTemplate API (Closed)
Patch Set: rebase Created 3 years, 6 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_coding/codecs/g722/audio_encoder_g722.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_coding/neteq/audio_decoder_unittest.cc
diff --git a/webrtc/modules/audio_coding/neteq/audio_decoder_unittest.cc b/webrtc/modules/audio_coding/neteq/audio_decoder_unittest.cc
index b1a07edf1478622645c03225cbb8ad165d5acfa5..8dcb41621748e72fd3a0664185f5fa5ac32613ab 100644
--- a/webrtc/modules/audio_coding/neteq/audio_decoder_unittest.cc
+++ b/webrtc/modules/audio_coding/neteq/audio_decoder_unittest.cc
@@ -404,11 +404,10 @@ class AudioDecoderG722Test : public AudioDecoderTest {
data_length_ = 10 * frame_size_;
decoder_ = new AudioDecoderG722Impl;
assert(decoder_);
- AudioEncoderG722::Config config;
+ AudioEncoderG722Config config;
config.frame_size_ms = 10;
- config.payload_type = payload_type_;
config.num_channels = 1;
- audio_encoder_.reset(new AudioEncoderG722(config));
+ audio_encoder_.reset(new AudioEncoderG722Impl(config, payload_type_));
}
};
@@ -421,11 +420,10 @@ class AudioDecoderG722StereoTest : public AudioDecoderTest {
data_length_ = 10 * frame_size_;
decoder_ = new AudioDecoderG722Stereo;
assert(decoder_);
- AudioEncoderG722::Config config;
+ AudioEncoderG722Config config;
config.frame_size_ms = 10;
- config.payload_type = payload_type_;
config.num_channels = 2;
- audio_encoder_.reset(new AudioEncoderG722(config));
+ audio_encoder_.reset(new AudioEncoderG722Impl(config, payload_type_));
}
};
« no previous file with comments | « webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698