summaryrefslogtreecommitdiffstats
path: root/tests/auto/core/qwebengineurlrequestinterceptor
diff options
context:
space:
mode:
authorSzabolcs David <davidsz@inf.u-szeged.hu>2015-09-07 04:45:56 -0700
committerSzabolcs David <davidsz@inf.u-szeged.hu>2015-09-07 18:34:59 +0000
commit1734950ef6d5876fcc58ce9fdec75bd5c641f5ec (patch)
treed664f794a73deab13cb1c14435ae80004171c1d3 /tests/auto/core/qwebengineurlrequestinterceptor
parent691d4a008d90b7d69a7b4b05404475dae204848f (diff)
Fix build of tst_qwebengineurlrequestinterceptor
Fixes a regression of 6ef0a365124d435314113837dc77fa07b02ff86b Change-Id: Ibf54d4c3d0d5b9aad88be8720da38d3142f7a559 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'tests/auto/core/qwebengineurlrequestinterceptor')
-rw-r--r--tests/auto/core/qwebengineurlrequestinterceptor/tst_qwebengineurlrequestinterceptor.cpp8
1 files changed, 4 insertions, 4 deletions
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)