[Qt] Build fix with QT_NO_BEARERMANAGEMENT
authorvestbo@webkit.org <vestbo@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Apr 2012 11:16:34 +0000 (11:16 +0000)
committervestbo@webkit.org <vestbo@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Apr 2012 11:16:34 +0000 (11:16 +0000)
Reviewed by Jocelyn Turcotte.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@114110 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/qt/ChangeLog
Source/WebKit/qt/tests/benchmarks/loading/tst_loading.cpp
Source/WebKit/qt/tests/benchmarks/painting/tst_painting.cpp

index 9ea03dc..c014474 100644 (file)
@@ -1,5 +1,18 @@
 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
index 1c3985b..2ebf377 100644 (file)
@@ -17,7 +17,9 @@
  * Boston, MA 02110-1301, USA.
  */
 
+#ifndef QT_NO_BEARERMANAGEMENT
 #include <QNetworkConfigurationManager>
+#endif
 
 #include <QtTest/QtTest>
 
@@ -42,7 +44,9 @@ private Q_SLOTS:
     void load();
 
 private:
+#ifndef QT_NO_BEARERMANAGEMENT
     QNetworkConfigurationManager m_manager;
+#endif
     QWebView* m_view;
     QWebPage* m_page;
 };
@@ -74,8 +78,10 @@ void tst_Loading::load()
 {
     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);
index 3f97b5a..8abba4b 100644 (file)
@@ -17,7 +17,9 @@
  * Boston, MA 02110-1301, USA.
  */
 
+#ifndef QT_NO_BEARERMANAGEMENT
 #include <QNetworkConfigurationManager>
+#endif
 
 #include <QtTest/QtTest>
 
@@ -44,7 +46,9 @@ private Q_SLOTS:
     void textAreas();
 
 private:
+#ifndef QT_NO_BEARERMANAGEMENT
     QNetworkConfigurationManager m_manager;
+#endif
     QWebView* m_view;
     QWebPage* m_page;
 };
@@ -74,8 +78,10 @@ void tst_Painting::paint()
 {
     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);