| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_TEST_MOJO_TEST_BASE_H_ | 5 #ifndef MOJO_EDK_TEST_MOJO_TEST_BASE_H_ |
| 6 #define MOJO_EDK_TEST_MOJO_TEST_BASE_H_ | 6 #define MOJO_EDK_TEST_MOJO_TEST_BASE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 class ClientController { | 37 class ClientController { |
| 38 public: | 38 public: |
| 39 ClientController(const std::string& client_name, | 39 ClientController(const std::string& client_name, |
| 40 MojoTestBase* test, | 40 MojoTestBase* test, |
| 41 const ProcessErrorCallback& process_error_callback, | 41 const ProcessErrorCallback& process_error_callback, |
| 42 LaunchType launch_type); | 42 LaunchType launch_type); |
| 43 ~ClientController(); | 43 ~ClientController(); |
| 44 | 44 |
| 45 MojoHandle pipe() const { return pipe_.get().value(); } | 45 MojoHandle pipe() const { return pipe_.get().value(); } |
| 46 | 46 |
| 47 void ClosePeerConnection(); |
| 47 int WaitForShutdown(); | 48 int WaitForShutdown(); |
| 48 | 49 |
| 49 private: | 50 private: |
| 50 friend class MojoTestBase; | 51 friend class MojoTestBase; |
| 51 | 52 |
| 52 #if !defined(OS_IOS) | 53 #if !defined(OS_IOS) |
| 53 MultiprocessTestHelper helper_; | 54 MultiprocessTestHelper helper_; |
| 54 #endif | 55 #endif |
| 55 ScopedMessagePipeHandle pipe_; | 56 ScopedMessagePipeHandle pipe_; |
| 56 bool was_shutdown_ = false; | 57 bool was_shutdown_ = false; |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 #else // !defined(OS_IOS) | 234 #else // !defined(OS_IOS) |
| 234 #define DEFINE_TEST_CLIENT_WITH_PIPE(client_name, test_base, pipe_name) | 235 #define DEFINE_TEST_CLIENT_WITH_PIPE(client_name, test_base, pipe_name) |
| 235 #define DEFINE_TEST_CLIENT_TEST_WITH_PIPE(client_name, test_base, pipe_name) | 236 #define DEFINE_TEST_CLIENT_TEST_WITH_PIPE(client_name, test_base, pipe_name) |
| 236 #endif // !defined(OS_IOS) | 237 #endif // !defined(OS_IOS) |
| 237 | 238 |
| 238 } // namespace test | 239 } // namespace test |
| 239 } // namespace edk | 240 } // namespace edk |
| 240 } // namespace mojo | 241 } // namespace mojo |
| 241 | 242 |
| 242 #endif // MOJO_EDK_TEST_MOJO_TEST_BASE_H_ | 243 #endif // MOJO_EDK_TEST_MOJO_TEST_BASE_H_ |
| OLD | NEW |