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

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

Issue 1665573002: Rename some variables platform_channel_pair -> platform_pipe. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 10 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/master_connection_manager.cc ('k') | mojo/edk/test/multiprocess_test_helper.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_MULTIPROCESS_TEST_HELPER_H_ 5 #ifndef MOJO_EDK_TEST_MULTIPROCESS_TEST_HELPER_H_
6 #define MOJO_EDK_TEST_MULTIPROCESS_TEST_HELPER_H_ 6 #define MOJO_EDK_TEST_MULTIPROCESS_TEST_HELPER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // For use by |MOJO_MULTIPROCESS_TEST_CHILD_MAIN()| only: 54 // For use by |MOJO_MULTIPROCESS_TEST_CHILD_MAIN()| only:
55 static void ChildSetup(); 55 static void ChildSetup();
56 56
57 // For use in the main process: 57 // For use in the main process:
58 platform::ScopedPlatformHandle server_platform_handle; 58 platform::ScopedPlatformHandle server_platform_handle;
59 59
60 // For use (and only valid) in the child process: 60 // For use (and only valid) in the child process:
61 static platform::ScopedPlatformHandle client_platform_handle; 61 static platform::ScopedPlatformHandle client_platform_handle;
62 62
63 private: 63 private:
64 std::unique_ptr<platform::PlatformPipe> platform_channel_pair_; 64 std::unique_ptr<platform::PlatformPipe> platform_pipe_;
65 65
66 // Valid after |StartChild()| and before |WaitForChildShutdown()|. 66 // Valid after |StartChild()| and before |WaitForChildShutdown()|.
67 base::Process test_child_; 67 base::Process test_child_;
68 68
69 MOJO_DISALLOW_COPY_AND_ASSIGN(MultiprocessTestHelper); 69 MOJO_DISALLOW_COPY_AND_ASSIGN(MultiprocessTestHelper);
70 }; 70 };
71 71
72 // Use this to declare the child process's "main()" function for tests using 72 // Use this to declare the child process's "main()" function for tests using
73 // |MultiprocessTestHelper|. It returns an |int|, which will be the process's 73 // |MultiprocessTestHelper|. It returns an |int|, which will be the process's
74 // exit code (but see the comment about |WaitForChildShutdown()|). 74 // exit code (but see the comment about |WaitForChildShutdown()|).
(...skipping 14 matching lines...) Expand all
89 ::testing::Test::HasNonfatalFailure()) \ 89 ::testing::Test::HasNonfatalFailure()) \
90 ? 1 \ 90 ? 1 \
91 : 0; \ 91 : 0; \
92 } \ 92 } \
93 void test_child_name##TestChildTest() 93 void test_child_name##TestChildTest()
94 94
95 } // namespace test 95 } // namespace test
96 } // namespace mojo 96 } // namespace mojo
97 97
98 #endif // MOJO_EDK_TEST_MULTIPROCESS_TEST_HELPER_H_ 98 #endif // MOJO_EDK_TEST_MULTIPROCESS_TEST_HELPER_H_
OLDNEW
« no previous file with comments | « mojo/edk/system/master_connection_manager.cc ('k') | mojo/edk/test/multiprocess_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698