| 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(_))
|
|
|