#include "net/socket/unix_domain_server_socket_posix.h"
#include <memory>
#include <vector>
#include "base/files/file_path.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "build/build_config.h"
#include "net/base/io_buffer.h"
#include "net/base/ip_endpoint.h"
#include "net/base/net_errors.h"
#include "net/base/test_completion_callback.h"
#include "net/socket/unix_domain_client_socket_posix.h"
#include "net/test/gtest_util.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
IsError;
IsOk;
namespace net {
namespace {
const char kSocketFilename[] = …;
const char kInvalidSocketPath[] = …;
bool UserCanConnectCallback(bool allow_user,
const UnixDomainServerSocket::Credentials& credentials) { … }
UnixDomainServerSocket::AuthCallback CreateAuthCallback(bool allow_user) { … }
class UnixDomainServerSocketTest : public testing::Test { … };
TEST_F(UnixDomainServerSocketTest, ListenWithInvalidPath) { … }
TEST_F(UnixDomainServerSocketTest, ListenWithInvalidPathWithAbstractNamespace) { … }
TEST_F(UnixDomainServerSocketTest, ListenAgainAfterFailureWithInvalidPath) { … }
TEST_F(UnixDomainServerSocketTest, AcceptWithForbiddenUser) { … }
TEST_F(UnixDomainServerSocketTest, UnimplementedMethodsFail) { … }
}
}