#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "base/posix/unix_domain_socket.h"
#include <stddef.h>
#include <stdint.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#include "base/files/file_util.h"
#include "base/files/scoped_file.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/location.h"
#include "base/pickle.h"
#include "base/synchronization/waitable_event.h"
#include "base/task/single_thread_task_runner.h"
#include "base/threading/thread.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace base {
namespace {
void CreateSocketPair(int fds[2]) { … }
TEST(UnixDomainSocketTest, SendRecvMsgAbortOnReplyFDClose) { … }
TEST(UnixDomainSocketTest, SendRecvMsgAvoidsSIGPIPE) { … }
TEST(UnixDomainSocketTest, RecvPid) { … }
TEST(UnixDomainSocketTest, RecvPidWithMaxDescriptors) { … }
TEST(UnixDomianSocketTest, RecvPidDisconnectedSocket) { … }
}
}