urlmon/tests: Expect BINDSTRING_SAMESITE_COOKIE_LEVEL on newer IE11.

Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sven Baars 2019-11-22 12:23:41 +01:00 committed by Alexandre Julliard
parent b3abc343c3
commit e59b2579b9
2 changed files with 14 additions and 3 deletions

View File

@ -92,6 +92,7 @@ DEFINE_EXPECT(GetBindString_USER_AGENT);
DEFINE_EXPECT(GetBindString_POST_COOKIE);
DEFINE_EXPECT(GetBindString_URL);
DEFINE_EXPECT(GetBindString_ROOTDOC_URL);
DEFINE_EXPECT(GetBindString_SAMESITE_COOKIE_LEVEL);
DEFINE_EXPECT(QueryService_HttpNegotiate);
DEFINE_EXPECT(QueryService_InternetProtocol);
DEFINE_EXPECT(QueryService_HttpSecurity);
@ -662,8 +663,10 @@ static void call_continue(PROTOCOLDATA *protocol_data)
todo_wine CHECK_CALLED(ReportProgress_SENDINGREQUEST);
else if (tested_protocol != HTTPS_TEST)
CHECK_CALLED(ReportProgress_SENDINGREQUEST);
if(test_redirect && !(bindinfo_options & BINDINFO_OPTIONS_DISABLEAUTOREDIRECTS))
if(test_redirect && !(bindinfo_options & BINDINFO_OPTIONS_DISABLEAUTOREDIRECTS)) {
CHECK_CALLED(ReportProgress_REDIRECTING);
CLEAR_CALLED(GetBindString_SAMESITE_COOKIE_LEVEL); /* New in IE11 */
}
state = test_async_req ? STATE_SENDINGREQUEST : STATE_STARTDOWNLOADING;
}
@ -1508,6 +1511,10 @@ static HRESULT WINAPI BindInfo_GetBindString(IInternetBindInfo *iface, ULONG ulS
case BINDSTRING_ENTERPRISE_ID:
ok(cEl == 1, "cEl=%d, expected 1\n", cEl);
return E_NOTIMPL;
case BINDSTRING_SAMESITE_COOKIE_LEVEL:
CHECK_EXPECT(GetBindString_SAMESITE_COOKIE_LEVEL);
ok(cEl == 1, "cEl=%d, expected 1\n", cEl);
return E_NOTIMPL;
default:
ok(0, "unexpected ulStringType %d\n", ulStringType);
}
@ -3375,8 +3382,10 @@ static void test_http_protocol_url(LPCWSTR url, int prot, DWORD flags, DWORD tym
SET_EXPECT(ReportProgress_CONNECTING);
}
SET_EXPECT(ReportProgress_SENDINGREQUEST);
if(test_redirect && !(bindinfo_options & BINDINFO_OPTIONS_DISABLEAUTOREDIRECTS))
if(test_redirect && !(bindinfo_options & BINDINFO_OPTIONS_DISABLEAUTOREDIRECTS)) {
SET_EXPECT(ReportProgress_REDIRECTING);
SET_EXPECT(GetBindString_SAMESITE_COOKIE_LEVEL); /* New in IE11 */
}
SET_EXPECT(ReportProgress_PROXYDETECTING);
if(prot == HTTP_TEST)
SET_EXPECT(ReportProgress_CACHEFILENAMEAVAILABLE);

View File

@ -766,7 +766,9 @@ interface IInternetBindInfo : IUnknown
BINDSTRING_INITIAL_FILENAME,
BINDSTRING_PROXY_USERNAME,
BINDSTRING_PROXY_PASSWORD,
BINDSTRING_ENTERPRISE_ID
BINDSTRING_ENTERPRISE_ID,
BINDSTRING_DOC_URL,
BINDSTRING_SAMESITE_COOKIE_LEVEL
} BINDSTRING;
HRESULT GetBindInfo(