#include "net/test/embedded_test_server/simple_connection_listener.h"
#include "base/location.h"
#include "net/socket/stream_socket.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace net::test_server {
SimpleConnectionListener::SimpleConnectionListener(
int expected_connections,
AllowAdditionalConnections allow_additional_connections)
: … { … }
SimpleConnectionListener::~SimpleConnectionListener() = default;
std::unique_ptr<StreamSocket> SimpleConnectionListener::AcceptedSocket(
std::unique_ptr<StreamSocket> socket) { … }
void SimpleConnectionListener::ReadFromSocket(const StreamSocket& socket,
int rv) { … }
void SimpleConnectionListener::WaitForConnections() { … }
void SimpleConnectionListener::OnResponseCompletedSuccessfully(
std::unique_ptr<StreamSocket> socket) { … }
}