chromium/mojo/public/cpp/platform/tests/platform_channel_server_unittest.cc

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

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#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) {}

}  // namespace
}  // namespace mojo