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

Unified Diff: webrtc/video/video_quality_test.h

Issue 2136573002: Adding audio to video_quality_test. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: using fake audio device Created 4 years, 5 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 | « no previous file | webrtc/video/video_quality_test.cc » ('j') | webrtc/video/video_quality_test.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/video_quality_test.h
diff --git a/webrtc/video/video_quality_test.h b/webrtc/video/video_quality_test.h
index b1f59e540d880a845f37c4a260d42405a74938fa..35ac3502c8838b381010ac13ef198d72a3e83595 100644
--- a/webrtc/video/video_quality_test.h
+++ b/webrtc/video/video_quality_test.h
@@ -105,6 +105,9 @@ class VideoQualityTest : public test::CallTest {
void SetupCommon(Transport* send_transport, Transport* recv_transport);
void SetupScreenshare();
+ void CreateVoiceEngine();
+ void DestroyVoiceEngine();
+
// We need a more general capturer than the FrameGeneratorCapturer.
std::unique_ptr<test::VideoCapturer> capturer_;
std::unique_ptr<test::TraceToStderr> trace_to_stderr_;
@@ -113,6 +116,23 @@ class VideoQualityTest : public test::CallTest {
VideoCodecUnion codec_settings_;
Clock* const clock_;
+ struct VoiceEngineState {
minyue-webrtc 2016/07/12 10:09:36 I think this, and CreateVoiceEngine/DestroyVoiceEn
+ VoiceEngineState()
+ : voice_engine(nullptr),
+ base(nullptr),
+ codec(nullptr),
+ send_channel_id(-1),
+ receive_channel_id(-1) {}
+
+ VoiceEngine* voice_engine;
+ VoEBase* base;
+ VoECodec* codec;
+ int send_channel_id;
+ int receive_channel_id;
+ };
+ VoiceEngineState voe_;
+ std::unique_ptr<test::FakeAudioDevice> fake_audio_device_;
+
Params params_;
};
« no previous file with comments | « no previous file | webrtc/video/video_quality_test.cc » ('j') | webrtc/video/video_quality_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698