Index: webrtc/modules/video_coding/main/source/jitter_buffer_unittest.cc |
diff --git a/webrtc/modules/video_coding/main/source/jitter_buffer_unittest.cc b/webrtc/modules/video_coding/main/source/jitter_buffer_unittest.cc |
index 280507c57a9b763d9f9a213ef1ba2cca5da7eb25..7ba4d68b5cee71d6f1043d7277de8548baa43c6f 100644 |
--- a/webrtc/modules/video_coding/main/source/jitter_buffer_unittest.cc |
+++ b/webrtc/modules/video_coding/main/source/jitter_buffer_unittest.cc |
@@ -29,8 +29,9 @@ class TestBasicJitterBuffer : public ::testing::Test { |
protected: |
virtual void SetUp() { |
clock_.reset(new SimulatedClock(0)); |
- jitter_buffer_.reset( |
- new VCMJitterBuffer(clock_.get(), &event_factory_)); |
+ jitter_buffer_.reset(new VCMJitterBuffer( |
+ clock_.get(), |
+ rtc::scoped_ptr<EventWrapper>(event_factory_.CreateEvent()))); |
jitter_buffer_->Start(); |
seq_num_ = 1234; |
timestamp_ = 0; |
@@ -128,7 +129,9 @@ class TestRunningJitterBuffer : public ::testing::Test { |
clock_.reset(new SimulatedClock(0)); |
max_nack_list_size_ = 150; |
oldest_packet_to_nack_ = 250; |
- jitter_buffer_ = new VCMJitterBuffer(clock_.get(), &event_factory_); |
+ jitter_buffer_ = new VCMJitterBuffer( |
+ clock_.get(), |
+ rtc::scoped_ptr<EventWrapper>(event_factory_.CreateEvent())); |
stream_generator_ = new StreamGenerator(0, clock_->TimeInMilliseconds()); |
jitter_buffer_->Start(); |
jitter_buffer_->SetNackSettings(max_nack_list_size_, |