ReactOS 0.4.15-dev-8621-g4b051b9
|
#include <stdio.h>
#include <wine/test.h>
#include <winuser.h>
#include <winreg.h>
#include <shlwapi.h>
#include <unknownbase.h>
Go to the source code of this file.
Classes | |
class | CTestSpy |
Macros | |
#define | WIN32_NO_STATUS |
#define | _INC_WINDOWS |
#define | COM_NO_WINDOWS_H |
#define | test_S_OK(hres, message) ok((hres) == S_OK, "%s (0x%lx instead of S_OK)\n", (message), (hres)) |
#define | test_HRES(hres, hresExpected, message) ok((hres) == (hresExpected), "%s (0x%lx instead of 0x%lx)\n", (message), (hres), (hresExpected)) |
#define | test_ref(spy, expectedRef) ok((spy)->GetRef() == (expectedRef), "unexpected refcount, %ld instead of %d\n", (spy)->GetRef(), (expectedRef)) |
Typedefs | |
typedef HRESULT(WINAPI * | pCoRegisterInitializeSpy_t) (_In_ LPINITIALIZESPY pSpy, _Out_ ULARGE_INTEGER *puliCookie) |
typedef HRESULT(WINAPI * | pCoRevokeInitializeSpy_t) (_In_ ULARGE_INTEGER uliCookie) |
Functions | |
void | test_IInitializeSpy_register2 () |
void | test_IInitializeSpy_switch_apt () |
void | test_IInitializeSpy_fail () |
void | test_IInitializeSpy_twice () |
START_TEST (initializespy) | |
Variables | |
pCoRegisterInitializeSpy_t | pCoRegisterInitializeSpy |
pCoRevokeInitializeSpy_t | pCoRevokeInitializeSpy |
const DWORD | INVALID_VALUE = 0xdeadbeef |
#define _INC_WINDOWS |
Definition at line 9 of file initializespy.cpp.
#define COM_NO_WINDOWS_H |
Definition at line 10 of file initializespy.cpp.
#define test_HRES | ( | hres, | |
hresExpected, | |||
message | |||
) | ok((hres) == (hresExpected), "%s (0x%lx instead of 0x%lx)\n", (message), (hres), (hresExpected)) |
Definition at line 22 of file initializespy.cpp.
#define test_ref | ( | spy, | |
expectedRef | |||
) | ok((spy)->GetRef() == (expectedRef), "unexpected refcount, %ld instead of %d\n", (spy)->GetRef(), (expectedRef)) |
Definition at line 23 of file initializespy.cpp.
#define test_S_OK | ( | hres, | |
message | |||
) | ok((hres) == S_OK, "%s (0x%lx instead of S_OK)\n", (message), (hres)) |
Definition at line 21 of file initializespy.cpp.
#define WIN32_NO_STATUS |
Definition at line 8 of file initializespy.cpp.
typedef HRESULT(WINAPI * pCoRegisterInitializeSpy_t) (_In_ LPINITIALIZESPY pSpy, _Out_ ULARGE_INTEGER *puliCookie) |
Definition at line 26 of file initializespy.cpp.
typedef HRESULT(WINAPI * pCoRevokeInitializeSpy_t) (_In_ ULARGE_INTEGER uliCookie) |
Definition at line 27 of file initializespy.cpp.
START_TEST | ( | initializespy | ) |
Definition at line 311 of file initializespy.cpp.
void test_IInitializeSpy_fail | ( | ) |
Definition at line 260 of file initializespy.cpp.
Referenced by START_TEST().
void test_IInitializeSpy_register2 | ( | ) |
Definition at line 159 of file initializespy.cpp.
Referenced by START_TEST().
void test_IInitializeSpy_switch_apt | ( | ) |
Definition at line 227 of file initializespy.cpp.
Referenced by START_TEST().
void test_IInitializeSpy_twice | ( | ) |
Definition at line 292 of file initializespy.cpp.
Referenced by START_TEST().
Definition at line 32 of file initializespy.cpp.
Referenced by CTestSpy::CTestSpy(), test_IInitializeSpy_fail(), and test_IInitializeSpy_twice().
pCoRegisterInitializeSpy_t pCoRegisterInitializeSpy |
Definition at line 28 of file initializespy.cpp.
Referenced by START_TEST(), test_IInitializeSpy_fail(), test_IInitializeSpy_register2(), test_IInitializeSpy_switch_apt(), and test_IInitializeSpy_twice().
pCoRevokeInitializeSpy_t pCoRevokeInitializeSpy |
Definition at line 29 of file initializespy.cpp.
Referenced by START_TEST(), test_IInitializeSpy_fail(), test_IInitializeSpy_twice(), and CTestSpy::~CTestSpy().