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

Unified Diff: remoting/host/desktop_process_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/desktop_environment.h ('k') | remoting/host/desktop_session_agent.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 f035b1b4df1626b176a27623f368f9e56ac17f71..759dacc7ba36f2160076557a40aa3fc315ff7e75 100644
--- a/remoting/host/desktop_process_unittest.cc
+++ b/remoting/host/desktop_process_unittest.cc
@@ -108,9 +108,9 @@ class DesktopProcessTest : public testing::Test {
// DesktopEnvironmentFactory::Create().
DesktopEnvironment* CreateDesktopEnvironment();
- // Creates a dummy EventExecutor, to mock
- // DesktopEnvironment::CreateEventExecutor().
- EventExecutor* CreateEventExecutor();
+ // Creates a dummy InputInjector, to mock
+ // DesktopEnvironment::CreateInputInjector().
+ InputInjector* CreateInputInjector();
// Creates a dummy SessionController, to mock
// DesktopEnvironment::CreateSessionController().
@@ -201,10 +201,10 @@ DesktopEnvironment* DesktopProcessTest::CreateDesktopEnvironment() {
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(
- InvokeWithoutArgs(this, &DesktopProcessTest::CreateEventExecutor));
+ InvokeWithoutArgs(this, &DesktopProcessTest::CreateInputInjector));
EXPECT_CALL(*desktop_environment, CreateSessionControllerPtr())
.Times(AnyNumber())
.WillRepeatedly(
@@ -220,10 +220,10 @@ DesktopEnvironment* DesktopProcessTest::CreateDesktopEnvironment() {
return desktop_environment;
}
-EventExecutor* DesktopProcessTest::CreateEventExecutor() {
- MockEventExecutor* event_executor = new MockEventExecutor();
- EXPECT_CALL(*event_executor, StartPtr(_));
- return event_executor;
+InputInjector* DesktopProcessTest::CreateInputInjector() {
+ MockInputInjector* input_injector = new MockInputInjector();
+ EXPECT_CALL(*input_injector, StartPtr(_));
+ return input_injector;
}
SessionController* DesktopProcessTest::CreateSessionController() {
« no previous file with comments | « remoting/host/desktop_environment.h ('k') | remoting/host/desktop_session_agent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698