#include "wine/test.h"
#include "uuids.h"
#include "dshow.h"
#include "control.h"
Go to the source code of this file.
◆ COBJMACROS
◆ START_TEST()
START_TEST |
( |
referenceclock |
| ) |
|
Definition at line 109 of file referenceclock.c.
110{
112
114
116}
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
static void test_IReferenceClock_SystemClock(void)
◆ test_IReferenceClock_methods()
Definition at line 52 of file referenceclock.c.
53{
58
59
62
63
64
67 ok (
hr ==
S_FALSE ||
hr ==
S_OK,
"%s - Expected S_OK or S_FALSE, got 0x%08x\n", clockdesc,
hr);
68 ok (time1 != 0xdeadbeef,
"%s - value was NOT changed on return!\n", clockdesc);
69
70
73 ok (
hr ==
S_FALSE ||
hr ==
S_OK,
"%s - Expected S_OK or S_FALSE, got 0x%08x\n", clockdesc,
hr);
74 ok (time2 != 0xdeadbeef,
"%s - value was NOT changed on return!\n", clockdesc);
75
76
77
78 ok ((
hr !=
S_FALSE || time1 == time2),
"%s - returned S_FALSE, but values not equal!\n", clockdesc);
79
80 time1 = time2;
83
84 ok (
hr ==
S_OK,
"%s - Expected S_OK, got 0x%08x\n", clockdesc,
hr);
85
86
87
88 diff = time2 - time1;
90 ok (9940000 <= diff && diff <= 10240000,
"%s - Expected difference around 10000000, got %u\n", clockdesc, diff);
91
92}
#define IReferenceClock_GetTime(p, a)
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
Referenced by test_IReferenceClock_SystemClock().
◆ test_IReferenceClock_query_interface()
◆ test_IReferenceClock_SystemClock()
static void test_IReferenceClock_SystemClock |
( |
void |
| ) |
|
|
static |
Definition at line 94 of file referenceclock.c.
95{
98
100 ok(
hr ==
S_OK,
"Unable to create reference clock from system clock %x\n",
hr);
102 {
106 }
107}
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
#define IReferenceClock_Release(p)
static void test_IReferenceClock_methods(const char *clockdesc, IReferenceClock *pClock)
static void test_IReferenceClock_query_interface(const char *clockdesc, IReferenceClock *pClock)
Referenced by START_TEST().