#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "mojo/public/cpp/platform/platform_channel_server.h"
#include <optional>
#include <tuple>
#include <utility>
#include "base/containers/span.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/callback.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "build/build_config.h"
#include "mojo/core/channel.h"
#include "mojo/public/cpp/platform/named_platform_channel.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace mojo {
namespace {
class RunOnDestruction { … };
class TestChannel : public core::Channel::Delegate { … };
class PlatformChannelServerTest : public testing::Test { … };
TEST_F(PlatformChannelServerTest, ConnectAfterListen) { … }
TEST_F(PlatformChannelServerTest, ConnectBeforeListen) { … }
TEST_F(PlatformChannelServerTest, WaitForConnection) { … }
TEST_F(PlatformChannelServerTest, NoCallbackAfterListenConnectStop) { … }
TEST_F(PlatformChannelServerTest, NoCallbackAfterConnectListenStop) { … }
}
}