chromium/components/openscreen_platform/tls_connection_factory_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 "components/openscreen_platform/tls_connection_factory.h"

#include <iostream>
#include <memory>
#include <utility>

#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "components/openscreen_platform/network_context.h"
#include "components/openscreen_platform/tls_client_connection.h"
#include "net/base/net_errors.h"
#include "services/network/public/cpp/network_context_getter.h"
#include "services/network/public/mojom/network_context.mojom.h"
#include "services/network/test/test_network_context.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

_;
NiceMock;
StrictMock;

Error;
TlsConnection;
TlsConnectOptions;

namespace openscreen_platform {

namespace {

const openscreen::IPEndpoint kValidOpenscreenEndpoint{};

class MockTlsConnectionFactoryClient
    : public openscreen::TlsConnectionFactory::Client {};

class FakeNetworkContext : public network::TestNetworkContext {};

}  // namespace

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

TEST_F(TlsConnectionFactoryTest, CallsNetworkContextCreateMethod) {}

TEST_F(TlsConnectionFactoryTest,
       CallsOnConnectionFailedWhenNetworkContextReportsError) {}

}  // namespace openscreen_platform