#include "lldb/Host/MainLoop.h"
#include "TestingSupport/SubsystemRAII.h"
#include "lldb/Host/ConnectionFileDescriptor.h"
#include "lldb/Host/FileSystem.h"
#include "lldb/Host/PseudoTerminal.h"
#include "lldb/Host/common/TCPSocket.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/Testing/Support/Error.h"
#include "gtest/gtest.h"
#include <future>
#include <thread>
usingnamespacelldb_private;
namespace {
class MainLoopTest : public testing::Test { … };
}
TEST_F(MainLoopTest, ReadObject) { … }
TEST_F(MainLoopTest, NoSpuriousReads) { … }
TEST_F(MainLoopTest, TerminatesImmediately) { … }
TEST_F(MainLoopTest, PendingCallback) { … }
TEST_F(MainLoopTest, PendingCallbackCalledOnlyOnce) { … }
TEST_F(MainLoopTest, PendingCallbackTrigger) { … }
TEST_F(MainLoopTest, PendingCallbackAfterLoopExited) { … }
#ifdef LLVM_ON_UNIX
TEST_F(MainLoopTest, DetectsEOF) { … }
TEST_F(MainLoopTest, Signal) { … }
TEST_F(MainLoopTest, UnmonitoredSignal) { … }
TEST_F(MainLoopTest, TwoSignalCallbacks) { … }
#endif