[frameworks/kfilemetadata] autotests: [FFmpegExtractorTest] Move test class declaration to implementation file

Stefan Brüns <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 62cf5eef2bd700c7e1f4d35bf27c8270a98e5d19 by Stefan Brüns.
Committed on 09/08/2026 at 12:13.
Pushed by bruns into branch 'master'.

[FFmpegExtractorTest] Move test class declaration to implementation file

M  +21   -2    autotests/ffmpegextractortest.cpp
D  +0    -31   autotests/ffmpegextractortest.h

https://invent.kde.org/frameworks/kfilemetadata/-/commit/62cf5eef2bd700c7e1f4d35bf27c8270a98e5d19

diff --git a/autotests/ffmpegextractortest.cpp b/autotests/ffmpegextractortest.cpp
index 17d00340..0dc408d7 100644
--- a/autotests/ffmpegextractortest.cpp
+++ b/autotests/ffmpegextractortest.cpp
@@ -4,16 +4,34 @@
     SPDX-License-Identifier: LGPL-2.1-or-later
 */
 
-#include "ffmpegextractortest.h"
 #include "simpleextractionresult.h"
 #include "indexerextractortestsconfig.h"
 #include "extractors/ffmpegextractor.h"
 #include "mimeutils.h"
 
+#include <QMimeDatabase>
+#include <QObject>
 #include <QTest>
 
 using namespace KFileMetaData;
 
+namespace KFileMetaData {
+class ffmpegExtractorTest : public QObject
+{
+    Q_OBJECT
+
+private Q_SLOTS:
+    void testNoExtraction();
+    void testVideoProperties();
+    void testVideoProperties_data();
+    void testMetaData();
+    void testMetaData_data();
+
+private:
+    QMimeDatabase mimeDb;
+};
+} // namespace KFileMetaData
+
 namespace {
 
 QString testFilePath(const QString& baseName, const QString& extension)
@@ -147,6 +165,7 @@ void ffmpegExtractorTest::testMetaData()
     QCOMPARE(result.properties().value(Property::Artist).toString(), QStringLiteral("Artist"));
     QCOMPARE(result.properties().value(Property::ReleaseYear).toInt(), 2019);
 }
+
 QTEST_GUILESS_MAIN(ffmpegExtractorTest)
 
-#include "moc_ffmpegextractortest.cpp"
+#include "ffmpegextractortest.moc"
diff --git a/autotests/ffmpegextractortest.h b/autotests/ffmpegextractortest.h
deleted file mode 100644
index a2ef8551..00000000
--- a/autotests/ffmpegextractortest.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
-    SPDX-FileCopyrightText: 2019 Alexander Stippich <[email protected]>
-
-    SPDX-License-Identifier: LGPL-2.1-or-later
-*/
-
-#ifndef FFMPEGEXTRACTORTEST_H
-#define FFMPEGEXTRACTORTEST_H
-
-#include <QObject>
-#include <QMimeDatabase>
-
-namespace KFileMetaData {
-
-class ffmpegExtractorTest : public QObject
-{
-    Q_OBJECT
-
-private Q_SLOTS:
-    void testNoExtraction();
-    void testVideoProperties();
-    void testVideoProperties_data();
-    void testMetaData();
-    void testMetaData_data();
-
-private:
-    QMimeDatabase mimeDb;
-};
-} // namespace KFileMetaData
-
-#endif // FFMPEGEXTRACTORTEST_H
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.