ReactOS 0.4.15-dev-8621-g4b051b9
|
#include <stdio.h>
#include "ntstatus.h"
#include "wine/test.h"
#include "winternl.h"
#include "winbase.h"
#include "winnls.h"
Go to the source code of this file.
Classes | |
struct | TEST |
Macros | |
#define | WIN32_NO_STATUS |
#define | TIMEOUT 1000 /* one second for Timeouts*/ |
#define | SLOWBAUD 150 |
#define | FASTBAUD 115200 |
#define | TIMEDELTA 150 /* 150 ms uncertainty allowed */ |
#define | LOOPBACK_TXD_RXD FALSE /* Sub-D 9: Short 2-3 */ |
#define | LOOPBACK_CTS_RTS FALSE /* Sub-D 9: Short 7-8 */ |
#define | LOOPBACK_DTR_DSR FALSE /* Sub-D 9: Short 4-6 */ |
#define | LOOPBACK_DTR_RING FALSE /* Sub-D 9: Short 4-9 */ |
#define | LOOPBACK_DTR_DCD FALSE /* Sub-D 9: Short 4-1 */ |
#define | TEST_COUNT (sizeof(test) / sizeof(TEST)) |
#define | check_dcb_member(a, b) ok(pdcb1->a == pdcb2->a, "%s(\"%s\"), 0x%02x: "#a" is "b", should be "b"\n", function, ptest->string, initial_value, pdcb1->a, pdcb2->a) |
#define | check_dcb_member2(a, c, b) if(pdcb2->a == c) { check_dcb_member(a,b); } else { ok(pdcb1->a == pdcb2->a || pdcb1->a == c, "%s(\"%s\"), 0x%02x: "#a" is "b", should be "b" or "b"\n", function, ptest->string, initial_value, pdcb1->a, pdcb2->a, c); } |
#define | check_timeouts_member(a) ok(ptimeouts1->a == ptimeouts2->a, "%s(\"%s\"), 0x%02x: "#a" is %u, should be %u\n", function, ptest->string, initial_value, ptimeouts1->a, ptimeouts2->a); |
Variables | |
static BOOL | loopback_txd_rxd = LOOPBACK_TXD_RXD |
static BOOL | loopback_rts_cts = LOOPBACK_CTS_RTS |
static BOOL | loopback_dtr_dsr = LOOPBACK_DTR_DSR |
static BOOL | loopback_dtr_ring = LOOPBACK_DTR_RING |
static BOOL | loopback_dtr_dcd = LOOPBACK_DTR_DCD |
static HANDLE | hEvent |
static HANDLE PIO_APC_ROUTINE | apc |
static HANDLE PIO_APC_ROUTINE void * | apc_user |
static HANDLE PIO_APC_ROUTINE void PIO_STATUS_BLOCK | io_status |
static HANDLE PIO_APC_ROUTINE void PIO_STATUS_BLOCK void * | buffer |
static HANDLE PIO_APC_ROUTINE void PIO_STATUS_BLOCK void ULONG | length |
static HANDLE PIO_APC_ROUTINE void PIO_STATUS_BLOCK void ULONG PLARGE_INTEGER | offset |
static HANDLE PIO_APC_ROUTINE void PIO_STATUS_BLOCK void ULONG PLARGE_INTEGER PULONG | key |
static const TEST | test [] |
|
static |
Definition at line 462 of file comm.c.
Referenced by test_BuildCommDCBA(), test_BuildCommDCBAndTimeoutsA(), test_BuildCommDCBAndTimeoutsW(), and test_BuildCommDCBW().
|
static |
Definition at line 450 of file comm.c.
Referenced by test_BuildCommDCBA(), test_BuildCommDCBAndTimeoutsA(), test_BuildCommDCBAndTimeoutsW(), and test_BuildCommDCBW().
|
static |
Definition at line 534 of file comm.c.
Referenced by test_BuildCommDCBAndTimeoutsA(), and test_BuildCommDCBAndTimeoutsW().
Definition at line 1516 of file comm.c.
Referenced by test_AbortWaitCts().
Definition at line 1851 of file comm.c.
Referenced by test_WaitBreak().
START_TEST | ( | comm | ) |
Definition at line 2201 of file comm.c.
Definition at line 1534 of file comm.c.
Referenced by START_TEST().
Definition at line 635 of file comm.c.
Referenced by START_TEST().
|
static |
Definition at line 543 of file comm.c.
Referenced by test_BuildCommDCB().
|
static |
Definition at line 559 of file comm.c.
Referenced by test_BuildCommDCB().
|
static |
Definition at line 605 of file comm.c.
Referenced by test_BuildCommDCB().
|
static |
Definition at line 578 of file comm.c.
Referenced by test_BuildCommDCB().
Definition at line 988 of file comm.c.
Referenced by START_TEST().
Definition at line 1995 of file comm.c.
Referenced by START_TEST().
Definition at line 736 of file comm.c.
Referenced by test_ReadTimeOut(), and test_WaitCommEvent().
Definition at line 1129 of file comm.c.
Referenced by START_TEST().
Definition at line 1178 of file comm.c.
Referenced by START_TEST().
Definition at line 1226 of file comm.c.
Referenced by START_TEST().
Definition at line 1274 of file comm.c.
Referenced by START_TEST().
Definition at line 1023 of file comm.c.
Referenced by START_TEST().
Definition at line 1005 of file comm.c.
Referenced by START_TEST().
Definition at line 689 of file comm.c.
Referenced by test_AbortWaitCts(), test_ClearCommError(), test_FlushFileBuffers(), test_LoopbackCtsRts(), test_LoopbackDtrDcd(), test_LoopbackDtrDsr(), test_LoopbackDtrRing(), test_LoopbackRead(), test_non_pending_errors(), test_read_write(), test_ReadTimeOut(), test_WaitBreak(), test_WaitCommEvent(), test_WaitCts(), test_WaitDcd(), test_WaitDsr(), test_WaitRing(), test_WaitRx(), and test_waittxempty().
Definition at line 2020 of file comm.c.
Referenced by START_TEST().
Definition at line 749 of file comm.c.
Referenced by START_TEST().
Definition at line 1931 of file comm.c.
Referenced by START_TEST().
Definition at line 1869 of file comm.c.
Referenced by START_TEST().
Definition at line 1941 of file comm.c.
Referenced by START_TEST().
Definition at line 1428 of file comm.c.
Referenced by START_TEST().
Definition at line 1770 of file comm.c.
Referenced by START_TEST().
Definition at line 1601 of file comm.c.
Referenced by START_TEST().
Definition at line 1683 of file comm.c.
Referenced by START_TEST().
Definition at line 1329 of file comm.c.
Referenced by START_TEST().
Definition at line 790 of file comm.c.
Referenced by START_TEST().
Definition at line 1404 of file comm.c.
Referenced by test_WaitCts(), test_WaitDcd(), test_WaitDsr(), and test_WaitRing().
static HANDLE PIO_APC_ROUTINE apc |
static HANDLE PIO_APC_ROUTINE void * apc_user |
static HANDLE hEvent |
Definition at line 54 of file comm.c.
Referenced by _At_(), CKsProxy::AdviseTime(), CMP_WaitNoPendingInstallEvents(), ATL::CEvent::Create(), CreateGPEvent(), CreateMemoryResourceNotification(), DECLARE_INTERFACE_(), DelayedRegNotifyChangeKeyValue(), DispatcherThread(), DllMain(), DP_CreatePlayer(), DP_IF_CreatePlayer(), ElfChangeNotify(), execute_test(), Icmp6SendEcho2(), IcmpSendEcho(), IcmpSendEcho2(), IDirectPlay4AImpl_CreatePlayer(), IDirectPlay4Impl_CreatePlayer(), COutputPin::IoProcessRoutine(), IReferenceClockImpl_AdviseTime(), listen_pipe(), LsarStartRpcServer(), MediaEvent_GetEventHandle(), mmTaskCreate(), NotifyChangeEventLog(), ATL::CRegKey::NotifyChangeKeyValue(), NtCreateEvent(), NtGdiDvpAcquireNotification(), NtGdiDvpReleaseNotification(), NtOpenEvent(), ok_event_sequence(), ATL::CEvent::Open(), PulseEvent(), RasConnectionNotificationA(), RasConnectionNotificationW(), RasSecurityDialogReceive(), ReferenceClock_AdviseTime(), RefreshPolicy(), RefreshPolicyEx(), RegisterGPNotification(), RegNotifyChangeKeyValue(), ResetEvent(), RunTests(), ScmWaitForLsa(), serverThreadMain3(), serverThreadMain5(), SetEvent(), SetShellReadyEvent(), START_TEST(), SystemClockImpl_AdviseTime(), TerminateShell(), Test1(), Test2(), Test3(), test_alertable(), test_cancelio(), test_create(), test_CreateRemoteThread(), test_events(), test_nonalertable(), test_ntncdf(), test_ntncdf_async(), test_overlapped(), TestKM(), TestTerminateProcess(), ThunkDirectDraw2_WaitForVerticalBlank(), ThunkDirectDraw4_WaitForVerticalBlank(), ThunkDirectDraw_WaitForVerticalBlank(), CRegWatcher::Uninit(), UnregisterGPNotification(), WaitForLsass(), WaitForMachinePolicyForegroundProcessing(), WaitForSCManager(), WaitForUserPolicyForegroundProcessing(), WAVE_mciPlay(), WAVE_mciRecord(), WSACloseEvent(), WSAResetEvent(), and WSASetEvent().
static IO_STATUS_BLOCK IO_STATUS_BLOCK * io_status |
Definition at line 56 of file comm.c.
Referenced by rpcrt4_conn_np_close_read(), rpcrt4_conn_np_read(), rpcrt4_conn_np_write(), VfdFormatTrack(), and VfdOpenImage().
|
static |
Definition at line 52 of file comm.c.
Referenced by test_LoopbackDtrDcd(), and test_WaitDcd().
|
static |
Definition at line 50 of file comm.c.
Referenced by test_LoopbackDtrDsr(), and test_WaitDsr().
|
static |
Definition at line 51 of file comm.c.
Referenced by test_LoopbackDtrRing(), and test_WaitRing().
|
static |
Definition at line 49 of file comm.c.
Referenced by test_LoopbackCtsRts(), and test_WaitCts().
|
static |
Definition at line 48 of file comm.c.
Referenced by test_LoopbackRead(), test_WaitBreak(), and test_WaitRx().
Definition at line 57 of file comm.c.
Referenced by test_read_write().
Definition at line 73 of file comm.c.
Referenced by test_BuildCommDCB().