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

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

Issue 670743002: Mojo: Fixes to current virtual/override style in mojo/edk/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/message_pipe.h ('k') | mojo/edk/system/raw_channel_unittest.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 #ifndef MOJO_EDK_SYSTEM_MESSAGE_PIPE_TEST_UTILS_H_ 5 #ifndef MOJO_EDK_SYSTEM_MESSAGE_PIPE_TEST_UTILS_H_
6 #define MOJO_EDK_SYSTEM_MESSAGE_PIPE_TEST_UTILS_H_ 6 #define MOJO_EDK_SYSTEM_MESSAGE_PIPE_TEST_UTILS_H_
7 7
8 #include "base/test/test_io_thread.h" 8 #include "base/test/test_io_thread.h"
9 #include "mojo/edk/embedder/simple_platform_support.h" 9 #include "mojo/edk/embedder/simple_platform_support.h"
10 #include "mojo/edk/system/channel.h" 10 #include "mojo/edk/system/channel.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 base::TestIOThread test_io_thread_; 42 base::TestIOThread test_io_thread_;
43 scoped_refptr<Channel> channel_; 43 scoped_refptr<Channel> channel_;
44 44
45 DISALLOW_COPY_AND_ASSIGN(ChannelThread); 45 DISALLOW_COPY_AND_ASSIGN(ChannelThread);
46 }; 46 };
47 47
48 #if !defined(OS_IOS) 48 #if !defined(OS_IOS)
49 class MultiprocessMessagePipeTestBase : public testing::Test { 49 class MultiprocessMessagePipeTestBase : public testing::Test {
50 public: 50 public:
51 MultiprocessMessagePipeTestBase(); 51 MultiprocessMessagePipeTestBase();
52 virtual ~MultiprocessMessagePipeTestBase(); 52 ~MultiprocessMessagePipeTestBase() override;
53 53
54 protected: 54 protected:
55 void Init(scoped_refptr<ChannelEndpoint> ep); 55 void Init(scoped_refptr<ChannelEndpoint> ep);
56 56
57 embedder::PlatformSupport* platform_support() { return &platform_support_; } 57 embedder::PlatformSupport* platform_support() { return &platform_support_; }
58 mojo::test::MultiprocessTestHelper* helper() { return &helper_; } 58 mojo::test::MultiprocessTestHelper* helper() { return &helper_; }
59 59
60 private: 60 private:
61 embedder::SimplePlatformSupport platform_support_; 61 embedder::SimplePlatformSupport platform_support_;
62 ChannelThread channel_thread_; 62 ChannelThread channel_thread_;
63 mojo::test::MultiprocessTestHelper helper_; 63 mojo::test::MultiprocessTestHelper helper_;
64 64
65 DISALLOW_COPY_AND_ASSIGN(MultiprocessMessagePipeTestBase); 65 DISALLOW_COPY_AND_ASSIGN(MultiprocessMessagePipeTestBase);
66 }; 66 };
67 #endif 67 #endif
68 68
69 } // namespace test 69 } // namespace test
70 } // namespace system 70 } // namespace system
71 } // namespace mojo 71 } // namespace mojo
72 72
73 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_TEST_UTILS_H_ 73 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « mojo/edk/system/message_pipe.h ('k') | mojo/edk/system/raw_channel_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698