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
03510be5
Commit
03510be5
authored
Aug 31, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Sep 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Add a test for OleLoad.
parent
d0b4717c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
ole2.c
dlls/ole32/tests/ole2.c
+33
-0
No files found.
dlls/ole32/tests/ole2.c
View file @
03510be5
...
@@ -759,6 +759,37 @@ static void test_OleCreate(IStorage *pStorage)
...
@@ -759,6 +759,37 @@ static void test_OleCreate(IStorage *pStorage)
trace
(
"end
\n
"
);
trace
(
"end
\n
"
);
}
}
static
void
test_OleLoad
(
IStorage
*
pStorage
)
{
HRESULT
hr
;
IOleObject
*
pObject
;
static
const
char
*
methods_oleload
[]
=
{
"OleObject_QueryInterface"
,
"OleObject_AddRef"
,
"OleObject_QueryInterface"
,
"OleObject_AddRef"
,
"OleObject_GetMiscStatus"
,
"OleObject_QueryInterface"
,
"OleObjectPersistStg_AddRef"
,
"OleObjectPersistStg_Load"
,
"OleObjectPersistStg_Release"
,
"OleObject_SetClientSite"
,
"OleObject_Release"
,
"OleObject_QueryInterface"
,
"OleObject_Release"
,
NULL
};
expected_method_list
=
methods_oleload
;
trace
(
"OleLoad:
\n
"
);
hr
=
OleLoad
(
pStorage
,
&
IID_IOleObject
,
(
IOleClientSite
*
)
0xdeadbeef
,
(
void
**
)
&
pObject
);
ok_ole_success
(
hr
,
"OleLoad"
);
IOleObject_Release
(
pObject
);
ok
(
!*
expected_method_list
,
"Method sequence starting from %s not called
\n
"
,
*
expected_method_list
);
}
START_TEST
(
ole2
)
START_TEST
(
ole2
)
{
{
DWORD
dwRegister
;
DWORD
dwRegister
;
...
@@ -780,6 +811,8 @@ START_TEST(ole2)
...
@@ -780,6 +811,8 @@ START_TEST(ole2)
ok_ole_success
(
hr
,
"IStorage_Stat"
);
ok_ole_success
(
hr
,
"IStorage_Stat"
);
ok
(
IsEqualCLSID
(
&
CLSID_Equation3
,
&
statstg
.
clsid
),
"Wrong CLSID in storage
\n
"
);
ok
(
IsEqualCLSID
(
&
CLSID_Equation3
,
&
statstg
.
clsid
),
"Wrong CLSID in storage
\n
"
);
test_OleLoad
(
pStorage
);
IStorage_Release
(
pStorage
);
IStorage_Release
(
pStorage
);
hr
=
CoRevokeClassObject
(
dwRegister
);
hr
=
CoRevokeClassObject
(
dwRegister
);
...
...
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