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
e2726eff
Commit
e2726eff
authored
Jul 18, 2007
by
Misha Koshelev
Committed by
Alexandre Julliard
Jul 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon/tests: Fix http_protocol tests to succeed on Win98.
parent
c2534d0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
protocol.c
dlls/urlmon/tests/protocol.c
+13
-11
No files found.
dlls/urlmon/tests/protocol.c
View file @
e2726eff
...
...
@@ -54,6 +54,9 @@
expect_ ## func = called_ ## func = FALSE; \
}while(0)
#define CLEAR_CALLED(func) \
expect_ ## func = called_ ## func = FALSE
DEFINE_EXPECT
(
GetBindInfo
);
DEFINE_EXPECT
(
ReportProgress_MIMETYPEAVAILABLE
);
DEFINE_EXPECT
(
ReportProgress_DIRECTBIND
);
...
...
@@ -246,7 +249,7 @@ static HRESULT WINAPI ProtocolSink_Switch(IInternetProtocolSink *iface, PROTOCOL
{
CHECK_EXPECT2
(
Switch
);
ok
(
pProtocolData
!=
NULL
,
"pProtocolData == NULL
\n
"
);
SendMessage
W
(
protocol_hwnd
,
WM_USER
,
0
,
(
LPARAM
)
pProtocolData
);
SendMessage
(
protocol_hwnd
,
WM_USER
,
0
,
(
LPARAM
)
pProtocolData
);
return
S_OK
;
}
...
...
@@ -1066,7 +1069,8 @@ static BOOL http_protocol_start(LPCWSTR url, BOOL is_first)
CHECK_CALLED
(
GetBindString_ACCEPT_MIMES
);
CHECK_CALLED
(
QueryService_HttpNegotiate
);
CHECK_CALLED
(
BeginningTransaction
);
CHECK_CALLED
(
GetRootSecurityId
);
/* GetRootSecurityId called on WinXP but not on Win98 */
CLEAR_CALLED
(
GetRootSecurityId
);
return
TRUE
;
}
...
...
@@ -1125,7 +1129,7 @@ static void test_http_protocol_url(LPCWSTR url)
SET_EXPECT
(
ReportResult
);
expect_hrResult
=
S_OK
;
GetMessage
W
(
&
msg
,
NULL
,
0
,
0
);
GetMessage
(
&
msg
,
NULL
,
0
,
0
);
CHECK_CALLED
(
Switch
);
CHECK_CALLED
(
ReportResult
);
...
...
@@ -1179,7 +1183,7 @@ static LRESULT WINAPI wnd_proc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam
ok
(
hres
==
S_FALSE
||
hres
==
E_PENDING
,
"Read failed: %08x
\n
"
,
hres
);
if
(
hres
==
S_FALSE
)
PostMessage
W
(
protocol_hwnd
,
WM_USER
+
1
,
0
,
0
);
PostMessage
(
protocol_hwnd
,
WM_USER
+
1
,
0
,
0
);
if
(
!
state
)
{
state
=
1
;
...
...
@@ -1198,19 +1202,17 @@ static LRESULT WINAPI wnd_proc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam
static
HWND
create_protocol_window
(
void
)
{
static
const
WCHAR
wszProtocolWindow
[]
=
{
'P'
,
'r'
,
'o'
,
't'
,
'o'
,
'c'
,
'o'
,
'l'
,
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
0
};
static
WNDCLASSEXW
wndclass
=
{
sizeof
(
WNDCLASSEXW
),
static
WNDCLASSEX
wndclass
=
{
sizeof
(
WNDCLASSEX
),
0
,
wnd_proc
,
0
,
0
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
wszProtocolWindow
,
"ProtocolWindow"
,
NULL
};
RegisterClassEx
W
(
&
wndclass
);
return
CreateWindow
W
(
wszProtocolWindow
,
wszProtocolWindow
,
RegisterClassEx
(
&
wndclass
);
return
CreateWindow
(
"ProtocolWindow"
,
"ProtocolWindow"
,
WS_OVERLAPPEDWINDOW
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
NULL
,
NULL
,
NULL
,
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