Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
2a2d09c5
Commit
2a2d09c5
authored
Mar 11, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/tests: Remove tests causing occasional crashes on Windows.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f5ace38a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
44 deletions
+0
-44
mf.c
dlls/mf/tests/mf.c
+0
-44
No files found.
dlls/mf/tests/mf.c
View file @
2a2d09c5
...
...
@@ -875,14 +875,8 @@ static void test_sequencer_source(void)
struct
test_callback
{
IMFAsyncCallback
IMFAsyncCallback_iface
;
HANDLE
event
;
};
static
struct
test_callback
*
impl_from_IMFAsyncCallback
(
IMFAsyncCallback
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
test_callback
,
IMFAsyncCallback_iface
);
}
static
HRESULT
WINAPI
testcallback_QueryInterface
(
IMFAsyncCallback
*
iface
,
REFIID
riid
,
void
**
obj
)
{
if
(
IsEqualIID
(
riid
,
&
IID_IMFAsyncCallback
)
||
...
...
@@ -915,34 +909,8 @@ static HRESULT WINAPI testcallback_GetParameters(IMFAsyncCallback *iface, DWORD
static
HRESULT
WINAPI
testcallback_Invoke
(
IMFAsyncCallback
*
iface
,
IMFAsyncResult
*
result
)
{
struct
test_callback
*
callback
=
impl_from_IMFAsyncCallback
(
iface
);
IMFMediaSession
*
session
;
IUnknown
*
state
,
*
obj
;
HRESULT
hr
;
ok
(
result
!=
NULL
,
"Unexpected result object.
\n
"
);
state
=
IMFAsyncResult_GetStateNoAddRef
(
result
);
if
(
state
&&
SUCCEEDED
(
IUnknown_QueryInterface
(
state
,
&
IID_IMFMediaSession
,
(
void
**
)
&
session
)))
{
IMFMediaEvent
*
event
;
hr
=
IMFMediaSession_EndGetEvent
(
session
,
result
,
&
event
);
ok
(
hr
==
S_OK
,
"Failed to finalize GetEvent, hr %#x.
\n
"
,
hr
);
hr
=
IMFAsyncResult_GetObject
(
result
,
&
obj
);
ok
(
hr
==
E_POINTER
,
"Unexpected hr %#x.
\n
"
,
hr
);
IMFMediaEvent_Release
(
event
);
hr
=
IMFMediaSession_EndGetEvent
(
session
,
result
,
&
event
);
ok
(
hr
==
E_FAIL
,
"Unexpected result, hr %#x.
\n
"
,
hr
);
IMFMediaSession_Release
(
session
);
SetEvent
(
callback
->
event
);
}
return
E_NOTIMPL
;
}
...
...
@@ -958,7 +926,6 @@ static const IMFAsyncCallbackVtbl testcallbackvtbl =
static
void
init_test_callback
(
struct
test_callback
*
callback
)
{
callback
->
IMFAsyncCallback_iface
.
lpVtbl
=
&
testcallbackvtbl
;
callback
->
event
=
NULL
;
}
static
void
test_session_events
(
IMFMediaSession
*
session
)
...
...
@@ -967,7 +934,6 @@ static void test_session_events(IMFMediaSession *session)
IMFAsyncResult
*
result
;
IMFMediaEvent
*
event
;
HRESULT
hr
;
DWORD
ret
;
init_test_callback
(
&
callback
);
init_test_callback
(
&
callback2
);
...
...
@@ -998,16 +964,6 @@ static void test_session_events(IMFMediaSession *session)
hr
=
IMFMediaSession_BeginGetEvent
(
session
,
&
callback2
.
IMFAsyncCallback_iface
,
(
IUnknown
*
)
&
callback
.
IMFAsyncCallback_iface
);
ok
(
hr
==
MF_E_MULTIPLE_SUBSCRIBERS
,
"Unexpected hr %#x.
\n
"
,
hr
);
callback
.
event
=
CreateEventA
(
NULL
,
FALSE
,
FALSE
,
NULL
);
hr
=
IMFMediaSession_QueueEvent
(
session
,
MEError
,
&
GUID_NULL
,
E_FAIL
,
NULL
);
ok
(
hr
==
S_OK
,
"Failed to queue event, hr %#x.
\n
"
,
hr
);
ret
=
WaitForSingleObject
(
callback
.
event
,
100
);
ok
(
ret
==
WAIT_OBJECT_0
,
"Unexpected return value %#x.
\n
"
,
ret
);
CloseHandle
(
callback
.
event
);
hr
=
MFCreateAsyncResult
(
NULL
,
&
callback
.
IMFAsyncCallback_iface
,
NULL
,
&
result
);
ok
(
hr
==
S_OK
,
"Failed to create result, 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