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
72323cb6
Commit
72323cb6
authored
Jan 23, 2004
by
Francois Gouget
Committed by
Alexandre Julliard
Jan 23, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add trailing '\n's to ok() calls.
Fix a couple of spelling errors.
parent
100e1130
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
http.c
dlls/wininet/tests/http.c
+11
-12
No files found.
dlls/wininet/tests/http.c
View file @
72323cb6
...
@@ -95,7 +95,7 @@ void winapi_test(int flags)
...
@@ -95,7 +95,7 @@ void winapi_test(int flags)
trace
(
"InternetOpenA <--
\n
"
);
trace
(
"InternetOpenA <--
\n
"
);
hi
=
InternetOpenA
(
""
,
0x0
,
0x0
,
0x0
,
flags
);
hi
=
InternetOpenA
(
""
,
0x0
,
0x0
,
0x0
,
flags
);
ok
((
hi
!=
0x0
),
"InternetOpen Failed"
);
ok
((
hi
!=
0x0
),
"InternetOpen Failed
\n
"
);
trace
(
"InternetOpenA -->
\n
"
);
trace
(
"InternetOpenA -->
\n
"
);
if
(
hi
==
0x0
)
goto
abort
;
if
(
hi
==
0x0
)
goto
abort
;
...
@@ -104,7 +104,7 @@ void winapi_test(int flags)
...
@@ -104,7 +104,7 @@ void winapi_test(int flags)
trace
(
"InternetConnectA <--
\n
"
);
trace
(
"InternetConnectA <--
\n
"
);
hic
=
InternetConnectA
(
hi
,
"www.winehq.org"
,
0x0
,
0x0
,
0x0
,
0x3
,
0x0
,
0xdeadbeef
);
hic
=
InternetConnectA
(
hi
,
"www.winehq.org"
,
0x0
,
0x0
,
0x0
,
0x3
,
0x0
,
0xdeadbeef
);
ok
((
hic
!=
0x0
),
"InternetConnect Failed"
);
ok
((
hic
!=
0x0
),
"InternetConnect Failed
\n
"
);
trace
(
"InternetConnectA -->
\n
"
);
trace
(
"InternetConnectA -->
\n
"
);
if
(
hic
==
0x0
)
goto
abort
;
if
(
hic
==
0x0
)
goto
abort
;
...
@@ -121,7 +121,7 @@ void winapi_test(int flags)
...
@@ -121,7 +121,7 @@ void winapi_test(int flags)
* abort.
* abort.
*/
*/
}
else
{
}
else
{
ok
((
hor
!=
0x0
),
"HttpOpenRequest Failed"
);
ok
((
hor
!=
0x0
),
"HttpOpenRequest Failed
\n
"
);
}
}
trace
(
"HttpOpenRequestA -->
\n
"
);
trace
(
"HttpOpenRequestA -->
\n
"
);
...
@@ -132,10 +132,10 @@ void winapi_test(int flags)
...
@@ -132,10 +132,10 @@ void winapi_test(int flags)
rc
=
HttpSendRequestA
(
hor
,
""
,
0xffffffff
,
0x0
,
0x0
);
rc
=
HttpSendRequestA
(
hor
,
""
,
0xffffffff
,
0x0
,
0x0
);
if
(
flags
)
if
(
flags
)
ok
(((
rc
==
0
)
&&
(
GetLastError
()
==
997
)),
ok
(((
rc
==
0
)
&&
(
GetLastError
()
==
997
)),
"Async
ronous HttpSendRequest NOT returning 0 with error 997
"
);
"Async
hronous HttpSendRequest NOT returning 0 with error 997
\n
"
);
else
else
ok
((
rc
!=
0
)
||
GetLastError
()
==
12007
,
/* 12007 == XP */
ok
((
rc
!=
0
)
||
GetLastError
()
==
12007
,
/* 12007 == XP */
"Sync
ronous HttpSendRequest returning 0, error %ld
"
,
GetLastError
());
"Sync
hronous HttpSendRequest returning 0, error %ld
\n
"
,
GetLastError
());
trace
(
"HttpSendRequestA <--
\n
"
);
trace
(
"HttpSendRequestA <--
\n
"
);
while
((
flags
)
&&
(
!
goon
))
while
((
flags
)
&&
(
!
goon
))
...
@@ -169,13 +169,13 @@ void winapi_test(int flags)
...
@@ -169,13 +169,13 @@ void winapi_test(int flags)
trace
(
"Option 0x1 -> %li %s
\n
"
,
rc
,
buffer
);
trace
(
"Option 0x1 -> %li %s
\n
"
,
rc
,
buffer
);
length
=
100
;
length
=
100
;
trace
(
"Enter
y
Query loop
\n
"
);
trace
(
"Enter
ing
Query loop
\n
"
);
while
(
length
)
while
(
length
)
{
{
rc
=
InternetQueryDataAvailable
(
hor
,
&
length
,
0x0
,
0x0
);
rc
=
InternetQueryDataAvailable
(
hor
,
&
length
,
0x0
,
0x0
);
ok
((
rc
!=
0
),
"InternetQueryDataAvailable failed"
);
ok
((
rc
!=
0
),
"InternetQueryDataAvailable failed
\n
"
);
if
(
length
)
if
(
length
)
{
{
...
@@ -194,15 +194,15 @@ void winapi_test(int flags)
...
@@ -194,15 +194,15 @@ void winapi_test(int flags)
abort:
abort:
if
(
hor
!=
0x0
)
{
if
(
hor
!=
0x0
)
{
rc
=
InternetCloseHandle
(
hor
);
rc
=
InternetCloseHandle
(
hor
);
ok
((
rc
!=
0
),
"InternetCloseHandle of handle opened by HttpOpenRequestA failed"
);
ok
((
rc
!=
0
),
"InternetCloseHandle of handle opened by HttpOpenRequestA failed
\n
"
);
}
}
if
(
hic
!=
0x0
)
{
if
(
hic
!=
0x0
)
{
rc
=
InternetCloseHandle
(
hic
);
rc
=
InternetCloseHandle
(
hic
);
ok
((
rc
!=
0
),
"InternetCloseHandle of handle opened by InternetConnectA failed"
);
ok
((
rc
!=
0
),
"InternetCloseHandle of handle opened by InternetConnectA failed
\n
"
);
}
}
if
(
hi
!=
0x0
)
{
if
(
hi
!=
0x0
)
{
rc
=
InternetCloseHandle
(
hi
);
rc
=
InternetCloseHandle
(
hi
);
ok
((
rc
!=
0
),
"InternetCloseHandle of handle opened by InternetOpenA failed"
);
ok
((
rc
!=
0
),
"InternetCloseHandle of handle opened by InternetOpenA failed
\n
"
);
if
(
flags
)
if
(
flags
)
Sleep
(
100
);
Sleep
(
100
);
}
}
...
@@ -272,7 +272,7 @@ void InternetCrackUrl_test(void)
...
@@ -272,7 +272,7 @@ void InternetCrackUrl_test(void)
urlComponents
.
dwExtraInfoLength
=
1024
;
urlComponents
.
dwExtraInfoLength
=
1024
;
ok
((
InternetCrackUrl
(
TEST_URL
,
0
,
0
,
&
urlComponents
)),
ok
((
InternetCrackUrl
(
TEST_URL
,
0
,
0
,
&
urlComponents
)),
"InternetCrackUrl failed, error %lx
\n
"
,
GetLastError
());
"InternetCrackUrl failed, error %lx
\n
"
,
GetLastError
());
ok
((
strcmp
(
TEST_URL_PATH
,
path
)
==
0
),
"path cracked wrong"
);
ok
((
strcmp
(
TEST_URL_PATH
,
path
)
==
0
),
"path cracked wrong
\n
"
);
}
}
START_TEST
(
http
)
START_TEST
(
http
)
...
@@ -281,5 +281,4 @@ START_TEST(http)
...
@@ -281,5 +281,4 @@ START_TEST(http)
winapi_test
(
0x00000000
);
winapi_test
(
0x00000000
);
InternetCrackUrl_test
();
InternetCrackUrl_test
();
InternetOpenUrlA_test
();
InternetOpenUrlA_test
();
}
}
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