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
b491635f
Commit
b491635f
authored
Aug 26, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wsdapi/tests: Use constants for test strings when possible.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3cb938fd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
xml.c
dlls/wsdapi/tests/xml.c
+18
-18
No files found.
dlls/wsdapi/tests/xml.c
View file @
b491635f
...
@@ -35,7 +35,7 @@ static void BuildAnyForSingleElement_tests(void)
...
@@ -35,7 +35,7 @@ static void BuildAnyForSingleElement_tests(void)
WSDXML_NAME
name
;
WSDXML_NAME
name
;
WSDXML_NAMESPACE
ns
;
WSDXML_NAMESPACE
ns
;
WCHAR
nameText
[]
=
{
'E'
,
'l'
,
'1'
,
0
};
WCHAR
nameText
[]
=
{
'E'
,
'l'
,
'1'
,
0
};
WCHAR
text
[]
=
{
'H'
,
'e'
,
'l'
,
'l'
,
'o'
,
0
};
static
const
WCHAR
text
[]
=
{
'H'
,
'e'
,
'l'
,
'l'
,
'o'
,
0
};
static
const
WCHAR
uri
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
't'
,
'e'
,
's'
,
't'
,
'/'
,
0
};
static
const
WCHAR
uri
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
't'
,
'e'
,
's'
,
't'
,
'/'
,
0
};
static
const
WCHAR
prefix
[]
=
{
't'
,
0
};
static
const
WCHAR
prefix
[]
=
{
't'
,
0
};
HRESULT
hr
;
HRESULT
hr
;
...
@@ -277,8 +277,8 @@ static void GetValueFromAny_tests(void)
...
@@ -277,8 +277,8 @@ static void GetValueFromAny_tests(void)
WCHAR
child1NameText
[]
=
{
'T'
,
'i'
,
'm'
,
0
};
WCHAR
child1NameText
[]
=
{
'T'
,
'i'
,
'm'
,
0
};
WCHAR
child2NameText
[]
=
{
'B'
,
'o'
,
'b'
,
0
};
WCHAR
child2NameText
[]
=
{
'B'
,
'o'
,
'b'
,
0
};
WCHAR
child3NameText
[]
=
{
'J'
,
'o'
,
'e'
,
0
};
WCHAR
child3NameText
[]
=
{
'J'
,
'o'
,
'e'
,
0
};
WCHAR
child1Value
[]
=
{
'V'
,
'1'
,
0
};
static
const
WCHAR
child1Value
[]
=
{
'V'
,
'1'
,
0
};
WCHAR
child2Value
[]
=
{
'V'
,
'2'
,
0
};
static
const
WCHAR
child2Value
[]
=
{
'V'
,
'2'
,
0
};
static
const
WCHAR
uri
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
't'
,
'e'
,
's'
,
't'
,
'/'
,
0
};
static
const
WCHAR
uri
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
't'
,
'e'
,
's'
,
't'
,
'/'
,
0
};
static
const
WCHAR
uri2
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
't'
,
'e'
,
's'
,
't'
,
'2'
,
'.'
,
't'
,
'e'
,
's'
,
't'
,
'/'
,
0
};
static
const
WCHAR
uri2
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
't'
,
'e'
,
's'
,
't'
,
'2'
,
'.'
,
't'
,
'e'
,
's'
,
't'
,
'/'
,
0
};
static
const
WCHAR
prefix
[]
=
{
't'
,
0
};
static
const
WCHAR
prefix
[]
=
{
't'
,
0
};
...
@@ -379,15 +379,15 @@ static void GetValueFromAny_tests(void)
...
@@ -379,15 +379,15 @@ static void GetValueFromAny_tests(void)
static
void
XMLContext_AddNamespace_tests
(
void
)
static
void
XMLContext_AddNamespace_tests
(
void
)
{
{
WCHAR
ns1Uri
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
't'
,
'e'
,
's'
,
't'
,
0
};
static
const
WCHAR
ns1Uri
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
't'
,
'e'
,
's'
,
't'
,
0
};
WCHAR
ns2Uri
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
'w'
,
'i'
,
'n'
,
'e'
,
'.'
,
'r'
,
'o'
,
'c'
,
'k'
,
's'
,
0
};
static
const
WCHAR
ns2Uri
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
'w'
,
'i'
,
'n'
,
'e'
,
'.'
,
'r'
,
'o'
,
'c'
,
'k'
,
's'
,
0
};
WCHAR
ns3Uri
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
'a'
,
'g'
,
'a'
,
'i'
,
'n'
,
0
};
static
const
WCHAR
ns3Uri
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
'a'
,
'g'
,
'a'
,
'i'
,
'n'
,
0
};
WCHAR
ns4Uri
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
'o'
,
'n'
,
'e'
,
'.'
,
'm'
,
'o'
,
'r'
,
'e'
,
0
};
static
const
WCHAR
ns4Uri
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
'o'
,
'n'
,
'e'
,
'.'
,
'm'
,
'o'
,
'r'
,
'e'
,
0
};
WCHAR
prefix1
[]
=
{
't'
,
's'
,
't'
,
0
};
static
const
WCHAR
prefix1
[]
=
{
't'
,
's'
,
't'
,
0
};
WCHAR
prefix2
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
0
};
static
const
WCHAR
prefix2
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
0
};
WCHAR
unPrefix0
[]
=
{
'u'
,
'n'
,
'0'
,
0
};
static
const
WCHAR
unPrefix0
[]
=
{
'u'
,
'n'
,
'0'
,
0
};
WCHAR
unPrefix1
[]
=
{
'u'
,
'n'
,
'1'
,
0
};
static
const
WCHAR
unPrefix1
[]
=
{
'u'
,
'n'
,
'1'
,
0
};
WCHAR
unPrefix2
[]
=
{
'u'
,
'n'
,
'2'
,
0
};
static
const
WCHAR
unPrefix2
[]
=
{
'u'
,
'n'
,
'2'
,
0
};
IWSDXMLContext
*
context
;
IWSDXMLContext
*
context
;
WSDXML_NAMESPACE
*
ns1
=
NULL
,
*
ns2
=
NULL
;
WSDXML_NAMESPACE
*
ns1
=
NULL
,
*
ns2
=
NULL
;
...
@@ -506,12 +506,12 @@ static void XMLContext_AddNamespace_tests(void)
...
@@ -506,12 +506,12 @@ static void XMLContext_AddNamespace_tests(void)
static
void
XMLContext_AddNameToNamespace_tests
(
void
)
static
void
XMLContext_AddNameToNamespace_tests
(
void
)
{
{
WCHAR
ns1Uri
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
't'
,
'e'
,
's'
,
't'
,
0
};
static
const
WCHAR
ns1Uri
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
't'
,
'e'
,
's'
,
't'
,
0
};
WCHAR
ns2Uri
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
'w'
,
'i'
,
'n'
,
'e'
,
'.'
,
'r'
,
'o'
,
'c'
,
'k'
,
's'
,
0
};
static
const
WCHAR
ns2Uri
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
'w'
,
'i'
,
'n'
,
'e'
,
'.'
,
'r'
,
'o'
,
'c'
,
'k'
,
's'
,
0
};
WCHAR
prefix2
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
0
};
static
const
WCHAR
prefix2
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
0
};
WCHAR
unPrefix0
[]
=
{
'u'
,
'n'
,
'0'
,
0
};
static
const
WCHAR
unPrefix0
[]
=
{
'u'
,
'n'
,
'0'
,
0
};
WCHAR
name1Text
[]
=
{
'B'
,
'o'
,
'b'
,
0
};
static
const
WCHAR
name1Text
[]
=
{
'B'
,
'o'
,
'b'
,
0
};
WCHAR
name2Text
[]
=
{
'T'
,
'i'
,
'm'
,
0
};
static
const
WCHAR
name2Text
[]
=
{
'T'
,
'i'
,
'm'
,
0
};
IWSDXMLContext
*
context
;
IWSDXMLContext
*
context
;
WSDXML_NAMESPACE
*
ns2
=
NULL
;
WSDXML_NAMESPACE
*
ns2
=
NULL
;
WSDXML_NAME
*
name1
=
NULL
,
*
name2
=
NULL
;
WSDXML_NAME
*
name1
=
NULL
,
*
name2
=
NULL
;
...
...
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