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

Side by Side Diff: remoting/host/chromoting_host_context_unittest.cc

Issue 2829018: Fix thread usage in chromoting host (Closed)
Patch Set: removed useless test Created 10 years, 5 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 unified diff | Download patch
« no previous file with comments | « remoting/host/chromoting_host_context.cc ('k') | remoting/host/client_connection.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/message_loop.h"
6 #include "remoting/host/chromoting_host_context.h"
7 #include "testing/gtest/include/gtest/gtest.h"
8
9 namespace remoting {
10
11 // A simple test that starts and stop the context. This tests the context
12 // operates properly and all threads and message loops are valid.
13 TEST(ChromotingHostContextTest, StartAndStop) {
14 ChromotingHostContext context;
15 context.Start();
16 EXPECT_TRUE(context.jingle_thread());
17 EXPECT_TRUE(context.main_message_loop());
18 EXPECT_TRUE(context.capture_message_loop());
19 EXPECT_TRUE(context.encode_message_loop());
20 context.Stop();
21
22 // Expect all the threads are stopped.
23 EXPECT_FALSE(context.main_thread_.IsRunning());
24 EXPECT_FALSE(context.capture_thread_.IsRunning());
25 EXPECT_FALSE(context.encode_thread_.IsRunning());
26 }
27
28 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/chromoting_host_context.cc ('k') | remoting/host/client_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698