chromium/third_party/openscreen/src/cast/common/channel/connection_namespace_handler_unittest.cc

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

#include "cast/common/channel/connection_namespace_handler.h"

#include <optional>
#include <string>
#include <string_view>
#include <utility>
#include <vector>

#include "cast/common/channel/message_util.h"
#include "cast/common/channel/testing/fake_cast_socket.h"
#include "cast/common/channel/testing/mock_socket_error_handler.h"
#include "cast/common/channel/virtual_connection.h"
#include "cast/common/channel/virtual_connection_router.h"
#include "cast/common/public/cast_socket.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "util/json/json_serialization.h"
#include "util/json/json_value.h"
#include "util/osp_logging.h"

namespace openscreen::cast {
namespace {

_;
Invoke;
NiceMock;

CastMessage;
CastMessage_ProtocolVersion;

class MockVirtualConnectionPolicy
    : public ConnectionNamespaceHandler::VirtualConnectionPolicy {};

CastMessage MakeVersionedConnectMessage(
    const std::string& source_id,
    const std::string& destination_id,
    std::optional<CastMessage_ProtocolVersion> version,
    std::vector<CastMessage_ProtocolVersion> version_list) {}

void VerifyConnectionMessage(const CastMessage& message,
                             const std::string& source_id,
                             const std::string& destination_id) {}

Json::Value ParseConnectionMessage(const CastMessage& message) {}

}  // namespace

class ConnectionNamespaceHandlerTest : public ::testing::Test {};

TEST_F(ConnectionNamespaceHandlerTest, Connect) {}

TEST_F(ConnectionNamespaceHandlerTest, PolicyDeniesConnection) {}

TEST_F(ConnectionNamespaceHandlerTest, ConnectWithVersion) {}

TEST_F(ConnectionNamespaceHandlerTest, ConnectWithVersionList) {}

TEST_F(ConnectionNamespaceHandlerTest, Close) {}

TEST_F(ConnectionNamespaceHandlerTest, CloseUnknown) {}

}  // namespace openscreen::cast