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

Unified Diff: remoting/host/chromoting_host_unittest.cc

Issue 12879006: Removed task runners from the DesktopEnviroment interface and introduced ScreenControls/ClientSessio (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/chromoting_host.cc ('k') | remoting/host/client_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/chromoting_host_unittest.cc
diff --git a/remoting/host/chromoting_host_unittest.cc b/remoting/host/chromoting_host_unittest.cc
index 1b5704273850c34b332bcc5d21d18b94a738c708..11593679d08e6950501ed2dcd6447fcc88133afa 100644
--- a/remoting/host/chromoting_host_unittest.cc
+++ b/remoting/host/chromoting_host_unittest.cc
@@ -291,16 +291,14 @@ class ChromotingHostTest : public testing::Test {
// DesktopEnvironmentFactory::Create().
DesktopEnvironment* CreateDesktopEnvironment() {
MockDesktopEnvironment* desktop_environment = new MockDesktopEnvironment();
- EXPECT_CALL(*desktop_environment, CreateAudioCapturerPtr(_))
+ EXPECT_CALL(*desktop_environment, CreateAudioCapturerPtr())
.Times(0);
- EXPECT_CALL(*desktop_environment, CreateInputInjectorPtr(_, _))
+ EXPECT_CALL(*desktop_environment, CreateInputInjectorPtr())
.Times(AnyNumber())
.WillRepeatedly(Invoke(this, &ChromotingHostTest::CreateInputInjector));
- EXPECT_CALL(*desktop_environment, CreateSessionControllerPtr())
- .Times(AnyNumber())
- .WillRepeatedly(Invoke(this,
- &ChromotingHostTest::CreateSessionController));
- EXPECT_CALL(*desktop_environment, CreateVideoCapturerPtr(_, _))
+ EXPECT_CALL(*desktop_environment, CreateScreenControlsPtr())
+ .Times(AnyNumber());
+ EXPECT_CALL(*desktop_environment, CreateVideoCapturerPtr())
.Times(AnyNumber())
.WillRepeatedly(Invoke(this, &ChromotingHostTest::CreateVideoCapturer));
@@ -309,25 +307,15 @@ class ChromotingHostTest : public testing::Test {
// Creates a dummy InputInjector, to mock
// DesktopEnvironment::CreateInputInjector().
- InputInjector* CreateInputInjector(
- scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
- scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) {
+ InputInjector* CreateInputInjector() {
MockInputInjector* input_injector = new MockInputInjector();
EXPECT_CALL(*input_injector, StartPtr(_));
return input_injector;
}
- // Creates a dummy SessionController, to mock
- // DesktopEnvironment::CreateSessionController().
- SessionController* CreateSessionController() {
- return new MockSessionController();
- }
-
// Creates a fake media::ScreenCapturer, to mock
// DesktopEnvironment::CreateVideoCapturer().
- media::ScreenCapturer* CreateVideoCapturer(
- scoped_refptr<base::SingleThreadTaskRunner> capture_task_runner,
- scoped_refptr<base::SingleThreadTaskRunner> encode_task_runner) {
+ media::ScreenCapturer* CreateVideoCapturer() {
return new media::ScreenCapturerFake();
}
« no previous file with comments | « remoting/host/chromoting_host.cc ('k') | remoting/host/client_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698