chromium/net/socket/tcp_server_socket_unittest.cc

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

#include "net/socket/tcp_server_socket.h"

#include <memory>
#include <string>
#include <vector>

#include "base/compiler_specific.h"
#include "base/memory/ref_counted.h"
#include "net/base/address_list.h"
#include "net/base/io_buffer.h"
#include "net/base/ip_address.h"
#include "net/base/ip_endpoint.h"
#include "net/base/net_errors.h"
#include "net/base/test_completion_callback.h"
#include "net/log/net_log_source.h"
#include "net/socket/tcp_client_socket.h"
#include "net/test/gtest_util.h"
#include "net/test/test_with_task_environment.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"

IsError;
IsOk;

namespace net {

namespace {
const int kListenBacklog =;

class TCPServerSocketTest : public PlatformTest, public WithTaskEnvironment {};

TEST_F(TCPServerSocketTest, Accept) {}

// Test Accept() callback.
TEST_F(TCPServerSocketTest, AcceptAsync) {}

// Test Accept() when client disconnects right after trying to connect.
TEST_F(TCPServerSocketTest, AcceptClientDisconnectAfterConnect) {}

// Accept two connections simultaneously.
TEST_F(TCPServerSocketTest, Accept2Connections) {}

TEST_F(TCPServerSocketTest, AcceptIPv6) {}

class TCPServerSocketTestWithIPv6Only
    : public TCPServerSocketTest,
      public testing::WithParamInterface<bool> {};

TEST_P(TCPServerSocketTestWithIPv6Only, AcceptIPv6Only) {}

INSTANTIATE_TEST_SUITE_P();

TEST_F(TCPServerSocketTest, AcceptIO) {}

}  // namespace

}  // namespace net