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

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: rebased 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
« no previous file with comments | « remoting/host/screen_recorder.cc ('k') | remoting/host/video_frame_capturer.h » ('j') | 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 af32f56f4ca02aabc3e08c9b1cae8b0308b851ea..bfd3a505ca6d185b9b6833997f0acd1549a2d27e 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(_))
« no previous file with comments | « remoting/host/screen_recorder.cc ('k') | remoting/host/video_frame_capturer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698