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

Unified Diff: webrtc/audio/audio_send_stream_unittest.cc

Issue 2454373002: Added an empty AudioTransportProxy to AudioState. (Closed)
Patch Set: Added unit test for recorded data path. Created 4 years, 1 month 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/audio/audio_send_stream_unittest.cc
diff --git a/webrtc/audio/audio_send_stream_unittest.cc b/webrtc/audio/audio_send_stream_unittest.cc
index bd7ffb775152f302f6e42eb0b45a3e6d4d342ab7..601b0145933d64c0adb8158d22d6bbcb976c7176 100644
--- a/webrtc/audio/audio_send_stream_unittest.cc
+++ b/webrtc/audio/audio_send_stream_unittest.cc
@@ -73,6 +73,10 @@ struct ConfigHelper {
RegisterVoiceEngineObserver(_)).WillOnce(Return(0));
EXPECT_CALL(voice_engine_,
DeRegisterVoiceEngineObserver()).WillOnce(Return(0));
+ EXPECT_CALL(voice_engine_, audio_device_module());
+ EXPECT_CALL(voice_engine_, audio_processing());
+ EXPECT_CALL(voice_engine_, audio_transport());
+
AudioState::Config config;
config.voice_engine = &voice_engine_;
audio_state_ = AudioState::Create(config);
@@ -195,6 +199,9 @@ struct ConfigHelper {
private:
SimulatedClock simulated_clock_;
testing::StrictMock<MockVoiceEngine> voice_engine_;
+ MockAudioDeviceModule mock_audio_device_;
the sun 2016/11/14 13:50:08 Not needed
aleloi 2016/11/14 14:24:42 Acknowledged.
+ MockAudioProcessing mock_audio_processing_;
+ MockAudioTransport mock_audio_transport_;
rtc::scoped_refptr<AudioState> audio_state_;
AudioSendStream::Config stream_config_;
testing::StrictMock<MockVoEChannelProxy>* channel_proxy_ = nullptr;

Powered by Google App Engine
This is Rietveld 408576698