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

Side by Side Diff: ipc/ipc_multiprocess_test.h

Issue 12051048: Refactor (many) IPC tests, notably most of the multiprocess tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « ipc/ipc_fuzzing_tests.cc ('k') | ipc/ipc_multiprocess_test.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 IPC_IPC_MULTIPROCESS_TEST_H_ 5 #ifndef IPC_IPC_MULTIPROCESS_TEST_H_
6 #define IPC_IPC_MULTIPROCESS_TEST_H_ 6 #define IPC_IPC_MULTIPROCESS_TEST_H_
7 7
8 #include "testing/multiprocess_func_list.h" 8 #include "testing/multiprocess_func_list.h"
9 9
10 // Use this macro when your sub-process is using an IPCChannel to communicate 10 // Use this macro when your sub-process is using an IPCChannel to communicate
11 // with the test process. 11 // with the test process. See the comment below for why this is needed.
12 // See comment below for MultiProcessTestIPCSetUp() on why this is needed.
13 #define MULTIPROCESS_IPC_TEST_MAIN(test_main) \ 12 #define MULTIPROCESS_IPC_TEST_MAIN(test_main) \
14 MULTIPROCESS_TEST_MAIN_WITH_SETUP(test_main, MultiProcessTestIPCSetUp) 13 MULTIPROCESS_TEST_MAIN_WITH_SETUP(test_main, \
14 internal::MultiProcessTestIPCSetUp)
15 15
16 // Setup function used by MULTIPROCESS_IPC_TEST_MAIN. 16 namespace internal {
17 // Registers the IPC channel as a global descriptor in the child process. This 17
18 // is needed on POSIX as the IPCChannel when created looks for a specific global 18 // Setup function used by MULTIPROCESS_IPC_TEST_MAIN. Registers the IPC channel
19 // descriptor to establish the connection to the parent process. 19 // as a global descriptor in the child process. This is needed on POSIX as on
20 // creation the IPCChannel looks for a specific global descriptor to establish
21 // the connection to the parent process.
20 void MultiProcessTestIPCSetUp(); 22 void MultiProcessTestIPCSetUp();
21 23
24 } // namespace internal
25
22 #endif // IPC_IPC_MULTIPROCESS_TEST_H_ 26 #endif // IPC_IPC_MULTIPROCESS_TEST_H_
OLDNEW
« no previous file with comments | « ipc/ipc_fuzzing_tests.cc ('k') | ipc/ipc_multiprocess_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698