summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/qwebenginehistoryinterface
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/widgets/qwebenginehistoryinterface')
-rw-r--r--tests/auto/widgets/qwebenginehistoryinterface/tst_qwebenginehistoryinterface.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/widgets/qwebenginehistoryinterface/tst_qwebenginehistoryinterface.cpp b/tests/auto/widgets/qwebenginehistoryinterface/tst_qwebenginehistoryinterface.cpp
index 180a0f2fe..93714255b 100644
--- a/tests/auto/widgets/qwebenginehistoryinterface/tst_qwebenginehistoryinterface.cpp
+++ b/tests/auto/widgets/qwebenginehistoryinterface/tst_qwebenginehistoryinterface.cpp
@@ -22,7 +22,9 @@
#include <qwebenginepage.h>
#include <qwebengineview.h>
+#if defined(QWEBENGINEHISTORYINTERFACE)
#include <qwebenginehistoryinterface.h>
+#endif
#include <QDebug>
class tst_QWebEngineHistoryInterface : public QObject
@@ -73,6 +75,7 @@ void tst_QWebEngineHistoryInterface::cleanup()
delete m_view;
}
+#if defined(QWEBENGINEHISTORYINTERFACE)
class FakeHistoryImplementation : public QWebEngineHistoryInterface {
public:
void addHistoryEntry(const QString&) {}
@@ -80,7 +83,7 @@ public:
return url == QLatin1String("http://www.trolltech.com/");
}
};
-
+#endif
/*
* Test that visited links are properly colored. http://www.trolltech.com is marked