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
d93f930b
Commit
d93f930b
authored
Sep 11, 2023
by
Alfred Agrell
Committed by
Alexandre Julliard
Sep 12, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/tests: Add test for VMR9SurfaceAllocatorNotify_NotifyEvent.
parent
09e54b89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
vmr9.c
dlls/quartz/tests/vmr9.c
+37
-0
No files found.
dlls/quartz/tests/vmr9.c
View file @
d93f930b
...
...
@@ -4267,6 +4267,42 @@ static void test_unconnected_eos(void)
ok
(
!
ref
,
"Got outstanding refcount %ld.
\n
"
,
ref
);
}
static
void
test_notifyevent
(
void
)
{
IFilterGraph2
*
graph
=
create_graph
();
IBaseFilter
*
filter
=
create_vmr9
(
VMR9Mode_Renderless
);
IVMRSurfaceAllocatorNotify9
*
notify
;
IMediaEvent
*
eventsrc
;
unsigned
int
ret
;
HRESULT
hr
;
ULONG
ref
;
hr
=
IFilterGraph2_AddFilter
(
graph
,
filter
,
NULL
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
hr
=
IFilterGraph2_QueryInterface
(
graph
,
&
IID_IMediaEvent
,
(
void
**
)
&
eventsrc
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
ret
=
check_event_code
(
eventsrc
,
0
,
0x12345678
,
0x9ABC
,
0xDEF0
);
ok
(
ret
==
0
,
"Got %u custom events.
\n
"
,
ret
);
hr
=
IBaseFilter_QueryInterface
(
filter
,
&
IID_IVMRSurfaceAllocatorNotify9
,
(
void
**
)
&
notify
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
hr
=
IVMRSurfaceAllocatorNotify9_NotifyEvent
(
notify
,
0x12345678
,
0x9ABC
,
0xDEF0
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
ret
=
check_event_code
(
eventsrc
,
0
,
0x12345678
,
0x9ABC
,
0xDEF0
);
ok
(
ret
==
1
,
"Got %u custom events.
\n
"
,
ret
);
IMediaEvent_Release
(
eventsrc
);
ref
=
IFilterGraph2_Release
(
graph
);
ok
(
!
ref
,
"Got outstanding refcount %ld.
\n
"
,
ref
);
ref
=
IBaseFilter_Release
(
filter
);
ok
(
!
ref
,
"Got outstanding refcount %ld.
\n
"
,
ref
);
ref
=
IVMRSurfaceAllocatorNotify9_Release
(
notify
);
ok
(
!
ref
,
"Got outstanding refcount %ld.
\n
"
,
ref
);
}
START_TEST
(
vmr9
)
{
IBaseFilter
*
filter
;
...
...
@@ -4303,6 +4339,7 @@ START_TEST(vmr9)
test_windowless_size
();
test_mixing_prefs
();
test_unconnected_eos
();
test_notifyevent
();
CoUninitialize
();
}
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