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
2bc231e0
Commit
2bc231e0
authored
Sep 13, 2016
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices/tests: Add another repeating element test.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
66899dd6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
reader.c
dlls/webservices/tests/reader.c
+21
-0
No files found.
dlls/webservices/tests/reader.c
View file @
2bc231e0
...
@@ -2831,6 +2831,11 @@ static void test_repeating_element(void)
...
@@ -2831,6 +2831,11 @@ static void test_repeating_element(void)
struct
service3
*
service
;
struct
service3
*
service
;
ULONG
service_count
;
ULONG
service_count
;
}
*
test3
;
}
*
test3
;
struct
services4
{
struct
service
**
service
;
ULONG
service_count
;
}
*
test4
;
hr
=
WsCreateHeap
(
1
<<
16
,
0
,
NULL
,
0
,
&
heap
,
NULL
);
hr
=
WsCreateHeap
(
1
<<
16
,
0
,
NULL
,
0
,
&
heap
,
NULL
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
...
@@ -2880,8 +2885,24 @@ static void test_repeating_element(void)
...
@@ -2880,8 +2885,24 @@ static void test_repeating_element(void)
ok
(
test
->
service
[
0
].
id
==
1
,
"got %u
\n
"
,
test
->
service
[
0
].
id
);
ok
(
test
->
service
[
0
].
id
==
1
,
"got %u
\n
"
,
test
->
service
[
0
].
id
);
ok
(
test
->
service
[
1
].
id
==
2
,
"got %u
\n
"
,
test
->
service
[
1
].
id
);
ok
(
test
->
service
[
1
].
id
==
2
,
"got %u
\n
"
,
test
->
service
[
1
].
id
);
/* array of pointers */
prepare_struct_type_test
(
reader
,
data12
);
f
.
options
=
WS_FIELD_POINTER
;
test4
=
NULL
;
hr
=
WsReadType
(
reader
,
WS_ELEMENT_TYPE_MAPPING
,
WS_STRUCT_TYPE
,
&
s
,
WS_READ_REQUIRED_POINTER
,
heap
,
&
test4
,
sizeof
(
test4
),
NULL
);
ok
(
hr
==
S_OK
||
broken
(
hr
==
E_INVALIDARG
)
/* win7 */
,
"got %08x
\n
"
,
hr
);
if
(
test4
)
{
ok
(
test4
->
service
!=
NULL
,
"service not set
\n
"
);
ok
(
test4
->
service_count
==
2
,
"got %u
\n
"
,
test4
->
service_count
);
ok
(
test4
->
service
[
0
]
->
id
==
1
,
"got %u
\n
"
,
test4
->
service
[
0
]
->
id
);
ok
(
test4
->
service
[
1
]
->
id
==
2
,
"got %u
\n
"
,
test4
->
service
[
1
]
->
id
);
}
/* item range */
/* item range */
prepare_struct_type_test
(
reader
,
data13
);
prepare_struct_type_test
(
reader
,
data13
);
f
.
options
=
0
;
range
.
minItemCount
=
0
;
range
.
minItemCount
=
0
;
range
.
maxItemCount
=
1
;
range
.
maxItemCount
=
1
;
f
.
itemRange
=
&
range
;
f
.
itemRange
=
&
range
;
...
...
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