mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
quartz: Add referenceclock QueryInterface test.
This commit is contained in:
parent
766046d4ab
commit
29cc256b9a
1 changed files with 21 additions and 0 deletions
|
@ -27,6 +27,26 @@
|
|||
#include "dshow.h"
|
||||
#include "control.h"
|
||||
|
||||
static void test_IReferenceClock_query_interface(const char * clockdesc, IReferenceClock * pClock)
|
||||
{
|
||||
HRESULT hr;
|
||||
IUnknown *pF;
|
||||
|
||||
hr = IReferenceClock_QueryInterface(pClock, &IID_IUnknown, (LPVOID *)&pF);
|
||||
ok(hr == S_OK, "IReferenceClock_QueryInterface returned %x\n", hr);
|
||||
ok(pF != NULL, "pF is NULL\n");
|
||||
|
||||
hr = IReferenceClock_QueryInterface(pClock, &IID_IDirectDraw, (LPVOID *)&pF);
|
||||
ok(hr == E_NOINTERFACE, "IReferenceClock_QueryInterface returned %x\n", hr);
|
||||
todo_wine {
|
||||
ok(pF == NULL, "pF is not NULL\n");
|
||||
}
|
||||
|
||||
hr = IReferenceClock_QueryInterface(pClock, &IID_IReferenceClock, (LPVOID *)&pF);
|
||||
ok(hr == S_OK, "IReferenceClock_QueryInterface returned %x\n", hr);
|
||||
ok(pF != NULL, "pF is NULL\n");
|
||||
}
|
||||
|
||||
/* The following method expects a reference clock that will keep ticking for
|
||||
* at least 5 seconds since its creation. This method assumes no other methods
|
||||
* were called on the IReferenceClock interface since its creation.
|
||||
|
@ -81,6 +101,7 @@ static void test_IReferenceClock_SystemClock(void)
|
|||
ok(hr == S_OK, "Unable to create reference clock from system clock %x\n", hr);
|
||||
if (hr == S_OK)
|
||||
{
|
||||
test_IReferenceClock_query_interface("SystemClock", pReferenceClock);
|
||||
test_IReferenceClock_methods("SystemClock", pReferenceClock);
|
||||
IReferenceClock_Release(pReferenceClock);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue