1 //===-- GDBRemoteTestUtils.cpp ----------------------------------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #include "GDBRemoteTestUtils.h" 10 11 #if defined(_MSC_VER) 12 #include "lldb/Host/windows/windows.h" 13 #include <WinSock2.h> 14 #endif 15 16 namespace lldb_private { 17 namespace process_gdb_remote { 18 19 void GDBRemoteTest::SetUpTestCase() { 20 #if defined(_MSC_VER) 21 WSADATA data; 22 ::WSAStartup(MAKEWORD(2, 2), &data); 23 #endif 24 } 25 26 void GDBRemoteTest::TearDownTestCase() { 27 #if defined(_MSC_VER) 28 ::WSACleanup(); 29 #endif 30 } 31 32 } // namespace process_gdb_remote 33 } // namespace lldb_private 34