aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-01-25 10:33:25 +0100
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-01-25 10:33:25 +0100
commita8e8f1cd39e846941de544c7791e1ab6398a335b (patch)
tree7ec28d6272499401dd9f44e1ce943c6e640abb51
parent08de0609df2649170ecdc927c312e08387e6cc67 (diff)
downloadlibquotient-a8e8f1cd39e846941de544c7791e1ab6398a335b.tar.gz
libquotient-a8e8f1cd39e846941de544c7791e1ab6398a335b.zip
Collapse the autotest entirely in *.cpp file
Otherwise CMake's automoc complains that it doesn't see a moc-able class definition in the file that includes "*.moc".
-rw-r--r--autotests/callcandidateseventtest.cpp11
-rw-r--r--autotests/callcandidateseventtest.h13
2 files changed, 10 insertions, 14 deletions
diff --git a/autotests/callcandidateseventtest.cpp b/autotests/callcandidateseventtest.cpp
index f103e4d3..39e6a116 100644
--- a/autotests/callcandidateseventtest.cpp
+++ b/autotests/callcandidateseventtest.cpp
@@ -3,7 +3,16 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "events/callcandidatesevent.h"
-#include "callcandidateseventtest.h"
+
+#include <QtTest/QtTest>
+
+class TestCallCandidatesEvent : public QObject
+{
+ Q_OBJECT
+
+private Q_SLOTS:
+ void fromJson();
+};
void TestCallCandidatesEvent::fromJson()
{
diff --git a/autotests/callcandidateseventtest.h b/autotests/callcandidateseventtest.h
deleted file mode 100644
index b81c9c9b..00000000
--- a/autotests/callcandidateseventtest.h
+++ /dev/null
@@ -1,13 +0,0 @@
-// SPDX-FileCopyrightText: 2020 Carl Schwan <carlschwan@kde.org>
-//
-// SPDX-License-Identifier: LGPL-2.1-or-later
-
-#include <QtTest/QtTest>
-
-class TestCallCandidatesEvent : public QObject
-{
- Q_OBJECT
-
-private Q_SLOTS:
- void fromJson();
-};