#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "ipc/ipc_mojo_bootstrap.h"
#include <cstdint>
#include <memory>
#include <utility>
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/task_environment.h"
#include "ipc/ipc.mojom.h"
#include "ipc/ipc_test_base.h"
#include "mojo/core/test/multiprocess_test_helper.h"
#include "mojo/public/cpp/bindings/associated_receiver.h"
namespace {
constexpr int32_t kTestServerPid = …;
constexpr int32_t kTestClientPid = …;
class Connection { … };
class PeerPidReceiver : public IPC::mojom::Channel { … };
class IPCMojoBootstrapTest : public testing::Test { … };
TEST_F(IPCMojoBootstrapTest, Connect) { … }
MULTIPROCESS_TEST_MAIN_WITH_SETUP(
IPCMojoBootstrapTestClientTestChildMain,
::mojo::core::test::MultiprocessTestHelper::ChildSetup) { … }
TEST_F(IPCMojoBootstrapTest, ReceiveEmptyMessage) { … }
MULTIPROCESS_TEST_MAIN_WITH_SETUP(
IPCMojoBootstrapTestEmptyMessageTestChildMain,
::mojo::core::test::MultiprocessTestHelper::ChildSetup) { … }
}