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

Side by Side Diff: mojo/system/remote_message_pipe_posix_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/raw_channel_posix_unittest.cc ('k') | mojo/system/scoped_platform_handle.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): The POSIX-specific bits have been factored out. Apply this test to 5 // TODO(vtl): The POSIX-specific bits have been factored out. Apply this test to
6 // non-POSIX once we have a non-POSIX implementation. 6 // non-POSIX once we have a non-POSIX implementation.
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string.h> 9 #include <string.h>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/location.h" 13 #include "base/location.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/message_loop/message_loop.h" 15 #include "base/message_loop/message_loop.h"
16 #include "base/threading/thread.h" 16 #include "base/threading/thread.h"
17 #include "mojo/system/channel.h" 17 #include "mojo/system/channel.h"
18 #include "mojo/system/embedder/platform_channel_pair.h"
19 #include "mojo/system/embedder/scoped_platform_handle.h"
18 #include "mojo/system/local_message_pipe_endpoint.h" 20 #include "mojo/system/local_message_pipe_endpoint.h"
19 #include "mojo/system/message_pipe.h" 21 #include "mojo/system/message_pipe.h"
20 #include "mojo/system/platform_channel_pair.h"
21 #include "mojo/system/proxy_message_pipe_endpoint.h" 22 #include "mojo/system/proxy_message_pipe_endpoint.h"
22 #include "mojo/system/scoped_platform_handle.h"
23 #include "mojo/system/test_utils.h" 23 #include "mojo/system/test_utils.h"
24 #include "mojo/system/waiter.h" 24 #include "mojo/system/waiter.h"
25 25
26 namespace mojo { 26 namespace mojo {
27 namespace system { 27 namespace system {
28 namespace { 28 namespace {
29 29
30 class RemoteMessagePipeTest : public test::TestWithIOThreadBase { 30 class RemoteMessagePipeTest : public test::TestWithIOThreadBase {
31 public: 31 public:
32 RemoteMessagePipeTest() {} 32 RemoteMessagePipeTest() {}
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 MOJO_READ_MESSAGE_FLAG_NONE)); 400 MOJO_READ_MESSAGE_FLAG_NONE));
401 EXPECT_EQ(sizeof(hello), static_cast<size_t>(buffer_size)); 401 EXPECT_EQ(sizeof(hello), static_cast<size_t>(buffer_size));
402 EXPECT_EQ(0, strcmp(buffer, hello)); 402 EXPECT_EQ(0, strcmp(buffer, hello));
403 403
404 // And MP 1, port 1. 404 // And MP 1, port 1.
405 mp_1->Close(1); 405 mp_1->Close(1);
406 } 406 }
407 } // namespace 407 } // namespace
408 } // namespace system 408 } // namespace system
409 } // namespace mojo 409 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/system/raw_channel_posix_unittest.cc ('k') | mojo/system/scoped_platform_handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698