Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sebastian Mayr
wine
Commits
61f4fff4
Commit
61f4fff4
authored
17 years ago
by
Misha Koshelev
Committed by
Alexandre Julliard
17 years ago
Browse files
Options
Downloads
Patches
Plain Diff
msi/tests: automation: Add tests for SummaryInfo::PropertyCount.
parent
dcbd8e93
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/msi/tests/automation.c
+28
-0
28 additions, 0 deletions
dlls/msi/tests/automation.c
with
28 additions
and
0 deletions
dlls/msi/tests/automation.c
+
28
−
0
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
);
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment