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

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: 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
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..6b57288afe45a3e20d50a9633e135a9c2f996e61 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,12 +307,12 @@ 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();
+ MockInputInjector* event_executor = new MockInputInjector();
EXPECT_CALL(*event_executor, StartPtr(_));
return event_executor;
}

Powered by Google App Engine
This is Rietveld 408576698