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

Side by Side Diff: chrome/common/ipc_tests.h

Issue 155905: Separates ipc code from common (http://crbug.com/16829) (Closed)
Patch Set: Fixes reference to 'common_message_traits' it's actually 'common_param_traits' Created 11 years, 5 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 | « chrome/common/ipc_test_sink.h ('k') | chrome/common/ipc_tests.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_COMMON_IPC_TESTS_H__
6 #define CHROME_COMMON_IPC_TESTS_H__
7
8 #include "base/multiprocess_test.h"
9 #include "base/process.h"
10
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.
13 enum ChildType {
14 TEST_CLIENT,
15 TEST_DESCRIPTOR_CLIENT,
16 TEST_DESCRIPTOR_CLIENT_SANDBOXED,
17 TEST_REFLECTOR,
18 FUZZER_SERVER
19 };
20
21 // The different channel names for the child processes.
22 extern const char kTestClientChannel[];
23 extern const char kReflectorChannel[];
24 extern const char kFuzzerChannel[];
25
26 class MessageLoopForIO;
27 namespace IPC {
28 class Channel;
29 } // namespace IPC
30
31 //Base class to facilitate Spawning IPC Client processes.
32 class IPCChannelTest : public MultiProcessTest {
33 protected:
34
35 // Create a new MessageLoopForIO For each test.
36 virtual void SetUp();
37 virtual void TearDown();
38
39 // Spawns a child process of the specified type
40 base::ProcessHandle SpawnChild(ChildType child_type,
41 IPC::Channel *channel);
42
43 // Created around each test instantiation.
44 MessageLoopForIO *message_loop_;
45 };
46
47 #endif // CHROME_COMMON_IPC_TESTS_H__
OLDNEW
« no previous file with comments | « chrome/common/ipc_test_sink.h ('k') | chrome/common/ipc_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698