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
61f4fff4
Commit
61f4fff4
authored
Jun 04, 2007
by
Misha Koshelev
Committed by
Alexandre Julliard
Jun 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: automation: Add tests for SummaryInfo::PropertyCount.
parent
dcbd8e93
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
automation.c
dlls/msi/tests/automation.c
+28
-0
No files found.
dlls/msi/tests/automation.c
View file @
61f4fff4
...
...
@@ -1296,6 +1296,18 @@ static HRESULT SummaryInfo_PropertyPut(IDispatch *pSummaryInfo, int pid, VARIANT
return
invoke
(
pSummaryInfo
,
"Property"
,
DISPATCH_PROPERTYPUT
,
&
dispparams
,
&
varresult
,
VT_EMPTY
);
}
static
HRESULT
SummaryInfo_PropertyCountGet
(
IDispatch
*
pSummaryInfo
,
int
*
pCount
)
{
VARIANT
varresult
;
DISPPARAMS
dispparams
=
{
NULL
,
NULL
,
0
,
0
};
HRESULT
hr
;
hr
=
invoke
(
pSummaryInfo
,
"PropertyCount"
,
DISPATCH_PROPERTYGET
,
&
dispparams
,
&
varresult
,
VT_I4
);
*
pCount
=
V_I4
(
&
varresult
);
VariantClear
(
&
varresult
);
return
hr
;
}
/* Test the various objects */
#define TEST_SUMMARYINFO_PROPERTIES_MODIFIED 4
...
...
@@ -1309,6 +1321,14 @@ static void test_SummaryInfo(IDispatch *pSummaryInfo, const msi_summary_info *in
HRESULT
hr
;
int
j
;
/* SummaryInfo::PropertyCount */
todo_wine
{
hr
=
SummaryInfo_PropertyCountGet
(
pSummaryInfo
,
&
j
);
ok
(
hr
==
S_OK
,
"SummaryInfo_PropertyCount failed, hresult 0x%08x
\n
"
,
hr
);
ok
(
j
==
num_info
,
"SummaryInfo_PropertyCount returned %d, expected %d
\n
"
,
j
,
num_info
);
}
/* SummaryInfo::Property, get for properties we have set */
for
(
j
=
0
;
j
<
num_info
;
j
++
)
{
...
...
@@ -1429,6 +1449,14 @@ static void test_SummaryInfo(IDispatch *pSummaryInfo, const msi_summary_info *in
ok
(
V_I4
(
&
var
)
==
V_I4
(
&
varresult
),
"SummaryInfo_PropertyGet expected %d, but returned %d
\n
"
,
V_I4
(
&
var
),
V_I4
(
&
varresult
));
VariantClear
(
&
varresult
);
VariantClear
(
&
var
);
/* SummaryInfo::PropertyCount */
todo_wine
{
hr
=
SummaryInfo_PropertyCountGet
(
pSummaryInfo
,
&
j
);
ok
(
hr
==
S_OK
,
"SummaryInfo_PropertyCount failed, hresult 0x%08x
\n
"
,
hr
);
ok
(
j
==
num_info
+
4
,
"SummaryInfo_PropertyCount returned %d, expected %d
\n
"
,
j
,
num_info
);
}
}
}
...
...
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