diff options
Diffstat (limited to 'lldb/unittests/Process/gdb-remote')
-rw-r--r-- | lldb/unittests/Process/gdb-remote/GDBRemoteTestUtils.cpp | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/lldb/unittests/Process/gdb-remote/GDBRemoteTestUtils.cpp b/lldb/unittests/Process/gdb-remote/GDBRemoteTestUtils.cpp index cd0ecd4dc31..92e16d981fe 100644 --- a/lldb/unittests/Process/gdb-remote/GDBRemoteTestUtils.cpp +++ b/lldb/unittests/Process/gdb-remote/GDBRemoteTestUtils.cpp @@ -7,27 +7,17 @@ //===----------------------------------------------------------------------===// #include "GDBRemoteTestUtils.h" - -#if defined(_MSC_VER) -#include "lldb/Host/windows/windows.h" -#include <WinSock2.h> -#endif +#include "lldb/Host/Socket.h" +#include "llvm/Testing/Support/Error.h" namespace lldb_private { namespace process_gdb_remote { void GDBRemoteTest::SetUpTestCase() { -#if defined(_MSC_VER) - WSADATA data; - ::WSAStartup(MAKEWORD(2, 2), &data); -#endif + ASSERT_THAT_ERROR(Socket::Initialize(), llvm::Succeeded()); } -void GDBRemoteTest::TearDownTestCase() { -#if defined(_MSC_VER) - ::WSACleanup(); -#endif -} +void GDBRemoteTest::TearDownTestCase() { Socket::Terminate(); } } // namespace process_gdb_remote } // namespace lldb_private |