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

Unified Diff: webrtc/test/call_test.cc

Issue 1674413004: Added A/V sync tests with drifting clocks. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 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/test/call_test.h ('k') | webrtc/test/drifting_clock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/test/call_test.cc
diff --git a/webrtc/test/call_test.cc b/webrtc/test/call_test.cc
index e9651e33f54e1b8ca27f7a6914e8b171f1ac1cd0..a0b5234c4caee099824628a3b3c424278b6531cd 100644
--- a/webrtc/test/call_test.cc
+++ b/webrtc/test/call_test.cc
@@ -236,6 +236,14 @@ void CallTest::CreateMatchingReceiveConfigs(Transport* rtcp_send_transport) {
}
}
+void CallTest::CreateFrameGeneratorCapturerWithDrift(Clock* clock,
+ float speed) {
+ VideoStream stream = video_encoder_config_.streams.back();
+ frame_generator_capturer_.reset(test::FrameGeneratorCapturer::Create(
+ video_send_stream_->Input(), stream.width, stream.height,
+ stream.max_framerate * speed, clock));
+}
+
void CallTest::CreateFrameGeneratorCapturer() {
VideoStream stream = video_encoder_config_.streams.back();
frame_generator_capturer_.reset(test::FrameGeneratorCapturer::Create(
@@ -245,9 +253,11 @@ void CallTest::CreateFrameGeneratorCapturer() {
void CallTest::CreateFakeAudioDevices() {
fake_send_audio_device_.reset(new FakeAudioDevice(
- clock_, test::ResourcePath("voice_engine/audio_long16", "pcm")));
+ clock_, test::ResourcePath("voice_engine/audio_long16", "pcm"),
+ DriftingClock::kNoDrift));
fake_recv_audio_device_.reset(new FakeAudioDevice(
- clock_, test::ResourcePath("voice_engine/audio_long16", "pcm")));
+ clock_, test::ResourcePath("voice_engine/audio_long16", "pcm"),
+ DriftingClock::kNoDrift));
}
void CallTest::CreateVideoStreams() {
« no previous file with comments | « webrtc/test/call_test.h ('k') | webrtc/test/drifting_clock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698