urlmon/tests: Fix protocol tests when proxy is configured (try 2)

Ge van Geldorp ge at gse.nl
Mon Jan 19 19:56:46 CST 2009


There is a large amount of proxy configurations possible on Windows (WPAD,
proxy.pac, fixed proxy values), which might behave differently on a second
run of the protocol test compared to the first run. These configurations
influence when/how IInternetProtocolSink methods are called. For example,
with a standard, direct connection you'll get the following ReportProgress
notifications during the https test:
BINDSTATUS_FINDINGRESOURCE
BINDSTATUS_CONNECTING
BINDSTATUS_SENDINGREQUEST
BINDSTATUS_ACCEPTRANGES
BINDSTATUS_MIMETYPEAVAILABLE
However, when you run the protocol test for the second time on a machine
with a fixed proxy server configured, you'll only get these notifications:
BINDSTATUS_SENDINGREQUEST
BINDSTATUS_ACCEPTRANGES
BINDSTATUS_MIMETYPEAVAILABLE

When a proxy is used, the BINDSTATUS_FINDINGRESOURCE and
BINDSTATUS_CONNECTING notifications report the hostname/ip address of the
proxy server, not the end destination.

Try 2: call CLEAR_CALLED for ignored events.

Changelog:
  urlmon/tests: Fix protocol tests when proxy is configured

---
 dlls/urlmon/tests/protocol.c |   39
++++++++++++++++++---------------------
 1 files changed, 18 insertions(+), 21 deletions(-)



-------------- next part --------------
A non-text attachment was scrubbed...
Name: f1817efba4b9a8d7575d204ea1cd156b8e4adfef.diff
Type: text/x-patch
Size: 5606 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20090120/90ff8ca0/attachment.bin 


More information about the wine-patches mailing list