diff options
author | dcaiafa@chromium.org <dcaiafa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-29 15:05:16 +0000 |
---|---|---|
committer | dcaiafa@chromium.org <dcaiafa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-29 15:05:16 +0000 |
commit | 4a32f9821e9df919d482558c148089a2221b19f0 (patch) | |
tree | 3c10aba84b0f70783604fc18a6df1aabd3382ccb /remoting/host/chromoting_host_unittest.cc | |
parent | d35cd7b26ab76fee5a42eeaec4a9538265a490e3 (diff) | |
download | chromium_src-4a32f9821e9df919d482558c148089a2221b19f0.zip chromium_src-4a32f9821e9df919d482558c148089a2221b19f0.tar.gz chromium_src-4a32f9821e9df919d482558c148089a2221b19f0.tar.bz2 |
Use webrtc::MouseCursorMonitor for cursor shapes
Use webrtc::MouseCursorMonitor for cursor shapes instead of
webrtc::VideoFrameCapturer, in preparation for deprecating cursor shape
functionality in the latter.
BUG=324033
Review URL: https://codereview.chromium.org/92473002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247689 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/chromoting_host_unittest.cc')
-rw-r--r-- | remoting/host/chromoting_host_unittest.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/remoting/host/chromoting_host_unittest.cc b/remoting/host/chromoting_host_unittest.cc index 1410371..7e5f599 100644 --- a/remoting/host/chromoting_host_unittest.cc +++ b/remoting/host/chromoting_host_unittest.cc @@ -245,6 +245,9 @@ class ChromotingHostTest : public testing::Test { EXPECT_CALL(*desktop_environment, CreateVideoCapturerPtr()) .Times(AtMost(1)) .WillOnce(Invoke(this, &ChromotingHostTest::CreateVideoCapturer)); + EXPECT_CALL(*desktop_environment, CreateMouseCursorMonitorPtr()) + .Times(AtMost(1)) + .WillOnce(Invoke(this, &ChromotingHostTest::CreateMouseCursorMonitor)); EXPECT_CALL(*desktop_environment, GetCapabilities()) .Times(AtMost(1)); EXPECT_CALL(*desktop_environment, SetCapabilities(_)) @@ -267,6 +270,12 @@ class ChromotingHostTest : public testing::Test { return new ScreenCapturerFake(); } + // Creates a MockMouseCursorMonitor, to mock + // DesktopEnvironment::CreateMouseCursorMonitor(). + webrtc::MouseCursorMonitor* CreateMouseCursorMonitor() { + return new MockMouseCursorMonitor(); + } + void DisconnectAllClients() { host_->DisconnectAllClients(); } |