Index: remoting/host/chromoting_host_context_unittest.cc |
diff --git a/remoting/host/chromoting_host_context_unittest.cc b/remoting/host/chromoting_host_context_unittest.cc |
index 21bcab8dcbb68124bdadcd67329aeda725ee8c00..5d2c5d5e9137f6f7da5c2e81c3e4dc846adcab27 100644 |
--- a/remoting/host/chromoting_host_context_unittest.cc |
+++ b/remoting/host/chromoting_host_context_unittest.cc |
@@ -3,6 +3,7 @@ |
// found in the LICENSE file. |
#include "base/message_loop.h" |
+#include "base/message_loop_proxy.h" |
#include "remoting/host/chromoting_host_context.h" |
#include "testing/gtest/include/gtest/gtest.h" |
@@ -11,7 +12,10 @@ namespace remoting { |
// A simple test that starts and stop the context. This tests the context |
// operates properly and all threads and message loops are valid. |
TEST(ChromotingHostContextTest, StartAndStop) { |
- ChromotingHostContext context; |
+ MessageLoop message_loop; |
+ ChromotingHostContext context( |
+ base::MessageLoopProxy::CreateForCurrentThread()); |
+ |
context.Start(); |
EXPECT_TRUE(context.jingle_thread()); |
EXPECT_TRUE(context.main_message_loop()); |