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
ec4feafc
Commit
ec4feafc
authored
Nov 21, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Nov 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/tests: Add some more tests for IMediaSeeking return value handling.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
54d74a05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
filtergraph.c
dlls/quartz/tests/filtergraph.c
+23
-1
No files found.
dlls/quartz/tests/filtergraph.c
View file @
ec4feafc
...
@@ -1623,7 +1623,7 @@ static HRESULT WINAPI testseek_GetDuration(IMediaSeeking *iface, LONGLONG *durat
...
@@ -1623,7 +1623,7 @@ static HRESULT WINAPI testseek_GetDuration(IMediaSeeking *iface, LONGLONG *durat
struct
testfilter
*
filter
=
impl_from_IMediaSeeking
(
iface
);
struct
testfilter
*
filter
=
impl_from_IMediaSeeking
(
iface
);
if
(
winetest_debug
>
1
)
trace
(
"%p->GetDuration()
\n
"
,
iface
);
if
(
winetest_debug
>
1
)
trace
(
"%p->GetDuration()
\n
"
,
iface
);
*
duration
=
filter
->
seek_duration
;
*
duration
=
filter
->
seek_duration
;
return
S_OK
;
return
filter
->
seek_hr
;
}
}
static
HRESULT
WINAPI
testseek_GetStopPosition
(
IMediaSeeking
*
iface
,
LONGLONG
*
stop
)
static
HRESULT
WINAPI
testseek_GetStopPosition
(
IMediaSeeking
*
iface
,
LONGLONG
*
stop
)
...
@@ -4399,6 +4399,26 @@ static void test_graph_seeking(void)
...
@@ -4399,6 +4399,26 @@ static void test_graph_seeking(void)
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
time
==
0x23456
,
"Got time %s.
\n
"
,
wine_dbgstr_longlong
(
time
));
ok
(
time
==
0x23456
,
"Got time %s.
\n
"
,
wine_dbgstr_longlong
(
time
));
filter1
.
seek_hr
=
filter2
.
seek_hr
=
0xbeef
;
hr
=
IMediaSeeking_GetDuration
(
seeking
,
&
time
);
todo_wine
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
time
==
0x23456
,
"Got time %s.
\n
"
,
wine_dbgstr_longlong
(
time
));
filter1
.
seek_hr
=
E_NOTIMPL
;
filter2
.
seek_hr
=
S_OK
;
hr
=
IMediaSeeking_GetDuration
(
seeking
,
&
time
);
todo_wine
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
time
==
0x12345
,
"Got time %s.
\n
"
,
wine_dbgstr_longlong
(
time
));
filter1
.
seek_hr
=
0xdeadbeef
;
hr
=
IMediaSeeking_GetDuration
(
seeking
,
&
time
);
ok
(
hr
==
0xdeadbeef
,
"Got hr %#x.
\n
"
,
hr
);
filter1
.
seek_hr
=
filter2
.
seek_hr
=
E_NOTIMPL
;
hr
=
IMediaSeeking_GetDuration
(
seeking
,
&
time
);
ok
(
hr
==
E_NOTIMPL
,
"Got hr %#x.
\n
"
,
hr
);
filter1
.
seek_hr
=
filter2
.
seek_hr
=
S_OK
;
flush_cached_seeking
(
graph
,
&
filter1
);
flush_cached_seeking
(
graph
,
&
filter1
);
flush_cached_seeking
(
graph
,
&
filter2
);
flush_cached_seeking
(
graph
,
&
filter2
);
...
@@ -4420,6 +4440,7 @@ static void test_graph_seeking(void)
...
@@ -4420,6 +4440,7 @@ static void test_graph_seeking(void)
ok
(
time
==
0x65432
,
"Got time %s.
\n
"
,
wine_dbgstr_longlong
(
time
));
ok
(
time
==
0x65432
,
"Got time %s.
\n
"
,
wine_dbgstr_longlong
(
time
));
filter1
.
seek_hr
=
E_NOTIMPL
;
filter1
.
seek_hr
=
E_NOTIMPL
;
filter2
.
seek_hr
=
S_OK
;
hr
=
IMediaSeeking_GetStopPosition
(
seeking
,
&
time
);
hr
=
IMediaSeeking_GetStopPosition
(
seeking
,
&
time
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
time
==
0x54321
,
"Got time %s.
\n
"
,
wine_dbgstr_longlong
(
time
));
ok
(
time
==
0x54321
,
"Got time %s.
\n
"
,
wine_dbgstr_longlong
(
time
));
...
@@ -4470,6 +4491,7 @@ static void test_graph_seeking(void)
...
@@ -4470,6 +4491,7 @@ static void test_graph_seeking(void)
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
filter1
.
seek_hr
=
E_NOTIMPL
;
filter1
.
seek_hr
=
E_NOTIMPL
;
filter2
.
seek_hr
=
S_OK
;
hr
=
IMediaSeeking_SetPositions
(
seeking
,
&
current
,
AM_SEEKING_AbsolutePositioning
,
hr
=
IMediaSeeking_SetPositions
(
seeking
,
&
current
,
AM_SEEKING_AbsolutePositioning
,
&
stop
,
AM_SEEKING_AbsolutePositioning
);
&
stop
,
AM_SEEKING_AbsolutePositioning
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
...
...
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