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

Unified Diff: remoting/host/video_scheduler_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/host/video_scheduler_unittest.cc
diff --git a/remoting/host/video_scheduler_unittest.cc b/remoting/host/video_scheduler_unittest.cc
index 5adfafa0c9ead7bcee9e69f934ab0d5bc8cfe7df..1c4500708bb311852e789cd83ad49f7c725a34d0 100644
--- a/remoting/host/video_scheduler_unittest.cc
+++ b/remoting/host/video_scheduler_unittest.cc
@@ -25,7 +25,7 @@
#include "third_party/webrtc/modules/desktop_capture/screen_capturer_mock_objects.h"
using ::remoting::protocol::MockClientStub;
-using ::remoting::protocol::MockVideoStub;
+using ::remoting::protocol::MockVideoSender;
using ::testing::_;
using ::testing::AtLeast;
@@ -156,7 +156,7 @@ class VideoSchedulerTest : public testing::Test {
scoped_refptr<VideoScheduler> scheduler_;
MockClientStub client_stub_;
- MockVideoStub video_stub_;
+ MockVideoSender video_sender_;
// Points to the callback passed to webrtc::DesktopCapturer::Start().
webrtc::DesktopCapturer::Callback* capturer_callback_;
@@ -202,7 +202,7 @@ void VideoSchedulerTest::StartVideoScheduler(
mouse_monitor.Pass(),
encoder.Pass(),
&client_stub_,
- &video_stub_);
+ &video_sender_);
scheduler_->Start();
}
@@ -300,11 +300,11 @@ TEST_F(VideoSchedulerTest, StartAndStop) {
.WillRepeatedly(FinishEncode());
// By default delete the arguments when ProcessVideoPacket is received.
- EXPECT_CALL(video_stub_, ProcessVideoPacketPtr(_, _))
+ EXPECT_CALL(video_sender_, ProcessVideoPacketPtr(_, _))
.WillRepeatedly(FinishSend());
// When the first ProcessVideoPacket is received we stop the VideoScheduler.
- EXPECT_CALL(video_stub_, ProcessVideoPacketPtr(_, _))
+ EXPECT_CALL(video_sender_, ProcessVideoPacketPtr(_, _))
.WillOnce(DoAll(
FinishSend(),
InvokeWithoutArgs(this, &VideoSchedulerTest::StopVideoScheduler)))

Powered by Google App Engine
This is Rietveld 408576698