summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/libgq/gconf/test-gconf.h
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@collabora.com>2012-01-20 17:27:47 +0200
committerQt by Nokia <qt-info@nokia.com>2012-01-21 16:15:24 +0100
commita9c1d6c3dde04600fa5bf9a1461bfe50476bf742 (patch)
treeeb77d9f0e11016774831fc71bafb22ac0a335c4d /src/3rdparty/libgq/gconf/test-gconf.h
parent9d7123e4de511797585f2b33e7bf8bf07551f4f5 (diff)
Remove copy of libgq.
Nothing in the source tree uses this after the removal of the icd bearer plugin in 0e0eb207c4ada7a09c980b816dda1c5c6af1c027, so there is no point keeping it around anymore. Change-Id: I6ea05c84d561965636e2ca5b03c7ee8edc48c093 Reviewed-by: Jonas Gastal <jgastal@profusion.mobi> Reviewed-by: Richard J. Moore <rich@kde.org>
Diffstat (limited to 'src/3rdparty/libgq/gconf/test-gconf.h')
-rw-r--r--src/3rdparty/libgq/gconf/test-gconf.h86
1 files changed, 0 insertions, 86 deletions
diff --git a/src/3rdparty/libgq/gconf/test-gconf.h b/src/3rdparty/libgq/gconf/test-gconf.h
deleted file mode 100644
index 36eaeccca4..0000000000
--- a/src/3rdparty/libgq/gconf/test-gconf.h
+++ /dev/null
@@ -1,86 +0,0 @@
-#include <QObject>
-#include <QtTest/QtTest>
-#include <QDebug>
-
-#include "GConfItem"
-
-// Helper class for listening to signals
-class SignalListener : public QObject
-{
- Q_OBJECT
-public:
- int numberOfCalls;
- SignalListener() : numberOfCalls(0) {
- }
-
-public slots:
- void valueChanged()
- {
- numberOfCalls++;
- }
-};
-
-// Tests for the public API
-class GConfItemTests : public QObject
-{
- Q_OBJECT
-
- // Stored pointers etc.
-private:
- GConfItem *boolItem;
- GConfItem *intItem;
- GConfItem *stringItem;
- GConfItem *doubleItem;
- GConfItem *stringListItem;
- GConfItem *intListItem;
- GConfItem *doubleListItem;
- GConfItem *boolListItem;
- GConfItem *unsetBeforeItem;
- GConfItem *unsetAfterItem;
-
- SignalListener *signalSpy;
-
- QTimer timer;
- bool timed_out;
-
- // Tests
-private slots:
- // Init and cleanup helper functions
- void initTestCase();
- void cleanupTestCase();
- void init();
- void cleanup();
- void timeout ();
-
- // Public API
- void path();
- void external_values();
- void set_bool();
- void set_int();
- void set_string();
- void set_unicode_string();
- void set_double();
- void set_string_list();
- void set_int_list();
- void set_double_list();
- void set_bool_list();
- void unset();
- void get_default();
- void list_dirs();
- void list_entries();
- void propagate();
- void set_external();
-};
-
-// Useful if you need to process some events until a condition becomes
-// true.
-
-#define QVERIFY_TIMEOUT(msecs, expr) \
- do { \
- timed_out = false; \
- timer.start(msecs); \
- while (!timed_out && !(expr)) { \
- QCoreApplication::processEvents(QEventLoop::WaitForMoreEvents); \
- } \
- QVERIFY((expr)); \
- } while(0)