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

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

Issue 2934833002: G722 implementation of the AudioEncoderFactoryTemplate API (Closed)
Patch Set: 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
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 0eac9461fd962f3f4b07b674e9a335e472b09aa9..dbfd427a45690df5c7e66a7c766b293e28e4685b 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 AudioDecoderG722;
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 AudioEncoderG722(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 AudioEncoderG722(config, payload_type_));
}
};

Powered by Google App Engine
This is Rietveld 408576698