2012-04-13 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
+ [Qt] Build fix with QT_NO_BEARERMANAGEMENT
+
+ Reviewed by Jocelyn Turcotte.
+
+ * tests/benchmarks/loading/tst_loading.cpp:
+ (tst_Loading):
+ (tst_Loading::load):
+ * tests/benchmarks/painting/tst_painting.cpp:
+ (tst_Painting):
+ (tst_Painting::paint):
+
+2012-04-13 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
+
[Qt] Fix build on OS X
We were manually including the directories needed from WTF, instead of
* Boston, MA 02110-1301, USA.
*/
+#ifndef QT_NO_BEARERMANAGEMENT
#include <QNetworkConfigurationManager>
+#endif
#include <QtTest/QtTest>
void load();
private:
+#ifndef QT_NO_BEARERMANAGEMENT
QNetworkConfigurationManager m_manager;
+#endif
QWebView* m_view;
QWebPage* m_page;
};
{
QFETCH(QUrl, url);
+#ifndef QT_NO_BEARERMANAGEMENT
if (!m_manager.isOnline())
W_QSKIP("This test requires an active network connection", SkipSingle);
+#endif
QBENCHMARK {
m_view->load(url);
* Boston, MA 02110-1301, USA.
*/
+#ifndef QT_NO_BEARERMANAGEMENT
#include <QNetworkConfigurationManager>
+#endif
#include <QtTest/QtTest>
void textAreas();
private:
+#ifndef QT_NO_BEARERMANAGEMENT
QNetworkConfigurationManager m_manager;
+#endif
QWebView* m_view;
QWebPage* m_page;
};
{
QFETCH(QUrl, url);
+#ifndef QT_NO_BEARERMANAGEMENT
if (!m_manager.isOnline())
W_QSKIP("This test requires an active network connection", SkipSingle);
+#endif
m_view->load(url);
::waitForSignal(m_view, SIGNAL(loadFinished(bool)), 0);