summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/corelib/kernel/qcoreapplication/tst_qcoreapplication.cpp5
-rw-r--r--tests/auto/corelib/thread/qthread/tst_qthread.cpp5
-rw-r--r--tests/auto/testlib/selftests/benchlibeventcounter/tst_benchlibeventcounter.cpp5
-rw-r--r--tests/auto/testlib/selftests/benchliboptions/tst_benchliboptions.cpp5
4 files changed, 20 insertions, 0 deletions
diff --git a/tests/auto/corelib/kernel/qcoreapplication/tst_qcoreapplication.cpp b/tests/auto/corelib/kernel/qcoreapplication/tst_qcoreapplication.cpp
index e8f6c29a94..2ac075bebf 100644
--- a/tests/auto/corelib/kernel/qcoreapplication/tst_qcoreapplication.cpp
+++ b/tests/auto/corelib/kernel/qcoreapplication/tst_qcoreapplication.cpp
@@ -622,6 +622,11 @@ public:
void interrupt() {}
void flush() {}
+#ifdef Q_OS_WIN
+ bool registerEventNotifier(QWinEventNotifier *) { return false; }
+ void unregisterEventNotifier(QWinEventNotifier *) { }
+#endif
+
bool visited;
};
diff --git a/tests/auto/corelib/thread/qthread/tst_qthread.cpp b/tests/auto/corelib/thread/qthread/tst_qthread.cpp
index 41cfc52354..da49f43b7d 100644
--- a/tests/auto/corelib/thread/qthread/tst_qthread.cpp
+++ b/tests/auto/corelib/thread/qthread/tst_qthread.cpp
@@ -1239,6 +1239,11 @@ public:
void interrupt() {}
void flush() {}
+#ifdef Q_OS_WIN
+ bool registerEventNotifier(QWinEventNotifier *) { return false; }
+ void unregisterEventNotifier(QWinEventNotifier *) { }
+#endif
+
bool visited;
};
diff --git a/tests/auto/testlib/selftests/benchlibeventcounter/tst_benchlibeventcounter.cpp b/tests/auto/testlib/selftests/benchlibeventcounter/tst_benchlibeventcounter.cpp
index 82de653586..b077291cc6 100644
--- a/tests/auto/testlib/selftests/benchlibeventcounter/tst_benchlibeventcounter.cpp
+++ b/tests/auto/testlib/selftests/benchlibeventcounter/tst_benchlibeventcounter.cpp
@@ -64,6 +64,11 @@ public:
bool unregisterTimers(QObject*) { return false; }
int remainingTime(int) { return 0; }
void wakeUp() {}
+
+#ifdef Q_OS_WIN
+ bool registerEventNotifier(QWinEventNotifier *) { return false; }
+ void unregisterEventNotifier(QWinEventNotifier *) { }
+#endif
};
class tst_BenchlibEventCounter: public QObject
diff --git a/tests/auto/testlib/selftests/benchliboptions/tst_benchliboptions.cpp b/tests/auto/testlib/selftests/benchliboptions/tst_benchliboptions.cpp
index d3be93b715..7673aa396e 100644
--- a/tests/auto/testlib/selftests/benchliboptions/tst_benchliboptions.cpp
+++ b/tests/auto/testlib/selftests/benchliboptions/tst_benchliboptions.cpp
@@ -64,6 +64,11 @@ public:
bool unregisterTimers(QObject*) { return false; }
int remainingTime(int) { return 0; }
void wakeUp() {}
+
+#ifdef Q_OS_WIN
+ bool registerEventNotifier(QWinEventNotifier *) { return false; }
+ void unregisterEventNotifier(QWinEventNotifier *) { }
+#endif
};
class tst_BenchlibOptions: public QObject