llvm/lldb/unittests/Core/CommunicationTest.cpp

//===-- CommunicationTest.cpp ---------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#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