#ifndef IPC_IPC_TESTS_H_
#define IPC_IPC_TESTS_H_
#include "base/test/multiprocess_test.h"
#include "base/process.h"
enum ChildType {
TEST_CLIENT,
TEST_DESCRIPTOR_CLIENT,
TEST_DESCRIPTOR_CLIENT_SANDBOXED,
TEST_REFLECTOR,
FUZZER_SERVER,
SYNC_SOCKET_SERVER
};
extern const char kTestClientChannel[];
extern const char kReflectorChannel[];
extern const char kFuzzerChannel[];
extern const char kSyncSocketChannel[];
class MessageLoopForIO;
namespace IPC {
class Channel;
}
class IPCChannelTest : public base::MultiProcessTest {
protected:
virtual void SetUp() OVERRIDE;
virtual void TearDown() OVERRIDE;
base::ProcessHandle SpawnChild(ChildType child_type, IPC::Channel* channel);
MessageLoopForIO* message_loop_;
};
#endif