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

Unified Diff: webrtc/modules/video_coding/main/source/receiver.cc

Issue 1173253008: Unit Test For VCMReceiver::FrameForDecoding Timing Test (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 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/video_coding/main/source/receiver.cc
diff --git a/webrtc/modules/video_coding/main/source/receiver.cc b/webrtc/modules/video_coding/main/source/receiver.cc
index fbd1fee1999ecf8fd290fbda5892a7e5e9b793ff..e26bd86735dd7801f38bcf933f411351316927b0 100644
--- a/webrtc/modules/video_coding/main/source/receiver.cc
+++ b/webrtc/modules/video_coding/main/source/receiver.cc
@@ -28,11 +28,21 @@ enum { kMaxReceiverDelayMs = 10000 };
VCMReceiver::VCMReceiver(VCMTiming* timing,
Clock* clock,
EventFactory* event_factory)
+ : VCMReceiver(timing,
+ clock,
+ rtc::scoped_ptr<EventWrapper>(event_factory->CreateEvent()),
+ rtc::scoped_ptr<EventWrapper>(event_factory->CreateEvent())) {
+}
+
+VCMReceiver::VCMReceiver(VCMTiming* timing,
+ Clock* clock,
+ rtc::scoped_ptr<EventWrapper> receiver_event,
+ rtc::scoped_ptr<EventWrapper> jitter_buffer_event)
: crit_sect_(CriticalSectionWrapper::CreateCriticalSection()),
clock_(clock),
- jitter_buffer_(clock_, event_factory),
+ jitter_buffer_(clock_, jitter_buffer_event.Pass()),
timing_(timing),
- render_wait_event_(event_factory->CreateEvent()),
+ render_wait_event_(receiver_event.Pass()),
max_video_delay_ms_(kMaxVideoDelayMs) {
Reset();
}
« no previous file with comments | « webrtc/modules/video_coding/main/source/receiver.h ('k') | webrtc/modules/video_coding/main/source/receiver_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698