chromium/ipc/ipc_channel_proxy_unittest.cc

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <stddef.h>
#include <stdint.h>

#include <memory>

#include "base/memory/raw_ptr.h"
#include "base/message_loop/message_pump_type.h"
#include "base/pickle.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/threading/thread.h"
#include "build/build_config.h"
#include "ipc/ipc_message.h"
#include "ipc/ipc_test_base.h"
#include "ipc/message_filter.h"

// Get basic type definitions.
#define IPC_MESSAGE_IMPL
#include "ipc/ipc_channel_proxy_unittest_messages.h"

// Generate constructors.
#include "ipc/struct_constructor_macros.h"
#include "ipc/ipc_channel_proxy_unittest_messages.h"

// Generate param traits write methods.
#include "ipc/param_traits_write_macros.h"
namespace IPC {
#include "ipc/ipc_channel_proxy_unittest_messages.h"
}  // namespace IPC

// Generate param traits read methods.
#include "ipc/param_traits_read_macros.h"
namespace IPC {
#include "ipc/ipc_channel_proxy_unittest_messages.h"
}  // namespace IPC

// Generate param traits log methods.
#include "ipc/param_traits_log_macros.h"
namespace IPC {
#include "ipc/ipc_channel_proxy_unittest_messages.h"
}  // namespace IPC


namespace {

void CreateRunLoopAndRun(raw_ptr<base::RunLoop>* run_loop_ptr) {}

class QuitListener : public IPC::Listener {};

class ChannelReflectorListener : public IPC::Listener {};

class MessageCountFilter : public IPC::MessageFilter {};

class IPCChannelProxyTest : public IPCChannelMojoTestBase {};

TEST_F(IPCChannelProxyTest, MessageClassFilters) {}

TEST_F(IPCChannelProxyTest, GlobalAndMessageClassFilters) {}

TEST_F(IPCChannelProxyTest, FilterRemoval) {}

TEST_F(IPCChannelProxyTest, BadMessageOnListenerThread) {}

TEST_F(IPCChannelProxyTest, BadMessageOnIPCThread) {}

class IPCChannelBadMessageTest : public IPCChannelMojoTestBase {};

TEST_F(IPCChannelBadMessageTest, BadMessage) {}

DEFINE_IPC_CHANNEL_MOJO_TEST_CLIENT(ChannelProxyClient) {}

}  // namespace