Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
be25a23b
Commit
be25a23b
authored
Jul 01, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 02, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qedit/tests: Add COM aggregation test for MediaDet.
parent
855046fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
mediadet.c
dlls/qedit/tests/mediadet.c
+18
-0
No files found.
dlls/qedit/tests/mediadet.c
View file @
be25a23b
...
...
@@ -132,7 +132,9 @@ static BOOL init_tests(void)
static
void
test_mediadet
(
void
)
{
HRESULT
hr
;
struct
unk_impl
unk_obj
=
{{
&
unk_vtbl
},
19
,
NULL
};
IMediaDet
*
pM
=
NULL
;
ULONG
refcount
;
BSTR
filename
=
NULL
;
LONG
nstrms
=
0
;
LONG
strm
;
...
...
@@ -141,6 +143,22 @@ static void test_mediadet(void)
int
flags
;
int
i
;
/* COM aggregation */
hr
=
CoCreateInstance
(
&
CLSID_MediaDet
,
&
unk_obj
.
IUnknown_iface
,
CLSCTX_INPROC_SERVER
,
&
IID_IUnknown
,
(
void
**
)
&
unk_obj
.
inner_unk
);
ok
(
hr
==
S_OK
,
"CoCreateInstance failed: %08x
\n
"
,
hr
);
hr
=
IUnknown_QueryInterface
(
unk_obj
.
inner_unk
,
&
IID_IMediaDet
,
(
void
**
)
&
pM
);
ok
(
hr
==
S_OK
,
"QueryInterface for IID_IMediaDet failed: %08x
\n
"
,
hr
);
refcount
=
IMediaDet_AddRef
(
pM
);
ok
(
refcount
==
unk_obj
.
ref
,
"MediaDet just pretends to support COM aggregation
\n
"
);
refcount
=
IMediaDet_Release
(
pM
);
ok
(
refcount
==
unk_obj
.
ref
,
"MediaDet just pretends to support COM aggregation
\n
"
);
refcount
=
IMediaDet_Release
(
pM
);
ok
(
refcount
==
19
,
"Refcount should be back at 19 but is %u
\n
"
,
refcount
);
IUnknown_Release
(
unk_obj
.
inner_unk
);
/* test.avi has one video stream. */
hr
=
CoCreateInstance
(
&
CLSID_MediaDet
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IMediaDet
,
(
LPVOID
*
)
&
pM
);
...
...
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