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

Side by Side Diff: mojo/edk/system/message_pipe_test_utils.h

Issue 1350023003: Add a Mojo EDK for Chrome that uses one OS pipe per message pipe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move to mojo::edk namespace in preparation for runtim flag Created 5 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef MOJO_EDK_SYSTEM_MESSAGE_PIPE_TEST_UTILS_H_
6 #define MOJO_EDK_SYSTEM_MESSAGE_PIPE_TEST_UTILS_H_
7
8 #include "base/message_loop/message_loop.h"
9 #include "base/test/test_io_thread.h"
10 #include "mojo/edk/embedder/simple_platform_support.h"
11 #include "mojo/edk/system/test_utils.h"
12 #include "mojo/edk/test/multiprocess_test_helper.h"
13 #include "mojo/edk/test/scoped_ipc_support.h"
14 #include "mojo/public/cpp/system/macros.h"
15
16 namespace mojo {
17 namespace edk {
18
19 class ChannelEndpoint;
20 class MessagePipe;
21
22 namespace test {
23
24 #if !defined(OS_IOS)
25 class MultiprocessMessagePipeTestBase : public testing::Test {
26 public:
27 MultiprocessMessagePipeTestBase();
28 MultiprocessMessagePipeTestBase(
29 base::MessageLoop::Type main_message_loop_type);
30 ~MultiprocessMessagePipeTestBase() override;
31
32 protected:
33 PlatformSupport* platform_support() { return &platform_support_; }
34 test::MultiprocessTestHelper* helper() { return &helper_; }
35
36 private:
37 SimplePlatformSupport platform_support_;
38 base::MessageLoop message_loop_;
39 base::TestIOThread test_io_thread_;
40 test::ScopedIPCSupport ipc_support_;
41 test::MultiprocessTestHelper helper_;
42
43 MOJO_DISALLOW_COPY_AND_ASSIGN(MultiprocessMessagePipeTestBase);
44 };
45 #endif
46
47 } // namespace test
48 } // namespace edk
49 } // namespace mojo
50
51 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_TEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698