#include "lldb/Core/Communication.h"
#include "lldb/Core/ThreadedCommunication.h"
#include "lldb/Host/Config.h"
#include "lldb/Host/ConnectionFileDescriptor.h"
#include "lldb/Host/Pipe.h"
#include "llvm/Testing/Support/Error.h"
#include "gtest/gtest.h"
#include "TestingSupport/Host/SocketTestUtilities.h"
#include "TestingSupport/SubsystemRAII.h"
#include <chrono>
#include <thread>
#if LLDB_ENABLE_POSIX
#include <fcntl.h>
#endif
usingnamespacelldb_private;
class CommunicationTest : public testing::Test { … };
static void CommunicationReadTest(bool use_read_thread) { … }
TEST_F(CommunicationTest, Read) { … }
TEST_F(CommunicationTest, ReadThread) { … }
TEST_F(CommunicationTest, SynchronizeWhileClosing) { … }
#if LLDB_ENABLE_POSIX
TEST_F(CommunicationTest, WriteAll) { … }
#endif