Index: remoting/host/chromoting_host_unittest.cc |
diff --git a/remoting/host/chromoting_host_unittest.cc b/remoting/host/chromoting_host_unittest.cc |
index 185be7138170c339981a3a6c9ccb3c2d018e56b8..bfb1d79785b1b70278d3791052c5524ddfdae104 100644 |
--- a/remoting/host/chromoting_host_unittest.cc |
+++ b/remoting/host/chromoting_host_unittest.cc |
@@ -90,8 +90,8 @@ class ChromotingHostTest : public testing::Test { |
Capturer* capturer = new CapturerFake(); |
event_executor_ = new MockEventExecutor(); |
- desktop_environment_.reset( |
- new DesktopEnvironment(&context_, capturer, event_executor_)); |
+ desktop_environment_ = DesktopEnvironment::CreateFake(&context_, capturer, |
+ event_executor_); |
host_ = new ChromotingHost( |
&context_, &signal_strategy_, desktop_environment_.get(), |