diff options
Diffstat (limited to 'remoting/host/chromoting_host_unittest.cc')
-rw-r--r-- | remoting/host/chromoting_host_unittest.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/remoting/host/chromoting_host_unittest.cc b/remoting/host/chromoting_host_unittest.cc index 185be71..f04be7c 100644 --- a/remoting/host/chromoting_host_unittest.cc +++ b/remoting/host/chromoting_host_unittest.cc @@ -88,10 +88,12 @@ class ChromotingHostTest : public testing::Test { EXPECT_CALL(context_, ui_message_loop()) .Times(AnyNumber()); - Capturer* capturer = new CapturerFake(); + scoped_ptr<Capturer> capturer(new CapturerFake()); event_executor_ = new MockEventExecutor(); - desktop_environment_.reset( - new DesktopEnvironment(&context_, capturer, event_executor_)); + desktop_environment_ = DesktopEnvironment::CreateFake( + &context_, + capturer.Pass(), + scoped_ptr<protocol::InputStub>(event_executor_)); host_ = new ChromotingHost( &context_, &signal_strategy_, desktop_environment_.get(), |