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

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

Issue 133533007: Mojo: Move PlatformChannelPair to its own files. (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') | no next file » | 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/callback.h" 13 #include "base/callback.h"
14 #include "base/location.h" 14 #include "base/location.h"
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/message_loop/message_loop.h" 16 #include "base/message_loop/message_loop.h"
17 #include "base/threading/thread.h" 17 #include "base/threading/thread.h"
18 #include "mojo/system/channel.h" 18 #include "mojo/system/channel.h"
19 #include "mojo/system/local_message_pipe_endpoint.h" 19 #include "mojo/system/local_message_pipe_endpoint.h"
20 #include "mojo/system/message_pipe.h" 20 #include "mojo/system/message_pipe.h"
21 #include "mojo/system/platform_channel.h" 21 #include "mojo/system/platform_channel.h"
22 #include "mojo/system/platform_channel_pair.h"
22 #include "mojo/system/proxy_message_pipe_endpoint.h" 23 #include "mojo/system/proxy_message_pipe_endpoint.h"
23 #include "mojo/system/test_utils.h" 24 #include "mojo/system/test_utils.h"
24 #include "mojo/system/waiter.h" 25 #include "mojo/system/waiter.h"
25 #include "testing/gtest/include/gtest/gtest.h" 26 #include "testing/gtest/include/gtest/gtest.h"
26 27
27 namespace mojo { 28 namespace mojo {
28 namespace system { 29 namespace system {
29 namespace { 30 namespace {
30 31
31 class RemoteMessagePipeTest : public testing::Test { 32 class RemoteMessagePipeTest : public testing::Test {
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 MOJO_READ_MESSAGE_FLAG_NONE)); 421 MOJO_READ_MESSAGE_FLAG_NONE));
421 EXPECT_EQ(sizeof(hello), static_cast<size_t>(buffer_size)); 422 EXPECT_EQ(sizeof(hello), static_cast<size_t>(buffer_size));
422 EXPECT_EQ(0, strcmp(buffer, hello)); 423 EXPECT_EQ(0, strcmp(buffer, hello));
423 424
424 // And MP 1, port 1. 425 // And MP 1, port 1.
425 mp_1->Close(1); 426 mp_1->Close(1);
426 } 427 }
427 } // namespace 428 } // namespace
428 } // namespace system 429 } // namespace system
429 } // namespace mojo 430 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/system/raw_channel_posix_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698