diff options
| author | Serg Podtynnyi <[email protected]> | 2023-02-04 00:14:53 +0700 |
|---|---|---|
| committer | Serg Podtynnyi <[email protected]> | 2023-02-05 12:45:38 +0700 |
| commit | 38c34eeca315c7be58e65d4d3fb72aaf7b866719 (patch) | |
| tree | 886e53f20c9c43edc3eb7fe04789716a9bc98ebe /src/tests/testdir.h | |
| parent | ffff8af851e3a386c44438337779d0ce7ca98a61 (diff) | |
Add clang-format and format code as in Frameworks
Diffstat (limited to 'src/tests/testdir.h')
| -rw-r--r-- | src/tests/testdir.h | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/src/tests/testdir.h b/src/tests/testdir.h index 921a89185..10d7614c2 100644 --- a/src/tests/testdir.h +++ b/src/tests/testdir.h @@ -7,9 +7,9 @@ #ifndef TESTDIR_H #define TESTDIR_H -#include <QUrl> -#include <QTemporaryDir> #include <QDateTime> +#include <QTemporaryDir> +#include <QUrl> /** * TestDir provides a temporary directory. In addition to QTemporaryDir, it has @@ -17,9 +17,8 @@ */ class TestDir : public QTemporaryDir { - public: - TestDir(const QString& directoryPrefix = QString()); + TestDir(const QString &directoryPrefix = QString()); virtual ~TestDir(); QUrl url() const; @@ -29,19 +28,16 @@ public: * The paths may be absolute or relative to the test directory. Any missing parent * directories will be created automatically. */ - void createFile(const QString& path, - const QByteArray& data = QByteArray("test"), - const QDateTime& time = QDateTime()); - void createFiles(const QStringList& files); - void createDir(const QString& path, const QDateTime& time = QDateTime()); + void createFile(const QString &path, const QByteArray &data = QByteArray("test"), const QDateTime &time = QDateTime()); + void createFiles(const QStringList &files); + void createDir(const QString &path, const QDateTime &time = QDateTime()); - void removeFile(const QString& path); - void removeFiles(const QStringList& files); - void removeDir(const QString& path); + void removeFile(const QString &path); + void removeFiles(const QStringList &files); + void removeDir(const QString &path); private: - void makePathAbsoluteAndCreateParents(QString& path); - + void makePathAbsoluteAndCreateParents(QString &path); }; #endif |
