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

Unified Diff: remoting/protocol/monitored_video_stub_unittest.cc

Issue 850983002: Implement video frame acknowledgements in the chromoting protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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: remoting/protocol/monitored_video_stub_unittest.cc
diff --git a/remoting/protocol/monitored_video_stub_unittest.cc b/remoting/protocol/monitored_video_stub_unittest.cc
index 67162c319e488f14abbbc99e34455f8e5c422175..5123190d25a86656c54205c52cfc21d7037fa3a4 100644
--- a/remoting/protocol/monitored_video_stub_unittest.cc
+++ b/remoting/protocol/monitored_video_stub_unittest.cc
@@ -51,13 +51,13 @@ TEST_F(MonitoredVideoStubTest, OnChannelConnected) {
// finishes, so we expect to see at most one transition to not ready.
EXPECT_CALL(*this, OnVideoChannelStatus(false)).Times(AtMost(1));
- monitor_->ProcessVideoPacket(packet_.Pass(), base::Closure());
+ monitor_->ProcessVideoPacket(packet_.Pass(), VideoStub::ProgressCallback());
base::RunLoop().RunUntilIdle();
}
TEST_F(MonitoredVideoStubTest, OnChannelDisconnected) {
EXPECT_CALL(*this, OnVideoChannelStatus(true));
- monitor_->ProcessVideoPacket(packet_.Pass(), base::Closure());
+ monitor_->ProcessVideoPacket(packet_.Pass(), VideoStub::ProgressCallback());
EXPECT_CALL(*this, OnVideoChannelStatus(false)).WillOnce(
InvokeWithoutArgs(
@@ -74,8 +74,8 @@ TEST_F(MonitoredVideoStubTest, OnChannelStayConnected) {
// finishes, so we expect to see at most one transition to not ready.
EXPECT_CALL(*this, OnVideoChannelStatus(false)).Times(AtMost(1));
- monitor_->ProcessVideoPacket(packet_.Pass(), base::Closure());
- monitor_->ProcessVideoPacket(packet_.Pass(), base::Closure());
+ monitor_->ProcessVideoPacket(packet_.Pass(), VideoStub::ProgressCallback());
+ monitor_->ProcessVideoPacket(packet_.Pass(), VideoStub::ProgressCallback());
base::RunLoop().RunUntilIdle();
}
@@ -84,7 +84,7 @@ TEST_F(MonitoredVideoStubTest, OnChannelStayDisconnected) {
EXPECT_CALL(*this, OnVideoChannelStatus(true)).Times(1);
EXPECT_CALL(*this, OnVideoChannelStatus(false)).Times(1);
- monitor_->ProcessVideoPacket(packet_.Pass(), base::Closure());
+ monitor_->ProcessVideoPacket(packet_.Pass(), VideoStub::ProgressCallback());
message_loop_.PostDelayedTask(
FROM_HERE,

Powered by Google App Engine
This is Rietveld 408576698