From ea44c0f7bdc5c3559dcc535cb5ae8cb808bb2a5b Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Tue, 12 Sep 2023 21:11:03 +0800 Subject: [PATCH] Add date field backend test file Signed-off-by: Claudio Cambra --- test/CMakeLists.txt | 1 + test/testdatefieldbackend.cpp | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 test/testdatefieldbackend.cpp diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 69ebc08d5..e1ea80801 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -74,6 +74,7 @@ nextcloud_add_test(SortedShareModel) nextcloud_add_test(SecureFileDrop) nextcloud_add_test(FileTagModel) nextcloud_add_test(SyncConflictsModel) +nextcloud_add_test(DateFieldBackend) target_link_libraries(SecureFileDropTest PRIVATE Nextcloud::sync) configure_file(fake2eelocksucceeded.json "${PROJECT_BINARY_DIR}/bin/fake2eelocksucceeded.json" COPYONLY) diff --git a/test/testdatefieldbackend.cpp b/test/testdatefieldbackend.cpp new file mode 100644 index 000000000..eb1dfe5b3 --- /dev/null +++ b/test/testdatefieldbackend.cpp @@ -0,0 +1,25 @@ +/* + * Copyright (C) by Claudio Cambra + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + */ + +#include "gui/filedetails/datefieldbackend.h" + +#include +#include + +using namespace OCC; + +class TestDateFieldBackend : public QObject +{ + Q_OBJECT +} -- 2.30.2