Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KDE PIM Add-ons
Commits
7ce7bb51
Commit
7ce7bb51
authored
Jul 20, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add autotest
parent
8e8fb952
Pipeline
#27791
canceled with stage
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
125 additions
and
1 deletion
+125
-1
plugins/messageviewerconfigureplugins/expireaccounttrashfolder/CMakeLists.txt
...rconfigureplugins/expireaccounttrashfolder/CMakeLists.txt
+1
-0
plugins/messageviewerconfigureplugins/expireaccounttrashfolder/autotests/CMakeLists.txt
...plugins/expireaccounttrashfolder/autotests/CMakeLists.txt
+4
-1
plugins/messageviewerconfigureplugins/expireaccounttrashfolder/autotests/expireaccounttrashfolderconfigdialogtest.cpp
...er/autotests/expireaccounttrashfolderconfigdialogtest.cpp
+27
-0
plugins/messageviewerconfigureplugins/expireaccounttrashfolder/autotests/expireaccounttrashfolderconfigdialogtest.h
...lder/autotests/expireaccounttrashfolderconfigdialogtest.h
+33
-0
plugins/messageviewerconfigureplugins/expireaccounttrashfolder/autotests/expireaccounttrashfolderconfigwidgettest.cpp
...er/autotests/expireaccounttrashfolderconfigwidgettest.cpp
+27
-0
plugins/messageviewerconfigureplugins/expireaccounttrashfolder/autotests/expireaccounttrashfolderconfigwidgettest.h
...lder/autotests/expireaccounttrashfolderconfigwidgettest.h
+33
-0
No files found.
plugins/messageviewerconfigureplugins/expireaccounttrashfolder/CMakeLists.txt
View file @
7ce7bb51
...
...
@@ -10,6 +10,7 @@ kcoreaddons_add_plugin(messageviewer_expireaccounttrashfolderconfigplugin JSON m
target_link_libraries
(
messageviewer_expireaccounttrashfolderconfigplugin
KF5::MessageViewer
KF5::I18n
KF5::MailCommon
)
...
...
plugins/messageviewerconfigureplugins/expireaccounttrashfolder/autotests/CMakeLists.txt
View file @
7ce7bb51
macro
(
add_messageviewer_expireaccounttrash_
verify_
unittest _source
)
macro
(
add_messageviewer_expireaccounttrash_unittest _source
)
get_filename_component
(
_name
${
_source
}
NAME_WE
)
ecm_add_test
(
${
_source
}
TEST_NAME
${
_name
}
...
...
@@ -6,3 +6,6 @@ macro(add_messageviewer_expireaccounttrash_verify_unittest _source)
LINK_LIBRARIES KF5::MessageViewer Qt5::Test
)
endmacro
()
add_messageviewer_expireaccounttrash_unittest
(
expireaccounttrashfolderconfigdialogtest.cpp
)
add_messageviewer_expireaccounttrash_unittest
(
expireaccounttrashfolderconfigwidgettest.cpp
)
plugins/messageviewerconfigureplugins/expireaccounttrashfolder/autotests/expireaccounttrashfolderconfigdialogtest.cpp
0 → 100644
View file @
7ce7bb51
/*
Copyright (C) 2020 Laurent Montel <montel@kde.org>
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.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "expireaccounttrashfolderconfigdialogtest.h"
#include <QTest>
QTEST_MAIN
(
ExpireAccountTrashFolderConfigDialogTest
)
ExpireAccountTrashFolderConfigDialogTest
::
ExpireAccountTrashFolderConfigDialogTest
(
QObject
*
parent
)
:
QObject
(
parent
)
{
}
plugins/messageviewerconfigureplugins/expireaccounttrashfolder/autotests/expireaccounttrashfolderconfigdialogtest.h
0 → 100644
View file @
7ce7bb51
/*
Copyright (C) 2020 Laurent Montel <montel@kde.org>
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.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef EXPIREACCOUNTTRASHFOLDERCONFIGDIALOGTEST_H
#define EXPIREACCOUNTTRASHFOLDERCONFIGDIALOGTEST_H
#include <QObject>
class
ExpireAccountTrashFolderConfigDialogTest
:
public
QObject
{
Q_OBJECT
public:
explicit
ExpireAccountTrashFolderConfigDialogTest
(
QObject
*
parent
=
nullptr
);
~
ExpireAccountTrashFolderConfigDialogTest
()
=
default
;
};
#endif // EXPIREACCOUNTTRASHFOLDERCONFIGDIALOGTEST_H
plugins/messageviewerconfigureplugins/expireaccounttrashfolder/autotests/expireaccounttrashfolderconfigwidgettest.cpp
0 → 100644
View file @
7ce7bb51
/*
Copyright (C) 2020 Laurent Montel <montel@kde.org>
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.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "expireaccounttrashfolderconfigwidgettest.h"
#include <QTest>
QTEST_MAIN
(
ExpireAccountTrashFolderConfigWidgetTest
)
ExpireAccountTrashFolderConfigWidgetTest
::
ExpireAccountTrashFolderConfigWidgetTest
(
QObject
*
parent
)
:
QObject
(
parent
)
{
}
plugins/messageviewerconfigureplugins/expireaccounttrashfolder/autotests/expireaccounttrashfolderconfigwidgettest.h
0 → 100644
View file @
7ce7bb51
/*
Copyright (C) 2020 Laurent Montel <montel@kde.org>
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.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef EXPIREACCOUNTTRASHFOLDERCONFIGWIDGETTEST_H
#define EXPIREACCOUNTTRASHFOLDERCONFIGWIDGETTEST_H
#include <QObject>
class
ExpireAccountTrashFolderConfigWidgetTest
:
public
QObject
{
Q_OBJECT
public:
explicit
ExpireAccountTrashFolderConfigWidgetTest
(
QObject
*
parent
=
nullptr
);
~
ExpireAccountTrashFolderConfigWidgetTest
()
=
default
;
};
#endif // EXPIREACCOUNTTRASHFOLDERCONFIGWIDGETTEST_H
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment