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

Unified Diff: remoting/host/chromoting_host_unittest.cc

Issue 12760012: Rename EventExecutor to InputInjector. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Replace some missed occurrences and remove unused include. 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_context.h ('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 f53caf8316bd7aee538e83f9069e6b9a659d9f2f..1b5704273850c34b332bcc5d21d18b94a738c708 100644
--- a/remoting/host/chromoting_host_unittest.cc
+++ b/remoting/host/chromoting_host_unittest.cc
@@ -293,9 +293,9 @@ class ChromotingHostTest : public testing::Test {
MockDesktopEnvironment* desktop_environment = new MockDesktopEnvironment();
EXPECT_CALL(*desktop_environment, CreateAudioCapturerPtr(_))
.Times(0);
- EXPECT_CALL(*desktop_environment, CreateEventExecutorPtr(_, _))
+ EXPECT_CALL(*desktop_environment, CreateInputInjectorPtr(_, _))
.Times(AnyNumber())
- .WillRepeatedly(Invoke(this, &ChromotingHostTest::CreateEventExecutor));
+ .WillRepeatedly(Invoke(this, &ChromotingHostTest::CreateInputInjector));
EXPECT_CALL(*desktop_environment, CreateSessionControllerPtr())
.Times(AnyNumber())
.WillRepeatedly(Invoke(this,
@@ -307,14 +307,14 @@ class ChromotingHostTest : public testing::Test {
return desktop_environment;
}
- // Creates a dummy EventExecutor, to mock
- // DesktopEnvironment::CreateEventExecutor().
- EventExecutor* CreateEventExecutor(
+ // Creates a dummy InputInjector, to mock
+ // DesktopEnvironment::CreateInputInjector().
+ InputInjector* CreateInputInjector(
scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) {
- MockEventExecutor* event_executor = new MockEventExecutor();
- EXPECT_CALL(*event_executor, StartPtr(_));
- return event_executor;
+ MockInputInjector* input_injector = new MockInputInjector();
+ EXPECT_CALL(*input_injector, StartPtr(_));
+ return input_injector;
}
// Creates a dummy SessionController, to mock
« no previous file with comments | « remoting/host/chromoting_host_context.h ('k') | remoting/host/client_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698