ReactOS 0.4.16-dev-112-g52265ae
|
#include <windows.h>
#include <stdio.h>
#include <string.h>
Go to the source code of this file.
Macros | |
#define | DISPLAY_COLUMNS 78 |
#define | LINE_BUFFER_SIZE DISPLAY_COLUMNS + 2 |
#define | MEM_BLOCK_SIZE 0x80000 |
Typedefs | |
typedef enum TestStatus | TEST_STATUS |
Enumerations | |
enum | TestStatus { FAILED = 0 , PASSED = 1 , SKIPPED = -1 } |
Functions | |
TEST_STATUS | TEST_CombineStatus (TEST_STATUS a, TEST_STATUS b) |
void | OUTPUT_BannerLine () |
void | OUTPUT_Line (const char *szLine) |
void | OUTPUT_Banner (const char *szBanner) |
void | OUTPUT_Result (TEST_STATUS status) |
void | OUTPUT_HexDword (DWORD dw) |
void | OUTPUT_Handle (HANDLE h) |
void | OutputAllocFlags (UINT pFlags) |
void | OutputErrorCode () |
TEST_STATUS | TEST_MemoryWrite (LPVOID mem, DWORD cbSize) |
TEST_STATUS | TEST_MemoryRead (LPVOID mem, DWORD cbSize) |
int | IsMovable (HGLOBAL hMem) |
TEST_STATUS | TestGlobalAllocNFree (UINT allocFlags) |
TEST_STATUS | TestGlobalLockNUnlock (UINT allocFlags) |
TEST_STATUS | TestGlobalReAllocFixed () |
TEST_STATUS | TestGlobalReAllocMovable () |
TEST_STATUS | TestGlobalReAlloc () |
TEST_STATUS | TestGlobalFlagsMoveable () |
TEST_STATUS | TestGlobalFlagsFixed () |
TEST_STATUS | TestGlobalFlags () |
TEST_STATUS | TestGlobalHandle () |
TEST_STATUS | TestGlobalSize () |
TEST_STATUS | TestGlobalDiscard () |
int | main (int argc, char **argv) |
#define DISPLAY_COLUMNS 78 |
Definition at line 17 of file global_mem.c.
#define LINE_BUFFER_SIZE DISPLAY_COLUMNS + 2 |
Definition at line 18 of file global_mem.c.
#define MEM_BLOCK_SIZE 0x80000 |
Definition at line 25 of file global_mem.c.
typedef enum TestStatus TEST_STATUS |
Enumerator | |
---|---|
FAILED | |
PASSED | |
SKIPPED |
Definition at line 32 of file global_mem.c.
Definition at line 220 of file global_mem.c.
Referenced by TestGlobalReAllocFixed().
Definition at line 1033 of file global_mem.c.
Definition at line 118 of file global_mem.c.
Referenced by main(), TestGlobalAllocNFree(), TestGlobalDiscard(), TestGlobalFlags(), TestGlobalHandle(), TestGlobalLockNUnlock(), TestGlobalReAlloc(), and TestGlobalSize().
void OUTPUT_BannerLine | ( | ) |
Definition at line 149 of file global_mem.c.
Referenced by TestGlobalDiscard(), TestGlobalFlagsFixed(), TestGlobalFlagsMoveable(), TestGlobalHandle(), TestGlobalReAllocFixed(), and TestGlobalReAllocMovable().
Definition at line 142 of file global_mem.c.
Referenced by TestGlobalDiscard(), TestGlobalFlagsMoveable(), and TestGlobalSize().
Definition at line 79 of file global_mem.c.
Referenced by main(), OUTPUT_Banner(), OUTPUT_Handle(), OUTPUT_HexDword(), OUTPUT_Line(), OUTPUT_Result(), OutputAllocFlags(), OutputErrorCode(), TestGlobalAllocNFree(), TestGlobalDiscard(), TestGlobalFlags(), TestGlobalFlagsFixed(), TestGlobalFlagsMoveable(), TestGlobalHandle(), TestGlobalLockNUnlock(), TestGlobalReAlloc(), TestGlobalReAllocFixed(), TestGlobalReAllocMovable(), and TestGlobalSize().
void OUTPUT_Result | ( | TEST_STATUS | status | ) |
Definition at line 128 of file global_mem.c.
Referenced by main(), TestGlobalAllocNFree(), TestGlobalDiscard(), TestGlobalFlags(), TestGlobalFlagsFixed(), TestGlobalFlagsMoveable(), TestGlobalHandle(), TestGlobalLockNUnlock(), TestGlobalReAlloc(), TestGlobalReAllocFixed(), TestGlobalReAllocMovable(), and TestGlobalSize().
Definition at line 159 of file global_mem.c.
Referenced by TestGlobalAllocNFree(), and TestGlobalLockNUnlock().
void OutputErrorCode | ( | ) |
Definition at line 179 of file global_mem.c.
Referenced by TestGlobalLockNUnlock().
TEST_STATUS TEST_CombineStatus | ( | TEST_STATUS | a, |
TEST_STATUS | b | ||
) |
Definition at line 46 of file global_mem.c.
Referenced by main(), TestGlobalDiscard(), TestGlobalFlags(), TestGlobalFlagsFixed(), TestGlobalFlagsMoveable(), TestGlobalHandle(), TestGlobalLockNUnlock(), TestGlobalReAlloc(), TestGlobalReAllocFixed(), TestGlobalReAllocMovable(), and TestGlobalSize().
TEST_STATUS TEST_MemoryRead | ( | LPVOID | mem, |
DWORD | cbSize | ||
) |
Definition at line 204 of file global_mem.c.
Referenced by TestGlobalLockNUnlock(), TestGlobalReAllocFixed(), and TestGlobalReAllocMovable().
TEST_STATUS TEST_MemoryWrite | ( | LPVOID | mem, |
DWORD | cbSize | ||
) |
Definition at line 190 of file global_mem.c.
Referenced by TestGlobalReAllocFixed(), and TestGlobalReAllocMovable().
TEST_STATUS TestGlobalAllocNFree | ( | UINT | allocFlags | ) |
Definition at line 238 of file global_mem.c.
Referenced by main().
TEST_STATUS TestGlobalDiscard | ( | ) |
Definition at line 976 of file global_mem.c.
Referenced by main().
TEST_STATUS TestGlobalFlags | ( | ) |
TEST_STATUS TestGlobalFlagsFixed | ( | ) |
Definition at line 718 of file global_mem.c.
Referenced by TestGlobalFlags().
TEST_STATUS TestGlobalFlagsMoveable | ( | ) |
Definition at line 621 of file global_mem.c.
Referenced by TestGlobalFlags().
TEST_STATUS TestGlobalHandle | ( | ) |
Definition at line 790 of file global_mem.c.
Referenced by main().
TEST_STATUS TestGlobalLockNUnlock | ( | UINT | allocFlags | ) |
Definition at line 267 of file global_mem.c.
Referenced by main().
TEST_STATUS TestGlobalReAlloc | ( | ) |
TEST_STATUS TestGlobalReAllocFixed | ( | ) |
Definition at line 342 of file global_mem.c.
Referenced by TestGlobalReAlloc().
TEST_STATUS TestGlobalReAllocMovable | ( | ) |
Definition at line 500 of file global_mem.c.
Referenced by TestGlobalReAlloc().
TEST_STATUS TestGlobalSize | ( | ) |
Definition at line 876 of file global_mem.c.
Referenced by main().