From 1734950ef6d5876fcc58ce9fdec75bd5c641f5ec Mon Sep 17 00:00:00 2001 From: Szabolcs David Date: Mon, 7 Sep 2015 04:45:56 -0700 Subject: Fix build of tst_qwebengineurlrequestinterceptor Fixes a regression of 6ef0a365124d435314113837dc77fa07b02ff86b Change-Id: Ibf54d4c3d0d5b9aad88be8720da38d3142f7a559 Reviewed-by: Joerg Bornemann --- .../tst_qwebengineurlrequestinterceptor.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/auto/core/qwebengineurlrequestinterceptor') diff --git a/tests/auto/core/qwebengineurlrequestinterceptor/tst_qwebengineurlrequestinterceptor.cpp b/tests/auto/core/qwebengineurlrequestinterceptor/tst_qwebengineurlrequestinterceptor.cpp index b0ef9a1ba..ed7d7ad09 100644 --- a/tests/auto/core/qwebengineurlrequestinterceptor/tst_qwebengineurlrequestinterceptor.cpp +++ b/tests/auto/core/qwebengineurlrequestinterceptor/tst_qwebengineurlrequestinterceptor.cpp @@ -96,11 +96,11 @@ public: bool interceptRequest(QWebEngineUrlRequestInfo &info) override { - info.blockRequest(info.method() != QByteArrayLiteral("GET")); - if (info.url().toString().endsWith(QLatin1String("__placeholder__"))) - info.redirectTo(QUrl("qrc:///resources/content.html")); + info.block(info.requestMethod() != QByteArrayLiteral("GET")); + if (info.requestUrl().toString().endsWith(QLatin1String("__placeholder__"))) + info.redirect(QUrl("qrc:///resources/content.html")); - observedUrls.append(info.url()); + observedUrls.append(info.requestUrl()); return shouldIntercept; } TestRequestInterceptor(bool intercept) -- cgit v1.2.3