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

Unified Diff: media/cast/video_receiver/video_receiver_unittest.cc

Issue 192843002: Cast:Adding signaling and infrastructure for adjustable delay (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 6 years, 9 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 | « media/cast/video_receiver/video_receiver.cc ('k') | media/cast/video_sender/video_sender.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/video_receiver/video_receiver_unittest.cc
diff --git a/media/cast/video_receiver/video_receiver_unittest.cc b/media/cast/video_receiver/video_receiver_unittest.cc
index ad999309e49203a31bd4e570bb40f57eca46c08b..04a7f9d667f9b8f7d196da641c3e18a0216f009b 100644
--- a/media/cast/video_receiver/video_receiver_unittest.cc
+++ b/media/cast/video_receiver/video_receiver_unittest.cc
@@ -60,8 +60,12 @@ class PeerVideoReceiver : public VideoReceiver {
public:
PeerVideoReceiver(scoped_refptr<CastEnvironment> cast_environment,
const VideoReceiverConfig& video_config,
- transport::PacedPacketSender* const packet_sender)
- : VideoReceiver(cast_environment, video_config, packet_sender) {}
+ transport::PacedPacketSender* const packet_sender,
+ const SetTargetDelayCallback& target_delay_cb)
+ : VideoReceiver(cast_environment,
+ video_config,
+ packet_sender,
+ target_delay_cb) {}
using VideoReceiver::IncomingParsedRtpPacket;
};
@@ -82,8 +86,8 @@ class VideoReceiverTest : public ::testing::Test {
task_runner_,
task_runner_,
GetLoggingConfigWithRawEventsAndStatsEnabled());
- receiver_.reset(
- new PeerVideoReceiver(cast_environment_, config_, &mock_transport_));
+ receiver_.reset(new PeerVideoReceiver(
+ cast_environment_, config_, &mock_transport_, target_delay_cb_));
testing_clock_->Advance(
base::TimeDelta::FromMilliseconds(kStartMillisecond));
video_receiver_callback_ = new TestVideoReceiverCallback();
@@ -112,6 +116,7 @@ class VideoReceiverTest : public ::testing::Test {
scoped_refptr<test::FakeSingleThreadTaskRunner> task_runner_;
scoped_refptr<CastEnvironment> cast_environment_;
scoped_refptr<TestVideoReceiverCallback> video_receiver_callback_;
+ SetTargetDelayCallback target_delay_cb_;
DISALLOW_COPY_AND_ASSIGN(VideoReceiverTest);
};
« no previous file with comments | « media/cast/video_receiver/video_receiver.cc ('k') | media/cast/video_sender/video_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698