wsdapi/tests: Add tests for EndpointReference, AppSequence, MetadataVersion in Hello message.
Signed-off-by: Owen Rudge <orudge@codeweavers.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
feee5ad96d
commit
14466ec6c2
|
@ -505,8 +505,8 @@ static void Publish_tests(void)
|
||||||
LPWSTR publisherIdW = NULL;
|
LPWSTR publisherIdW = NULL;
|
||||||
messageStorage *msgStorage;
|
messageStorage *msgStorage;
|
||||||
WSADATA wsaData;
|
WSADATA wsaData;
|
||||||
BOOL messageOK;
|
BOOL messageOK, hello_message_seen = FALSE, endpoint_reference_seen = FALSE, app_sequence_seen = FALSE;
|
||||||
BOOL hello_message_seen = FALSE;
|
BOOL metadata_version_seen = FALSE;
|
||||||
int ret, i;
|
int ret, i;
|
||||||
HRESULT rc;
|
HRESULT rc;
|
||||||
ULONG ref;
|
ULONG ref;
|
||||||
|
@ -597,9 +597,10 @@ static void Publish_tests(void)
|
||||||
messageOK = FALSE;
|
messageOK = FALSE;
|
||||||
|
|
||||||
hello_message_seen = (strstr(msg, "<wsa:Action>http://schemas.xmlsoap.org/ws/2005/04/discovery/Hello</wsa:Action>") != NULL);
|
hello_message_seen = (strstr(msg, "<wsa:Action>http://schemas.xmlsoap.org/ws/2005/04/discovery/Hello</wsa:Action>") != NULL);
|
||||||
messageOK = hello_message_seen && (strstr(msg, endpointReferenceString) != NULL);
|
endpoint_reference_seen = (strstr(msg, endpointReferenceString) != NULL);
|
||||||
messageOK = messageOK && (strstr(msg, "<wsd:AppSequence InstanceId=\"1\" MessageNumber=\"1\"></wsd:AppSequence>") != NULL);
|
app_sequence_seen = (strstr(msg, "<wsd:AppSequence InstanceId=\"1\" MessageNumber=\"1\"></wsd:AppSequence>") != NULL);
|
||||||
messageOK = messageOK && (strstr(msg, "<wsd:MetadataVersion>1</wsd:MetadataVersion>") != NULL);
|
metadata_version_seen = (strstr(msg, "<wsd:MetadataVersion>1</wsd:MetadataVersion>") != NULL);
|
||||||
|
messageOK = hello_message_seen && endpoint_reference_seen && app_sequence_seen && metadata_version_seen;
|
||||||
|
|
||||||
if (messageOK) break;
|
if (messageOK) break;
|
||||||
}
|
}
|
||||||
|
@ -612,6 +613,9 @@ static void Publish_tests(void)
|
||||||
heap_free(msgStorage);
|
heap_free(msgStorage);
|
||||||
|
|
||||||
ok(hello_message_seen == TRUE, "Hello message not received\n");
|
ok(hello_message_seen == TRUE, "Hello message not received\n");
|
||||||
|
todo_wine ok(endpoint_reference_seen == TRUE, "EndpointReference not received\n");
|
||||||
|
todo_wine ok(app_sequence_seen == TRUE, "AppSequence not received\n");
|
||||||
|
todo_wine ok(metadata_version_seen == TRUE, "MetadataVersion not received\n");
|
||||||
todo_wine ok(messageOK == TRUE, "Hello message metadata not received\n");
|
todo_wine ok(messageOK == TRUE, "Hello message metadata not received\n");
|
||||||
|
|
||||||
after_publish_test:
|
after_publish_test:
|
||||||
|
|
Loading…
Reference in New Issue