Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
29cc256b
Commit
29cc256b
authored
Dec 13, 2007
by
Lei Zhang
Committed by
Alexandre Julliard
Dec 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Add referenceclock QueryInterface test.
parent
766046d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
referenceclock.c
dlls/quartz/tests/referenceclock.c
+21
-0
No files found.
dlls/quartz/tests/referenceclock.c
View file @
29cc256b
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment