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
853cca93
Commit
853cca93
authored
Aug 17, 2017
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Aug 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmp/tests: Add tests for IConnectionPointContainer.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1df10ead
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
2 deletions
+46
-2
oleobj.c
dlls/wmp/tests/oleobj.c
+46
-2
No files found.
dlls/wmp/tests/oleobj.c
View file @
853cca93
...
...
@@ -854,10 +854,53 @@ static void test_QI(IUnknown *unk)
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IOleInPlaceObjectWindowless
,
(
void
**
)
&
tmp
);
ok
(
hres
==
S_OK
,
"Could not get IOleInPlaceObjectWindowless iface: %08x
\n
"
,
hres
);
IUnknown_Release
(
tmp
);
}
static
void
test_IConnectionPointContainer
(
IOleObject
*
oleobj
)
{
IConnectionPointContainer
*
container
;
IConnectionPoint
*
point
;
HRESULT
hres
;
hres
=
I
Unknown_QueryInterface
(
unk
,
&
IID_IConnectionPointContainer
,
(
void
**
)
&
tmp
);
hres
=
I
OleObject_QueryInterface
(
oleobj
,
&
IID_IConnectionPointContainer
,
(
void
**
)
&
container
);
ok
(
hres
==
S_OK
,
"Could not get IConnectionPointContainer iface: %08x
\n
"
,
hres
);
IUnknown_Release
(
tmp
);
hres
=
IConnectionPointContainer_FindConnectionPoint
(
container
,
&
IID_IPropertyNotifySink
,
&
point
);
ok
(
hres
==
CONNECT_E_NOCONNECTION
,
"got: %08x
\n
"
,
hres
);
point
=
NULL
;
hres
=
IConnectionPointContainer_FindConnectionPoint
(
container
,
&
IID_IWMPEvents
,
&
point
);
todo_wine
ok
(
hres
==
S_OK
,
"got: %08x
\n
"
,
hres
);
if
(
point
)
IConnectionPoint_Release
(
point
);
point
=
NULL
;
hres
=
IConnectionPointContainer_FindConnectionPoint
(
container
,
&
IID_IWMPEvents2
,
&
point
);
todo_wine
ok
(
hres
==
S_OK
,
"got: %08x
\n
"
,
hres
);
if
(
point
)
IConnectionPoint_Release
(
point
);
point
=
NULL
;
hres
=
IConnectionPointContainer_FindConnectionPoint
(
container
,
&
IID_IWMPEvents3
,
&
point
);
if
(
FAILED
(
hres
))
todo_wine
win_skip
(
"IWMPEvents3 not supported
\n
"
);
if
(
point
)
IConnectionPoint_Release
(
point
);
point
=
NULL
;
hres
=
IConnectionPointContainer_FindConnectionPoint
(
container
,
&
IID_IWMPEvents4
,
&
point
);
if
(
FAILED
(
hres
))
todo_wine
win_skip
(
"IWMPEvents4 not supported
\n
"
);
if
(
point
)
IConnectionPoint_Release
(
point
);
point
=
NULL
;
hres
=
IConnectionPointContainer_FindConnectionPoint
(
container
,
&
IID__WMPOCXEvents
,
&
point
);
todo_wine
ok
(
hres
==
S_OK
,
"got: %08x
\n
"
,
hres
);
if
(
point
)
IConnectionPoint_Release
(
point
);
IConnectionPointContainer_Release
(
container
);
}
static
void
test_extent
(
IOleObject
*
oleobj
)
...
...
@@ -955,6 +998,7 @@ static void test_wmp(void)
IProvideClassInfo2_Release
(
class_info
);
test_QI
((
IUnknown
*
)
oleobj
);
test_IConnectionPointContainer
(
oleobj
);
test_extent
(
oleobj
);
hres
=
IOleObject_GetMiscStatus
(
oleobj
,
DVASPECT_CONTENT
,
&
misc_status
);
...
...
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