ReactOS 0.4.16-dev-329-g9223134
|
Go to the source code of this file.
Classes | |
struct | _READ_WRITE_TEST_CONTEXT |
Macros | |
#define | MAX_INSTANCES 5 |
#define | IN_QUOTA 4096 |
#define | OUT_QUOTA 4096 |
#define | MakeServer(ServerHandle, PipePath, ServerSynchronous) |
#define | CheckServer(ServerHandle, State) |
#define | CheckClient(ClientHandle, State) |
#define | CheckServerQuota(ServerHandle, InQ, OutQ) |
#define | CheckClientQuota(ClientHandle, InQ, OutQ) |
#define | CheckPipeContext(Context, ExpectedStatus, ExpectedBytes) |
Typedefs | |
typedef struct _READ_WRITE_TEST_CONTEXT | READ_WRITE_TEST_CONTEXT |
typedef struct _READ_WRITE_TEST_CONTEXT * | PREAD_WRITE_TEST_CONTEXT |
Functions | |
static VOID | ConnectPipe (IN OUT PTHREAD_CONTEXT Context) |
static VOID | ListenPipe (IN OUT PTHREAD_CONTEXT Context) |
static VOID | ReadPipe (IN OUT PTHREAD_CONTEXT Context) |
static VOID | WritePipe (IN OUT PTHREAD_CONTEXT Context) |
static BOOLEAN | CheckConnectPipe (IN PTHREAD_CONTEXT Context, IN PCWSTR PipePath, IN BOOLEAN ClientSynchronous, IN ULONG MilliSeconds) |
static BOOLEAN | CheckListenPipe (IN PTHREAD_CONTEXT Context, IN HANDLE ServerHandle, IN ULONG MilliSeconds) |
static BOOLEAN | CheckReadPipe (IN PTHREAD_CONTEXT Context, IN HANDLE PipeHandle, OUT PVOID Buffer, IN ULONG BufferSize, IN ULONG MilliSeconds) |
static BOOLEAN | CheckWritePipe (IN PTHREAD_CONTEXT Context, IN HANDLE PipeHandle, IN const VOID *Buffer, IN ULONG BufferSize, IN ULONG MilliSeconds) |
static VOID NTAPI | TestReadWrite (IN PVOID Context) |
START_TEST (NpfsReadWrite) | |
Variables | |
static KSTART_ROUTINE | TestReadWrite |
Definition at line 46 of file NpfsReadWrite.c.
#define CheckClientQuota | ( | ClientHandle, | |
InQ, | |||
OutQ | |||
) |
Definition at line 62 of file NpfsReadWrite.c.
Definition at line 70 of file NpfsReadWrite.c.
Definition at line 38 of file NpfsReadWrite.c.
#define CheckServerQuota | ( | ServerHandle, | |
InQ, | |||
OutQ | |||
) |
Definition at line 54 of file NpfsReadWrite.c.
#define IN_QUOTA 4096 |
Definition at line 19 of file NpfsReadWrite.c.
#define MakeServer | ( | ServerHandle, | |
PipePath, | |||
ServerSynchronous | |||
) |
Definition at line 22 of file NpfsReadWrite.c.
#define MAX_INSTANCES 5 |
Definition at line 18 of file NpfsReadWrite.c.
#define OUT_QUOTA 4096 |
Definition at line 20 of file NpfsReadWrite.c.
|
static |
Definition at line 127 of file NpfsReadWrite.c.
Referenced by TestReadWrite().
|
static |
Definition at line 141 of file NpfsReadWrite.c.
Referenced by TestReadWrite().
|
static |
Definition at line 153 of file NpfsReadWrite.c.
Referenced by TestReadWrite().
|
static |
|
static |
Definition at line 79 of file NpfsReadWrite.c.
Referenced by CheckConnectPipe().
|
static |
|
static |
Definition at line 105 of file NpfsReadWrite.c.
Referenced by CheckReadPipe().
START_TEST | ( | NpfsReadWrite | ) |
Definition at line 572 of file NpfsReadWrite.c.
Server to client, write first, 1 byte
Server to client, read first, 1 byte
Client to server, write first, 1 byte
Client to server, read first, 1 byte
Server to client, write 0 bytes
Client to Server, write 0 bytes
Server to client, read 0 bytes blocks, write 0 bytes does not unblock, write 1 byte unblocks
Client to server, read 0 bytes blocks, write 0 bytes does not unblock, write 1 byte unblocks
Disconnect server with pending read on client
Close server with pending read on client
Close client with pending read on server
Write to server and disconnect, then read from client
Write to server and close, then read from client
Write to client and close, then read from server
Write to client and disconnect server, then read from server
Definition at line 187 of file NpfsReadWrite.c.
|
static |
Definition at line 116 of file NpfsReadWrite.c.
Referenced by CheckWritePipe().
|
static |
Definition at line 183 of file NpfsReadWrite.c.
Referenced by START_TEST().