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

Unified Diff: remoting/host/chromoting_host_unittest.cc

Issue 9827006: Refactor VideoStub interface to accept ownership of video packets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « remoting/client/rectangle_update_decoder.cc ('k') | remoting/host/screen_recorder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/chromoting_host_unittest.cc
diff --git a/remoting/host/chromoting_host_unittest.cc b/remoting/host/chromoting_host_unittest.cc
index fbf88e2069f5bdcbc476d4ec6dccfd81a4dbfef5..13d80b19df2b240302d0490abfe7636851c9853b 100644
--- a/remoting/host/chromoting_host_unittest.cc
+++ b/remoting/host/chromoting_host_unittest.cc
@@ -139,9 +139,9 @@ class ChromotingHostTest : public testing::Test {
session2_, &host_stub2_, &event_executor2_));
connection2_ = owned_connection2_.get();
- ON_CALL(video_stub_, ProcessVideoPacket(_, _))
+ ON_CALL(video_stub_, ProcessVideoPacketPtr(_, _))
.WillByDefault(DeleteArg<0>());
- ON_CALL(video_stub2_, ProcessVideoPacket(_, _))
+ ON_CALL(video_stub2_, ProcessVideoPacketPtr(_, _))
.WillByDefault(DeleteArg<0>());
ON_CALL(*connection_, video_stub())
.WillByDefault(Return(&video_stub_));
@@ -281,12 +281,12 @@ TEST_F(ChromotingHostTest, DISABLED_Connect) {
InSequence s;
EXPECT_CALL(*disconnect_window_, Show(_, _))
.Times(0);
- EXPECT_CALL(video_stub_, ProcessVideoPacket(_, _))
+ EXPECT_CALL(video_stub_, ProcessVideoPacketPtr(_, _))
.WillOnce(DoAll(
InvokeWithoutArgs(this, &ChromotingHostTest::ShutdownHost),
RunDoneTask()))
.RetiresOnSaturation();
- EXPECT_CALL(video_stub_, ProcessVideoPacket(_, _))
+ EXPECT_CALL(video_stub_, ProcessVideoPacketPtr(_, _))
.Times(AnyNumber());
EXPECT_CALL(*connection_, Disconnect())
.RetiresOnSaturation();
@@ -304,14 +304,14 @@ TEST_F(ChromotingHostTest, DISABLED_Reconnect) {
InSequence s;
EXPECT_CALL(*disconnect_window_, Show(_, _))
.Times(0);
- EXPECT_CALL(video_stub_, ProcessVideoPacket(_, _))
+ EXPECT_CALL(video_stub_, ProcessVideoPacketPtr(_, _))
.WillOnce(DoAll(
InvokeWithoutArgs(this, &ChromotingHostTest::RemoveClientSession),
RunDoneTask()))
.RetiresOnSaturation();
- EXPECT_CALL(video_stub_, ProcessVideoPacket(_, _))
+ EXPECT_CALL(video_stub_, ProcessVideoPacketPtr(_, _))
.Times(AnyNumber());
- EXPECT_CALL(video_stub_, ProcessVideoPacket(_, _))
+ EXPECT_CALL(video_stub_, ProcessVideoPacketPtr(_, _))
.Times(AnyNumber());
}
@@ -328,12 +328,12 @@ TEST_F(ChromotingHostTest, DISABLED_Reconnect) {
InSequence s;
EXPECT_CALL(*disconnect_window_, Show(_, _))
.Times(0);
- EXPECT_CALL(video_stub_, ProcessVideoPacket(_, _))
+ EXPECT_CALL(video_stub_, ProcessVideoPacketPtr(_, _))
.WillOnce(DoAll(
InvokeWithoutArgs(this, &ChromotingHostTest::ShutdownHost),
RunDoneTask()))
.RetiresOnSaturation();
- EXPECT_CALL(video_stub_, ProcessVideoPacket(_, _))
+ EXPECT_CALL(video_stub_, ProcessVideoPacketPtr(_, _))
.Times(AnyNumber());
}
@@ -353,7 +353,7 @@ TEST_F(ChromotingHostTest, DISABLED_ConnectTwice) {
InSequence s;
EXPECT_CALL(*disconnect_window_, Show(_, _))
.Times(0);
- EXPECT_CALL(video_stub_, ProcessVideoPacket(_, _))
+ EXPECT_CALL(video_stub_, ProcessVideoPacketPtr(_, _))
.WillOnce(DoAll(
InvokeWithoutArgs(
CreateFunctor(
@@ -363,14 +363,14 @@ TEST_F(ChromotingHostTest, DISABLED_ConnectTwice) {
.RetiresOnSaturation();
EXPECT_CALL(*disconnect_window_, Show(_, _))
.Times(0);
- EXPECT_CALL(video_stub_, ProcessVideoPacket(_, _))
+ EXPECT_CALL(video_stub_, ProcessVideoPacketPtr(_, _))
.Times(AnyNumber());
- EXPECT_CALL(video_stub2_, ProcessVideoPacket(_, _))
+ EXPECT_CALL(video_stub2_, ProcessVideoPacketPtr(_, _))
.WillOnce(DoAll(
InvokeWithoutArgs(this, &ChromotingHostTest::ShutdownHost),
RunDoneTask()))
.RetiresOnSaturation();
- EXPECT_CALL(video_stub2_, ProcessVideoPacket(_, _))
+ EXPECT_CALL(video_stub2_, ProcessVideoPacketPtr(_, _))
.Times(AnyNumber());
}
« no previous file with comments | « remoting/client/rectangle_update_decoder.cc ('k') | remoting/host/screen_recorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698