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

Unified Diff: remoting/host/desktop_process_unittest.cc

Issue 12545026: ResizingHostObserver is created by the desktop environment together with other stubs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback & rebased Created 7 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/host/desktop_environment.h ('k') | remoting/host/desktop_session_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/desktop_process_unittest.cc
diff --git a/remoting/host/desktop_process_unittest.cc b/remoting/host/desktop_process_unittest.cc
index a299e47c2fdf6ced721475242dcef403ecde5aa7..026c9bcb788b3f738bc8e934aadfdb18cfda0c17 100644
--- a/remoting/host/desktop_process_unittest.cc
+++ b/remoting/host/desktop_process_unittest.cc
@@ -111,6 +111,10 @@ class DesktopProcessTest : public testing::Test {
// DesktopEnvironment::CreateEventExecutor().
EventExecutor* CreateEventExecutor();
+ // Creates a dummy SessionController, to mock
+ // DesktopEnvironment::CreateSessionController().
+ SessionController* CreateSessionController();
+
// Creates a fake media::ScreenCapturer, to mock
// DesktopEnvironment::CreateVideoCapturer().
media::ScreenCapturer* CreateVideoCapturer();
@@ -200,6 +204,11 @@ DesktopEnvironment* DesktopProcessTest::CreateDesktopEnvironment() {
.Times(AnyNumber())
.WillRepeatedly(
InvokeWithoutArgs(this, &DesktopProcessTest::CreateEventExecutor));
+ EXPECT_CALL(*desktop_environment, CreateSessionControllerPtr())
+ .Times(AnyNumber())
+ .WillRepeatedly(
+ InvokeWithoutArgs(this,
+ &DesktopProcessTest::CreateSessionController));
EXPECT_CALL(*desktop_environment, CreateVideoCapturerPtr(_, _))
.Times(AnyNumber())
.WillRepeatedly(
@@ -216,6 +225,10 @@ EventExecutor* DesktopProcessTest::CreateEventExecutor() {
return event_executor;
}
+SessionController* DesktopProcessTest::CreateSessionController() {
+ return new MockSessionController();
+}
+
media::ScreenCapturer* DesktopProcessTest::CreateVideoCapturer() {
return new media::ScreenCapturerFake();
}
« no previous file with comments | « remoting/host/desktop_environment.h ('k') | remoting/host/desktop_session_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698