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

Side by Side Diff: mojo/system/multiprocess_message_pipe_unittest.cc

Issue 139823003: Mojo: Move system embedder API files to mojo/system/embedder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « mojo/system/embedder_unittest.cc ('k') | mojo/system/platform_channel_pair.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // TODO(vtl): Enable this on non-POSIX once we have a non-POSIX implementation. 5 // TODO(vtl): Enable this on non-POSIX once we have a non-POSIX implementation.
6 #include "build/build_config.h" 6 #include "build/build_config.h"
7 #if defined(OS_POSIX) 7 #if defined(OS_POSIX)
8 8
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <string> 11 #include <string>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/bind.h" 14 #include "base/bind.h"
15 #include "base/callback.h" 15 #include "base/callback.h"
16 #include "base/location.h" 16 #include "base/location.h"
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/message_loop/message_loop.h" 18 #include "base/message_loop/message_loop.h"
19 #include "base/threading/thread.h" 19 #include "base/threading/thread.h"
20 #include "mojo/common/test/multiprocess_test_base.h" 20 #include "mojo/common/test/multiprocess_test_base.h"
21 #include "mojo/system/channel.h" 21 #include "mojo/system/channel.h"
22 #include "mojo/system/embedder/scoped_platform_handle.h"
22 #include "mojo/system/local_message_pipe_endpoint.h" 23 #include "mojo/system/local_message_pipe_endpoint.h"
23 #include "mojo/system/message_pipe.h" 24 #include "mojo/system/message_pipe.h"
24 #include "mojo/system/proxy_message_pipe_endpoint.h" 25 #include "mojo/system/proxy_message_pipe_endpoint.h"
25 #include "mojo/system/scoped_platform_handle.h"
26 #include "mojo/system/test_utils.h" 26 #include "mojo/system/test_utils.h"
27 #include "mojo/system/waiter.h" 27 #include "mojo/system/waiter.h"
28 28
29 namespace mojo { 29 namespace mojo {
30 namespace system { 30 namespace system {
31 namespace { 31 namespace {
32 32
33 class IOThreadWrapper { 33 class IOThreadWrapper {
34 public: 34 public:
35 IOThreadWrapper() : io_thread_("io_thread") {} 35 IOThreadWrapper() : io_thread_("io_thread") {}
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 mp->Close(0); 288 mp->Close(0);
289 289
290 EXPECT_EQ(static_cast<int>(kNumMessages % 100), WaitForChildShutdown()); 290 EXPECT_EQ(static_cast<int>(kNumMessages % 100), WaitForChildShutdown());
291 } 291 }
292 292
293 } // namespace 293 } // namespace
294 } // namespace system 294 } // namespace system
295 } // namespace mojo 295 } // namespace mojo
296 296
297 #endif // defined(OS_POSIX) 297 #endif // defined(OS_POSIX)
OLDNEW
« no previous file with comments | « mojo/system/embedder_unittest.cc ('k') | mojo/system/platform_channel_pair.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698