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
f123b6a7
Commit
f123b6a7
authored
May 11, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
May 11, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Code clean up and make tests a bit stricker.
parent
c280970c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
21 deletions
+13
-21
protocol.c
dlls/urlmon/tests/protocol.c
+6
-11
url.c
dlls/urlmon/tests/url.c
+7
-10
No files found.
dlls/urlmon/tests/protocol.c
View file @
f123b6a7
...
...
@@ -570,15 +570,11 @@ static void call_continue(PROTOCOLDATA *protocol_data)
if
(
tested_protocol
==
HTTP_TEST
||
tested_protocol
==
HTTPS_TEST
)
CLEAR_CALLED
(
ReportProgress_COOKIE_SENT
);
if
(
tested_protocol
==
HTTP_TEST
||
tested_protocol
==
HTTPS_TEST
||
tested_protocol
==
FTP_TEST
)
{
if
(
http_is_first
)
{
if
(
http_is_first
){
CLEAR_CALLED
(
ReportProgress_FINDINGRESOURCE
);
CLEAR_CALLED
(
ReportProgress_CONNECTING
);
CLEAR_CALLED
(
ReportProgress_PROXYDETECTING
);
}
else
{
CHECK_NOT_CALLED
(
ReportProgress_FINDINGRESOURCE
);
/* IE7 does call this */
CLEAR_CALLED
(
ReportProgress_CONNECTING
);
}
CLEAR_CALLED
(
ReportProgress_CONNECTING
);
}
if
(
tested_protocol
==
FTP_TEST
)
todo_wine
CHECK_CALLED
(
ReportProgress_SENDINGREQUEST
);
...
...
@@ -926,9 +922,6 @@ static HRESULT WINAPI ProtocolSink_ReportData(IInternetProtocolSink *iface, DWOR
if
(
http_is_first
)
{
CHECK_CALLED
(
ReportProgress_FINDINGRESOURCE
);
CHECK_CALLED
(
ReportProgress_CONNECTING
);
}
else
todo_wine
{
CHECK_NOT_CALLED
(
ReportProgress_FINDINGRESOURCE
);
CHECK_NOT_CALLED
(
ReportProgress_CONNECTING
);
}
CHECK_CALLED
(
ReportProgress_SENDINGREQUEST
);
CHECK_CALLED
(
OnResponse
);
...
...
@@ -2761,8 +2754,10 @@ static void test_http_protocol_url(LPCWSTR url, int prot, DWORD flags, DWORD tym
test_http_info
(
async_protocol
);
SET_EXPECT
(
ReportProgress_COOKIE_SENT
);
SET_EXPECT
(
ReportProgress_FINDINGRESOURCE
);
SET_EXPECT
(
ReportProgress_CONNECTING
);
if
(
http_is_first
)
{
SET_EXPECT
(
ReportProgress_FINDINGRESOURCE
);
SET_EXPECT
(
ReportProgress_CONNECTING
);
}
SET_EXPECT
(
ReportProgress_SENDINGREQUEST
);
if
(
test_redirect
)
SET_EXPECT
(
ReportProgress_REDIRECTING
);
...
...
dlls/urlmon/tests/url.c
View file @
f123b6a7
...
...
@@ -1592,8 +1592,6 @@ static HRESULT WINAPI statusclb_OnProgress(IBindStatusCallbackEx *iface, ULONG u
CHECK_EXPECT
(
Obj_OnProgress_FINDINGRESOURCE
);
else
if
(
test_protocol
==
FTP_TEST
)
todo_wine
CHECK_EXPECT
(
OnProgress_FINDINGRESOURCE
);
else
if
(
onsecurityproblem_hres
==
S_OK
)
CHECK_EXPECT2
(
OnProgress_FINDINGRESOURCE
);
/* todo wine */
else
CHECK_EXPECT
(
OnProgress_FINDINGRESOURCE
);
if
(
emulate_protocol
&&
(
test_protocol
==
HTTP_TEST
||
test_protocol
==
HTTPS_TEST
||
test_protocol
==
WINETEST_TEST
))
...
...
@@ -1721,10 +1719,8 @@ static HRESULT WINAPI statusclb_OnProgress(IBindStatusCallbackEx *iface, ULONG u
HRESULT
hr
;
if
(
iface
!=
&
objbsc
)
ok
(
0
,
"unexpected call
\n
"
);
else
if
(
1
||
emulate_protocol
)
CHECK_EXPECT
(
Obj_OnProgress_CLASSIDAVAILABLE
);
else
todo_wine
CHECK_EXPECT
(
Obj_OnProgress_CLASSIDAVAILABLE
);
CHECK_EXPECT
(
Obj_OnProgress_CLASSIDAVAILABLE
);
hr
=
CLSIDFromString
((
LPCOLESTR
)
szStatusText
,
&
clsid
);
ok
(
hr
==
S_OK
,
"CLSIDFromString failed with error 0x%08x
\n
"
,
hr
);
ok
(
IsEqualCLSID
(
&
clsid
,
&
CLSID_HTMLDocument
),
...
...
@@ -2806,7 +2802,8 @@ static void test_BindToStorage(int protocol, DWORD flags, DWORD t)
SET_EXPECT
(
BeginningTransaction
);
SET_EXPECT
(
QueryInterface_IHttpNegotiate2
);
SET_EXPECT
(
GetRootSecurityId
);
SET_EXPECT
(
OnProgress_FINDINGRESOURCE
);
if
(
http_is_first
)
SET_EXPECT
(
OnProgress_FINDINGRESOURCE
);
SET_EXPECT
(
OnProgress_CONNECTING
);
}
if
(
flags
&
BINDTEST_INVALID_CN
)
{
...
...
@@ -2944,7 +2941,7 @@ static void test_BindToStorage(int protocol, DWORD flags, DWORD t)
CHECK_CALLED
(
QueryInterface_IHttpNegotiate2
);
CHECK_CALLED
(
GetRootSecurityId
);
}
if
(
http_is_first
||
(
test_protocol
==
HTTPS_TEST
&&
!
(
flags
&
BINDTEST_INVALID_CN
))
)
{
if
(
http_is_first
)
{
if
(
!
proxy_active
())
{
CHECK_CALLED
(
OnProgress_FINDINGRESOURCE
);
...
...
@@ -2956,7 +2953,6 @@ static void test_BindToStorage(int protocol, DWORD flags, DWORD t)
CLEAR_CALLED
(
OnProgress_CONNECTING
);
}
}
else
if
(
!
abort_start
)
{
CHECK_NOT_CALLED
(
OnProgress_FINDINGRESOURCE
);
/* IE7 does call this */
CLEAR_CALLED
(
OnProgress_CONNECTING
);
}
...
...
@@ -3099,7 +3095,8 @@ static void test_BindToObject(int protocol, DWORD flags)
SET_EXPECT
(
BeginningTransaction
);
SET_EXPECT
(
QueryInterface_IHttpNegotiate2
);
SET_EXPECT
(
GetRootSecurityId
);
SET_EXPECT
(
Obj_OnProgress_FINDINGRESOURCE
);
if
(
http_is_first
)
SET_EXPECT
(
Obj_OnProgress_FINDINGRESOURCE
);
SET_EXPECT
(
Obj_OnProgress_CONNECTING
);
SET_EXPECT
(
QueryInterface_IWindowForBindingUI
);
SET_EXPECT
(
QueryService_IWindowForBindingUI
);
...
...
@@ -3183,7 +3180,6 @@ static void test_BindToObject(int protocol, DWORD flags)
CHECK_CALLED
(
Obj_OnProgress_FINDINGRESOURCE
);
CHECK_CALLED
(
Obj_OnProgress_CONNECTING
);
}
else
{
CHECK_NOT_CALLED
(
Obj_OnProgress_FINDINGRESOURCE
);
/* IE7 does call this */
CLEAR_CALLED
(
Obj_OnProgress_CONNECTING
);
}
...
...
@@ -3666,6 +3662,7 @@ START_TEST(url)
test_BindToStorage
(
WINETEST_TEST
,
BINDTEST_EMULATE
|
BINDTEST_NO_CALLBACK
|
BINDTEST_USE_CACHE
,
TYMED_ISTREAM
);
trace
(
"asynchronous https test...
\n
"
);
http_is_first
=
TRUE
;
test_BindToStorage
(
HTTPS_TEST
,
0
,
TYMED_ISTREAM
);
trace
(
"emulated https test...
\n
"
);
...
...
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