Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d5913b5c
Commit
d5913b5c
authored
May 14, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
May 14, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet/tests: Added INTERNET_OPTION_CONNECT_TIMEOUT setting tests.
parent
0b421006
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
internet.c
dlls/wininet/tests/internet.c
+32
-0
No files found.
dlls/wininet/tests/internet.c
View file @
d5913b5c
...
...
@@ -228,6 +228,16 @@ static void test_InternetQueryOptionA(void)
InternetCloseHandle
(
hinet
);
val
=
12345
;
res
=
InternetSetOptionA
(
NULL
,
INTERNET_OPTION_CONNECT_TIMEOUT
,
&
val
,
sizeof
(
val
));
ok
(
res
,
"InternetSetOptionA(INTERNET_OPTION_CONNECT_TIMEOUT) failed (%u)
\n
"
,
GetLastError
());
len
=
sizeof
(
val
);
res
=
InternetQueryOptionA
(
NULL
,
INTERNET_OPTION_CONNECT_TIMEOUT
,
&
val
,
&
len
);
ok
(
res
,
"InternetQueryOptionA failed %d)
\n
"
,
GetLastError
());
ok
(
val
==
12345
,
"val = %d
\n
"
,
val
);
ok
(
len
==
sizeof
(
val
),
"len = %d
\n
"
,
len
);
hinet
=
InternetOpenA
(
NULL
,
INTERNET_OPEN_TYPE_DIRECT
,
NULL
,
NULL
,
0
);
ok
((
hinet
!=
0x0
),
"InternetOpen Failed
\n
"
);
SetLastError
(
0xdeadbeef
);
...
...
@@ -249,6 +259,28 @@ static void test_InternetQueryOptionA(void)
ok
(
!
res
,
"InternetSetOptionA(INTERNET_OPTION_MAX_CONNS_PER_SERVER) succeeded
\n
"
);
ok
(
GetLastError
()
==
ERROR_INTERNET_INVALID_OPERATION
,
"GetLastError() = %u
\n
"
,
GetLastError
());
len
=
sizeof
(
val
);
res
=
InternetQueryOptionA
(
hinet
,
INTERNET_OPTION_CONNECT_TIMEOUT
,
&
val
,
&
len
);
ok
(
res
,
"InternetQueryOptionA failed %d)
\n
"
,
GetLastError
());
ok
(
val
==
12345
,
"val = %d
\n
"
,
val
);
ok
(
len
==
sizeof
(
val
),
"len = %d
\n
"
,
len
);
val
=
1
;
res
=
InternetSetOptionA
(
hinet
,
INTERNET_OPTION_CONNECT_TIMEOUT
,
&
val
,
sizeof
(
val
));
ok
(
res
,
"InternetSetOptionA(INTERNET_OPTION_CONNECT_TIMEOUT) failed (%u)
\n
"
,
GetLastError
());
len
=
sizeof
(
val
);
res
=
InternetQueryOptionA
(
hinet
,
INTERNET_OPTION_CONNECT_TIMEOUT
,
&
val
,
&
len
);
ok
(
res
,
"InternetQueryOptionA failed %d)
\n
"
,
GetLastError
());
ok
(
val
==
1
,
"val = %d
\n
"
,
val
);
ok
(
len
==
sizeof
(
val
),
"len = %d
\n
"
,
len
);
len
=
sizeof
(
val
);
res
=
InternetQueryOptionA
(
NULL
,
INTERNET_OPTION_CONNECT_TIMEOUT
,
&
val
,
&
len
);
ok
(
res
,
"InternetQueryOptionA failed %d)
\n
"
,
GetLastError
());
ok
(
val
==
12345
,
"val = %d
\n
"
,
val
);
ok
(
len
==
sizeof
(
val
),
"len = %d
\n
"
,
len
);
InternetCloseHandle
(
hinet
);
}
...
...
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