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

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

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.h
diff --git a/webrtc/modules/video_coding/main/source/receiver.h b/webrtc/modules/video_coding/main/source/receiver.h
index efd66bc028f2c3dda17d07afe9b7670dcb2aaf9b..ce8320dcbfa657dee73f1204ed4209a3861e70ca 100644
--- a/webrtc/modules/video_coding/main/source/receiver.h
+++ b/webrtc/modules/video_coding/main/source/receiver.h
@@ -28,6 +28,16 @@ class VCMReceiver {
VCMReceiver(VCMTiming* timing,
Clock* clock,
EventFactory* event_factory);
+
+ // Using this constructor, you can specify a different event factory for the
+ // jitter buffer. Useful for unit tests when you want to simulate incoming
+ // packets, in which case the jitter buffer's wait event is different from
+ // that of VCMReceiver itself.
+ VCMReceiver(VCMTiming* timing,
+ Clock* clock,
+ rtc::scoped_ptr<EventWrapper> receiver_event,
+ rtc::scoped_ptr<EventWrapper> jitter_buffer_event);
+
~VCMReceiver();
void Reset();
« no previous file with comments | « webrtc/modules/video_coding/main/source/jitter_buffer_unittest.cc ('k') | webrtc/modules/video_coding/main/source/receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698