#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 { … };
}
class TlsConnectionFactoryTest : public ::testing::Test { … };
TEST_F(TlsConnectionFactoryTest, CallsNetworkContextCreateMethod) { … }
TEST_F(TlsConnectionFactoryTest,
CallsOnConnectionFailedWhenNetworkContextReportsError) { … }
}