1 //===-- GDBRemoteTestUtils.cpp ----------------------------------*- C++ -*-===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 #include "GDBRemoteTestUtils.h" 11 12 #if defined(_MSC_VER) 13 #include "lldb/Host/windows/windows.h" 14 #include <WinSock2.h> 15 #endif 16 17 namespace lldb_private { 18 namespace process_gdb_remote { 19 20 void GDBRemoteTest::SetUpTestCase() { 21 #if defined(_MSC_VER) 22 WSADATA data; 23 ::WSAStartup(MAKEWORD(2, 2), &data); 24 #endif 25 } 26 27 void GDBRemoteTest::TearDownTestCase() { 28 #if defined(_MSC_VER) 29 ::WSACleanup(); 30 #endif 31 } 32 33 } // namespace process_gdb_remote 34 } // namespace lldb_private 35