#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
#include <winsock2.h>
#include "wine/test.h"
Go to the source code of this file.
◆ TCPIP_SERVICE_FLAGS
Value:
#define XP1_EXPEDITED_DATA
#define XP1_GUARANTEED_ORDER
#define XP1_GRACEFUL_CLOSE
#define XP1_GUARANTEED_DELIVERY
Definition at line 30 of file protocol.c.
◆ UDPIP_SERVICE_FLAGS
Value:
#define XP1_SUPPORT_BROADCAST
#define XP1_CONNECTIONLESS
#define XP1_SUPPORT_MULTIPOINT
#define XP1_MESSAGE_ORIENTED
Definition at line 36 of file protocol.c.
◆ START_TEST()
Definition at line 195 of file protocol.c.
196{
199
201
204}
static const WCHAR version[]
INT WINAPI WSAStartup(IN WORD wVersionRequested, OUT LPWSADATA lpWSAData)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
static void test_WSAEnumProtocolsW(void)
static void test_WSAEnumProtocolsA(void)
◆ test_service_flags()
Definition at line 42 of file protocol.c.
43{
44 DWORD expectedflags = 0;
49
50
52 {
53
54 testflags &= ~XP1_QOS_SUPPORTED;
55 ok(expectedflags == testflags,
56 "Incorrect flags, expected 0x%x, received 0x%x\n",
57 expectedflags, testflags);
58 }
59}
#define TCPIP_SERVICE_FLAGS
#define UDPIP_SERVICE_FLAGS
Referenced by test_WSAEnumProtocolsA(), and test_WSAEnumProtocolsW().
◆ test_WSAEnumProtocolsA()
static void test_WSAEnumProtocolsA |
( |
void |
| ) |
|
|
static |
Definition at line 61 of file protocol.c.
62{
67
72
74
79
81
83 {
87
89 {
94 }
95
97 }
98
99
104 "Expected 10055, received %d\n",
error);
105
107
109 {
113 ok(
ret >= 2,
"Expected at least 2 items, received %d\n",
ret);
114
115 for (
i = found = 0;
i <
ret;
i++)
116 for (
j = 0;
j <
sizeof(ptest) /
sizeof(ptest[0]);
j++)
117 if (
buffer[
i].iProtocol == ptest[
j])
118 {
120 break;
121 }
122 ok(found == 0x0A,
"Expected 2 bits represented as 0xA, received 0x%x\n", found);
123
125 }
126}
ACPI_SIZE strlen(const char *String)
#define HeapFree(x, y, z)
INT WSAAPI WSAEnumProtocolsA(IN LPINT lpiProtocols, OUT LPWSAPROTOCOL_INFOA lpProtocolBuffer, IN OUT LPDWORD lpdwBufferLength)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j
static void test_service_flags(int family, int version, int socktype, int protocol, DWORD testflags)
int PASCAL FAR WSAGetLastError(void)
Referenced by START_TEST().
◆ test_WSAEnumProtocolsW()
static void test_WSAEnumProtocolsW |
( |
void |
| ) |
|
|
static |
Definition at line 128 of file protocol.c.
129{
134
139
141
146
148
150 {
154
156 {
161 }
162
164 }
165
166
171 "Expected 10055, received %d\n",
error);
172
174
176 {
180 ok(
ret >= 2,
"Expected at least 2 items, received %d\n",
ret);
181
182 for (
i = found = 0;
i <
ret;
i++)
183 for (
j = 0;
j <
sizeof(ptest) /
sizeof(ptest[0]);
j++)
184 if (
buffer[
i].iProtocol == ptest[
j])
185 {
187 break;
188 }
189 ok(found == 0x0A,
"Expected 2 bits represented as 0xA, received 0x%x\n", found);
190
192 }
193}
INT WSAAPI WSAEnumProtocolsW(IN LPINT lpiProtocols, OUT LPWSAPROTOCOL_INFOW lpProtocolBuffer, IN OUT LPDWORD lpdwBufferLength)
Referenced by START_TEST().