Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM Data Exporter
Commits
f9829d78
Commit
f9829d78
authored
Apr 30, 2020
by
Laurent Montel
Browse files
Implement import note test
parent
f0b5bc58
Changes
4
Hide whitespace changes
Inline
Side-by-side
core/autotests/notes/CMakeLists.txt
View file @
f9829d78
...
...
@@ -6,3 +6,11 @@ add_executable( exportnotesjobinterfacetest ${exportnotesjobinterfacetest_SRCS})
add_test
(
NAME exportnotesjobinterfacetest COMMAND exportnotesjobinterfacetest
)
ecm_mark_as_test
(
exportnotesjobinterfacetest
)
target_link_libraries
(
exportnotesjobinterfacetest Qt5::Test pimdataexporterprivate test_resourceconverter KF5::ConfigCore KF5::Archive
)
#######
set
(
importnotesjobinterfacetest_SRCS importnotesjobinterfacetest.cpp
)
add_executable
(
importnotesjobinterfacetest
${
importnotesjobinterfacetest_SRCS
}
)
add_test
(
NAME importnotesjobinterfacetest COMMAND importnotesjobinterfacetest
)
ecm_mark_as_test
(
importnotesjobinterfacetest
)
target_link_libraries
(
importnotesjobinterfacetest Qt5::Test pimdataexporterprivate test_resourceconverter KF5::ConfigCore KF5::Archive
)
core/autotests/notes/exportnotesjobinterfacetest.cpp
View file @
f9829d78
...
...
@@ -18,7 +18,6 @@
*/
#include
"exportnotesjobinterfacetest.h"
#include
"notes/exportnotesjobinterface.h"
#include
"archivestorage.h"
#include
"resourceconvertertest.h"
#include
"compareexportfile.h"
...
...
core/autotests/notes/importnotesjobinterfacetest.cpp
0 → 100644
View file @
f9829d78
/*
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
"importnotesjobinterfacetest.h"
#include
"notes/importnotesjobinterface.h"
#include
<QTest>
QTEST_MAIN
(
ImportNotesJobInterfaceTest
)
ImportNotesJobInterfaceTestImpl
::
ImportNotesJobInterfaceTestImpl
(
QObject
*
parent
,
Utils
::
StoredTypes
typeSelected
,
ArchiveStorage
*
archiveStorage
,
int
numberOfStep
)
:
ImportNotesJobInterface
(
parent
,
typeSelected
,
archiveStorage
,
numberOfStep
)
{
}
ImportNotesJobInterfaceTestImpl
::~
ImportNotesJobInterfaceTestImpl
()
{
}
void
ImportNotesJobInterfaceTestImpl
::
restoreResources
()
{
qDebug
()
<<
" not implement yet"
;
}
ImportNotesJobInterfaceTest
::
ImportNotesJobInterfaceTest
(
QObject
*
parent
)
:
QObject
(
parent
)
{
}
core/autotests/notes/importnotesjobinterfacetest.h
0 → 100644
View file @
f9829d78
/*
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 IMPORTNOTESJOBINTERFACETEST_H
#define IMPORTNOTESJOBINTERFACETEST_H
#include
<QObject>
#include
"notes/importnotesjobinterface.h"
class
ImportNotesJobInterfaceTestImpl
:
public
ImportNotesJobInterface
{
Q_OBJECT
public:
explicit
ImportNotesJobInterfaceTestImpl
(
QObject
*
parent
,
Utils
::
StoredTypes
typeSelected
,
ArchiveStorage
*
archiveStorage
,
int
numberOfStep
);
~
ImportNotesJobInterfaceTestImpl
();
private:
void
restoreResources
()
override
;
};
class
ImportNotesJobInterfaceTest
:
public
QObject
{
Q_OBJECT
public:
explicit
ImportNotesJobInterfaceTest
(
QObject
*
parent
=
nullptr
);
~
ImportNotesJobInterfaceTest
()
=
default
;
};
#endif // IMPORTNOTESJOBINTERFACETEST_H
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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