summaryrefslogtreecommitdiffstats
path: root/remoting/host/chromoting_host_context_unittest.cc
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-16 18:20:59 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-16 18:20:59 +0000
commitc47566d1a86aec6fe5f6846015f6e6141148708b (patch)
treee36237607660b6897d3b56fc88d4f8f0fb00fdbd /remoting/host/chromoting_host_context_unittest.cc
parent3b1eb087df251521c8d96c64aa84613c18cc114c (diff)
downloadchromium_src-c47566d1a86aec6fe5f6846015f6e6141148708b.zip
chromium_src-c47566d1a86aec6fe5f6846015f6e6141148708b.tar.gz
chromium_src-c47566d1a86aec6fe5f6846015f6e6141148708b.tar.bz2
Add PluginMessageLoopProxy and use it for Host plugin UI thread.
The new class will also be used in the client plugin for the main plugin thread. BUG=None TEST=Everything works. Review URL: http://codereview.chromium.org/7635030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96981 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/chromoting_host_context_unittest.cc')
-rw-r--r--remoting/host/chromoting_host_context_unittest.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/remoting/host/chromoting_host_context_unittest.cc b/remoting/host/chromoting_host_context_unittest.cc
index 21bcab8..5d2c5d5 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());