OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_COMMON_IPC_TESTS_H__ | 5 #ifndef CHROME_COMMON_IPC_TESTS_H__ |
6 #define CHROME_COMMON_IPC_TESTS_H__ | 6 #define CHROME_COMMON_IPC_TESTS_H__ |
7 | 7 |
8 #include "base/multiprocess_test.h" | 8 #include "base/multiprocess_test.h" |
9 #include "base/process.h" | 9 #include "base/process.h" |
10 | 10 |
11 // This unit test uses 3 types of child processes, a regular pipe client, | 11 // This unit test uses 3 types of child processes, a regular pipe client, |
12 // a client reflector and a IPC server used for fuzzing tests. | 12 // a client reflector and a IPC server used for fuzzing tests. |
13 enum ChildType { | 13 enum ChildType { |
14 TEST_CLIENT, | 14 TEST_CLIENT, |
| 15 TEST_DESCRIPTOR_CLIENT, |
15 TEST_REFLECTOR, | 16 TEST_REFLECTOR, |
16 FUZZER_SERVER | 17 FUZZER_SERVER |
17 }; | 18 }; |
18 | 19 |
19 // The different channel names for the child processes. | 20 // The different channel names for the child processes. |
20 extern const wchar_t kTestClientChannel[]; | 21 extern const wchar_t kTestClientChannel[]; |
21 extern const wchar_t kReflectorChannel[]; | 22 extern const wchar_t kReflectorChannel[]; |
22 extern const wchar_t kFuzzerChannel[]; | 23 extern const wchar_t kFuzzerChannel[]; |
23 | 24 |
24 class MessageLoopForIO; | 25 class MessageLoopForIO; |
(...skipping 11 matching lines...) Expand all Loading... |
36 | 37 |
37 // Spawns a child process of the specified type | 38 // Spawns a child process of the specified type |
38 base::ProcessHandle SpawnChild(ChildType child_type, | 39 base::ProcessHandle SpawnChild(ChildType child_type, |
39 IPC::Channel *channel); | 40 IPC::Channel *channel); |
40 | 41 |
41 // Created around each test instantiation. | 42 // Created around each test instantiation. |
42 MessageLoopForIO *message_loop_; | 43 MessageLoopForIO *message_loop_; |
43 }; | 44 }; |
44 | 45 |
45 #endif // CHROME_COMMON_IPC_TESTS_H__ | 46 #endif // CHROME_COMMON_IPC_TESTS_H__ |
OLD | NEW |