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

Unified Diff: remoting/host/screen_recorder_unittest.cc

Issue 10799013: Removing unused and private methods remoting::Capturer interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
« remoting/host/capturer_mac.mm ('K') | « remoting/host/screen_recorder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/screen_recorder_unittest.cc
diff --git a/remoting/host/screen_recorder_unittest.cc b/remoting/host/screen_recorder_unittest.cc
index 51b65ccfa606c161ef9c6c9f8b904ae17f9b41a3..a0a7cd7fbebcb75c7353c5c5bc652f91ff7be179 100644
--- a/remoting/host/screen_recorder_unittest.cc
+++ b/remoting/host/screen_recorder_unittest.cc
@@ -28,6 +28,7 @@ using ::testing::Expectation;
using ::testing::InSequence;
using ::testing::InvokeWithoutArgs;
using ::testing::Return;
+using ::testing::ReturnRef;
using ::testing::SaveArg;
namespace remoting {
@@ -130,7 +131,11 @@ TEST_F(ScreenRecorderTest, StartAndStop) {
SkISize size(SkISize::Make(kWidth, kHeight));
scoped_refptr<CaptureData> data(new CaptureData(planes, size, kFormat));
- EXPECT_CALL(capturer_, InvalidateFullScreen());
+
+ EXPECT_CALL(capturer_, size_most_recent())
+ .WillRepeatedly(ReturnRef(size));
+
+ EXPECT_CALL(capturer_, InvalidateRegion(_));
// First the capturer is called.
Expectation capturer_capture = EXPECT_CALL(capturer_, CaptureInvalidRegion(_))
« remoting/host/capturer_mac.mm ('K') | « remoting/host/screen_recorder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698