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

Side by Side Diff: mojo/edk/test/mojo_test_base.h

Issue 2466433002: Add mojo::edk::ClosePeerConnection. (Closed)
Patch Set: Created 4 years, 1 month 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/node_controller.cc ('k') | mojo/edk/test/mojo_test_base.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 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
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
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_
OLDNEW
« no previous file with comments | « mojo/edk/system/node_controller.cc ('k') | mojo/edk/test/mojo_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698