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

Side by Side Diff: mojo/edk/system/remote_message_pipe_unittest.cc

Issue 621153003: Move mojo edk into mojo/edk (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix checkdeps Created 6 years, 2 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 | « mojo/edk/system/raw_channel_win.cc ('k') | mojo/edk/system/run_all_unittests.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include <stdint.h> 5 #include <stdint.h>
6 #include <stdio.h> 6 #include <stdio.h>
7 #include <string.h> 7 #include <string.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/files/file_util.h" 13 #include "base/files/file_util.h"
14 #include "base/files/scoped_file.h" 14 #include "base/files/scoped_file.h"
15 #include "base/files/scoped_temp_dir.h" 15 #include "base/files/scoped_temp_dir.h"
16 #include "base/location.h" 16 #include "base/location.h"
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/message_loop/message_loop.h" 19 #include "base/message_loop/message_loop.h"
20 #include "base/test/test_io_thread.h" 20 #include "base/test/test_io_thread.h"
21 #include "base/threading/platform_thread.h" // For |Sleep()|. 21 #include "base/threading/platform_thread.h" // For |Sleep()|.
22 #include "build/build_config.h" // TODO(vtl): Remove this. 22 #include "build/build_config.h" // TODO(vtl): Remove this.
23 #include "mojo/common/test/test_utils.h" 23 #include "mojo/edk/embedder/platform_channel_pair.h"
24 #include "mojo/embedder/platform_channel_pair.h" 24 #include "mojo/edk/embedder/platform_shared_buffer.h"
25 #include "mojo/embedder/platform_shared_buffer.h" 25 #include "mojo/edk/embedder/scoped_platform_handle.h"
26 #include "mojo/embedder/scoped_platform_handle.h" 26 #include "mojo/edk/embedder/simple_platform_support.h"
27 #include "mojo/embedder/simple_platform_support.h" 27 #include "mojo/edk/system/channel.h"
28 #include "mojo/system/channel.h" 28 #include "mojo/edk/system/channel_endpoint.h"
29 #include "mojo/system/channel_endpoint.h" 29 #include "mojo/edk/system/message_pipe.h"
30 #include "mojo/system/message_pipe.h" 30 #include "mojo/edk/system/message_pipe_dispatcher.h"
31 #include "mojo/system/message_pipe_dispatcher.h" 31 #include "mojo/edk/system/platform_handle_dispatcher.h"
32 #include "mojo/system/platform_handle_dispatcher.h" 32 #include "mojo/edk/system/raw_channel.h"
33 #include "mojo/system/raw_channel.h" 33 #include "mojo/edk/system/shared_buffer_dispatcher.h"
34 #include "mojo/system/shared_buffer_dispatcher.h" 34 #include "mojo/edk/system/test_utils.h"
35 #include "mojo/system/test_utils.h" 35 #include "mojo/edk/system/waiter.h"
36 #include "mojo/system/waiter.h" 36 #include "mojo/edk/test/test_utils.h"
37 #include "testing/gtest/include/gtest/gtest.h" 37 #include "testing/gtest/include/gtest/gtest.h"
38 38
39 namespace mojo { 39 namespace mojo {
40 namespace system { 40 namespace system {
41 namespace { 41 namespace {
42 42
43 class RemoteMessagePipeTest : public testing::Test { 43 class RemoteMessagePipeTest : public testing::Test {
44 public: 44 public:
45 RemoteMessagePipeTest() : io_thread_(base::TestIOThread::kAutoStart) {} 45 RemoteMessagePipeTest() : io_thread_(base::TestIOThread::kAutoStart) {}
46 virtual ~RemoteMessagePipeTest() {} 46 virtual ~RemoteMessagePipeTest() {}
(...skipping 1136 matching lines...) Expand 10 before | Expand all | Expand 10 after
1183 mp0->Close(0); 1183 mp0->Close(0);
1184 mp1->Close(1); 1184 mp1->Close(1);
1185 EXPECT_EQ(MOJO_RESULT_OK, dispatcher->Close()); 1185 EXPECT_EQ(MOJO_RESULT_OK, dispatcher->Close());
1186 // Note that |local_mp|'s port 0 belong to |dispatcher|, which was closed. 1186 // Note that |local_mp|'s port 0 belong to |dispatcher|, which was closed.
1187 local_mp->Close(1); 1187 local_mp->Close(1);
1188 } 1188 }
1189 1189
1190 } // namespace 1190 } // namespace
1191 } // namespace system 1191 } // namespace system
1192 } // namespace mojo 1192 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/system/raw_channel_win.cc ('k') | mojo/edk/system/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698