WSAIoctl.c
WSARecv.c
WSAStartup.c
- testlist.c)
+ ws2_32.h)
-add_executable(ws2_32_apitest ${SOURCE})
+add_executable(ws2_32_apitest ${SOURCE} testlist.c)
target_link_libraries(ws2_32_apitest wine ${PSEH_LIB})
set_module_type(ws2_32_apitest win32cui)
add_importlibs(ws2_32_apitest ws2_32 msvcrt iphlpapi kernel32 ntdll)
+add_pch(ws2_32_apitest ws2_32.h SOURCE)
add_rostests_file(TARGET ws2_32_apitest)
* PROGRAMMERS: Miroslav Mastny
*/
-#include <apitest.h>
-
-#include <stdio.h>
-#include <windows.h>
-#include <winsock2.h>
+#include "ws2_32.h"
#define SVR_PORT 5000
#define WAIT_TIMEOUT_ 10000
* PROGRAMMERS: Andreas Maier
*/
-#include <apitest.h>
+#include "ws2_32.h"
-#include <stdio.h>
-#include "ws2tcpip.h"
-#include "iphlpapi.h"
+#include <iphlpapi.h>
void traceaddr(char* txt, sockaddr_gen a)
{
* PROGRAMMERS: Peter Hater
*/
-#include <apitest.h>
-
-#include <stdio.h>
-#include <ntstatus.h>
-#include <wine/winternl.h>
#include "ws2_32.h"
#define RECV_BUF 4
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
-#include <apitest.h>
-
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
-#include <windef.h>
-#include <winsock2.h>
-#include <ndk/rtlfuncs.h>
-#include <ndk/mmfuncs.h>
+#include "ws2_32.h"
static
PVOID
* PROGRAMMER: Peter Hater
*/
-#include <apitest.h>
-
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
-#include <stdarg.h>
-#include <windef.h>
-#include <winbase.h>
-#include <ws2tcpip.h>
-#include <ndk/umtypes.h>
+#include "ws2_32.h"
CHAR LocalAddress[sizeof("255.255.255.255")];
#define PORT 58888
* PROGRAMMERS: Peter Hater
*/
-#include <apitest.h>
-
-#include <stdio.h>
-#include <ntstatus.h>
-#include <wine/winternl.h>
#include "ws2_32.h"
void Test_CloseDuplicatedSocket()
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
-#include <apitest.h>
-
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
-#include <stdarg.h>
-#include <windef.h>
-#include <winbase.h>
-#include <ws2tcpip.h>
-#include <ndk/umtypes.h>
+#include "ws2_32.h"
#define ok_addrinfo(ai, flags, family, socktype, protocol, addrlen) do \
{ \
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
-#include <apitest.h>
-
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
-#include <stdarg.h>
-#include <windef.h>
-#include <winbase.h>
-#include <ws2tcpip.h>
-#include <ndk/umtypes.h>
+#include "ws2_32.h"
START_TEST(getnameinfo)
{
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
-#include <apitest.h>
-
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
-#include <stdarg.h>
-#include <windef.h>
-#include <winbase.h>
-#include <ws2tcpip.h>
+#include "ws2_32.h"
START_TEST(getservbyname)
{
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
-#include <apitest.h>
-
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
-#include <stdarg.h>
-#include <windef.h>
-#include <winbase.h>
-#include <ws2tcpip.h>
+#include "ws2_32.h"
START_TEST(getservbyport)
{
* COPYRIGHT: Copyright 2008 Colin Finck <mail@colinfinck.de>
*/
-#include <apitest.h>
-
-#include <stdio.h>
#include "ws2_32.h"
int CreateSocket(SOCKET* psck)
* PROGRAMMERS: Colin Finck
*/
-#include <apitest.h>
-
-#include <stdio.h>
#include "ws2_32.h"
int Test_ioctlsocket()
* PROGRAMMERS: Peter Hater
*/
-#include <apitest.h>
-
-#include <stdio.h>
-#include <windows.h>
-#include <winsock2.h>
+#include "ws2_32.h"
#define SVR_PORT 5000
#define WAIT_TIMEOUT_ 10000
* PROGRAMMER: Sylvain Petreolle <sylvain.petreolle@reactos.org>
*/
-#include <apitest.h>
-
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
-
-#include <windef.h>
-#include <winsock2.h>
-#include <ndk/rtlfuncs.h>
-#include <ndk/mmfuncs.h>
+#include "ws2_32.h"
// This test depends on WSAStartup not having been called
START_TEST(nostartup)
* PROGRAMMERS: Colin Finck
*/
-#include <apitest.h>
-
-#include <stdio.h>
-#include <ntstatus.h>
-#include <wine/winternl.h>
#include "ws2_32.h"
+#include <ndk/exfuncs.h>
+#include <ndk/iofuncs.h>
+#include <ndk/obfuncs.h>
+
#define RECV_BUF 4
/* For valid test results, the ReactOS Website needs to return at least 8 bytes on a "GET / HTTP/1.0" request.
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
-#include <apitest.h>
-#include <winsock2.h>
-
-#define WIN32_NO_STATUS
-#include <ndk/mmfuncs.h>
-#include <ndk/rtlfuncs.h>
+#include "ws2_32.h"
static
PVOID
#ifndef _WS2_32_APITESTS_H
#define _WS2_32_APITESTS_H
+#include <ntstatus.h>
+#include <stdio.h>
+
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
-#include <winsock2.h>
+
+#include <apitest.h>
+#include <ws2tcpip.h>
+#include <ndk/rtlfuncs.h>
+#include <ndk/mmfuncs.h>
/* Simple macro for executing a socket command and doing cleanup operations in case of a failure */
#define SCKTEST(_cmd_) \
/* ws2_32.c */
extern HANDLE g_hHeap;
-#endif
+#endif /* !_WS2_32_APITESTS_H */