Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Akonadi Contacts
Commits
44e7ac19
Commit
44e7ac19
authored
Feb 02, 2016
by
Laurent Montel
😁
Browse files
Add more unittest
parent
5ee2cd87
Changes
3
Hide whitespace changes
Inline
Side-by-side
akonadi-contact/src/editor/addresseditor/autotests/CMakeLists.txt
View file @
44e7ac19
set
(
addresseslocationviewer_SRCS addresseslocationviewertest.cpp ../addresseslocationviewer.cpp ../addresseslocationgrantleeformater.cpp ../addressgrantleeobject.cpp
)
set
(
addresseslocationviewer_SRCS addresseslocationviewertest.cpp ../addresseslocationviewer.cpp ../addresseslocationgrantleeformater.cpp
../addressgrantleeobject.cpp ../iconnamecache.cpp
)
add_executable
(
addresseslocationviewer
${
addresseslocationviewer_SRCS
}
)
add_test
(
addresseslocationviewer addresseslocationviewer
)
ecm_mark_as_test
(
addresseslocationviewer
)
target_link_libraries
(
addresseslocationviewer Qt5::Test Qt5::Widgets KF5::AkonadiContact KF5::Contacts KF5::I18n Qt5::WebKitWidgets Grantlee5::Templates
)
target_link_libraries
(
addresseslocationviewer Qt5::Test Qt5::Widgets KF5::AkonadiContact KF5::Contacts KF5::I18n Qt5::WebKitWidgets Grantlee5::Templates
KF5::IconThemes
)
set
(
addresslocationwidget_SRCS addresslocationwidgettest.cpp ../addresslocationwidget.cpp
)
...
...
@@ -11,3 +12,11 @@ add_executable(addresslocationwidget ${addresslocationwidget_SRCS})
add_test
(
addresslocationwidget addresslocationwidget
)
ecm_mark_as_test
(
addresslocationwidget
)
target_link_libraries
(
addresslocationwidget Qt5::Test Qt5::Widgets KF5::AkonadiContact KF5::Contacts KF5::I18n KF5::Completion
)
set
(
addresseslocationwidget_SRCS addresseslocationwidgettest.cpp ../addresseslocationwidget.cpp ../addresseslocationviewer.cpp ../addresseslocationgrantleeformater.cpp
../addressgrantleeobject.cpp ../iconnamecache.cpp ../addresslocationwidget.cpp
)
add_executable
(
addresseslocationwidget
${
addresseslocationwidget_SRCS
}
)
add_test
(
addresseslocationwidget addresseslocationwidget
)
ecm_mark_as_test
(
addresseslocationwidget
)
target_link_libraries
(
addresseslocationwidget Qt5::Test Qt5::Widgets KF5::AkonadiContact KF5::Contacts KF5::I18n KF5::Completion Qt5::WebKitWidgets
Grantlee5::Templates KF5::IconThemes
)
akonadi-contact/src/editor/addresseditor/autotests/addresseslocationwidgettest.cpp
0 → 100644
View file @
44e7ac19
/*
This file is part of Akonadi Contact.
Copyright (C) 2016 eyeOS S.L.U., a Telefonica company, sales@eyeos.com
Copyright (C) 2016 Laurent Montel <laurent.montel@kdab.com>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library 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 Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*/
#include "addresseslocationwidgettest.h"
#include <QTest>
AddressesLocationWidgetTest
::
AddressesLocationWidgetTest
(
QObject
*
parent
)
:
QObject
(
parent
)
{
}
AddressesLocationWidgetTest
::~
AddressesLocationWidgetTest
()
{
}
QTEST_MAIN
(
AddressesLocationWidgetTest
)
akonadi-contact/src/editor/addresseditor/autotests/addresseslocationwidgettest.h
0 → 100644
View file @
44e7ac19
/*
This file is part of Akonadi Contact.
Copyright (C) 2016 eyeOS S.L.U., a Telefonica company, sales@eyeos.com
Copyright (C) 2016 Laurent Montel <laurent.montel@kdab.com>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library 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 Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*/
#ifndef ADDRESSESLOCATIONWIDGETTEST_H
#define ADDRESSESLOCATIONWIDGETTEST_H
#include <QObject>
class
AddressesLocationWidgetTest
:
public
QObject
{
Q_OBJECT
public:
explicit
AddressesLocationWidgetTest
(
QObject
*
parent
=
Q_NULLPTR
);
~
AddressesLocationWidgetTest
();
};
#endif // ADDRESSESLOCATIONWIDGETTEST_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