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
dea016db
Commit
dea016db
authored
Oct 17, 2018
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Add more tests for default envelope and adressing versions.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
366e693f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
0 deletions
+47
-0
msg.c
dlls/webservices/tests/msg.c
+47
-0
No files found.
dlls/webservices/tests/msg.c
View file @
dea016db
...
...
@@ -104,6 +104,7 @@ static void test_WsCreateMessageForChannel(void)
hr
=
WsCreateMessageForChannel
(
NULL
,
NULL
,
0
,
&
msg
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"got %08x
\n
"
,
hr
);
/* HTTP */
hr
=
WsCreateChannel
(
WS_CHANNEL_TYPE_REQUEST
,
WS_HTTP_CHANNEL_BINDING
,
NULL
,
0
,
NULL
,
&
channel
,
NULL
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
...
...
@@ -154,6 +155,52 @@ static void test_WsCreateMessageForChannel(void)
WsFreeChannel
(
channel
);
WsFreeMessage
(
msg
);
/* TCP */
hr
=
WsCreateChannel
(
WS_CHANNEL_TYPE_DUPLEX_SESSION
,
WS_TCP_CHANNEL_BINDING
,
NULL
,
0
,
NULL
,
&
channel
,
NULL
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
hr
=
WsCreateMessageForChannel
(
channel
,
NULL
,
0
,
&
msg
,
NULL
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
env_version
=
0xdeadbeef
;
hr
=
WsGetMessageProperty
(
msg
,
WS_MESSAGE_PROPERTY_ENVELOPE_VERSION
,
&
env_version
,
sizeof
(
env_version
),
NULL
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
env_version
==
WS_ENVELOPE_VERSION_SOAP_1_2
,
"got %u
\n
"
,
env_version
);
addr_version
=
0xdeadbeef
;
hr
=
WsGetMessageProperty
(
msg
,
WS_MESSAGE_PROPERTY_ADDRESSING_VERSION
,
&
addr_version
,
sizeof
(
addr_version
),
NULL
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
addr_version
==
WS_ADDRESSING_VERSION_1_0
,
"got %u
\n
"
,
addr_version
);
WsFreeChannel
(
channel
);
WsFreeMessage
(
msg
);
/* UDP */
hr
=
WsCreateChannel
(
WS_CHANNEL_TYPE_DUPLEX
,
WS_UDP_CHANNEL_BINDING
,
NULL
,
0
,
NULL
,
&
channel
,
NULL
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
hr
=
WsCreateMessageForChannel
(
channel
,
NULL
,
0
,
&
msg
,
NULL
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
env_version
=
0xdeadbeef
;
hr
=
WsGetMessageProperty
(
msg
,
WS_MESSAGE_PROPERTY_ENVELOPE_VERSION
,
&
env_version
,
sizeof
(
env_version
),
NULL
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
env_version
==
WS_ENVELOPE_VERSION_SOAP_1_2
,
"got %u
\n
"
,
env_version
);
addr_version
=
0xdeadbeef
;
hr
=
WsGetMessageProperty
(
msg
,
WS_MESSAGE_PROPERTY_ADDRESSING_VERSION
,
&
addr_version
,
sizeof
(
addr_version
),
NULL
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
addr_version
==
WS_ADDRESSING_VERSION_1_0
,
"got %u
\n
"
,
addr_version
);
WsFreeChannel
(
channel
);
WsFreeMessage
(
msg
);
}
static
void
test_WsInitializeMessage
(
void
)
...
...
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