diff --git a/autotests/CMakeLists.txt b/autotests/CMakeLists.txt index 01d45e85..111c59eb 100644 --- a/autotests/CMakeLists.txt +++ b/autotests/CMakeLists.txt @@ -1,102 +1,102 @@ add_definitions( -DRUQOLA_DATA_DIR="${CMAKE_CURRENT_SOURCE_DIR}/data") macro(add_ruqola_test _source) set( _test ${_source}) get_filename_component( _name ${_source} NAME_WE ) add_executable( ${_name} ${_test} ) add_test(NAME ${_name} COMMAND ${_name} ) ecm_mark_as_test(${_name}) target_link_libraries( ${_name} Qt5::Test libruqolacore) endmacro() add_ruqola_test(rocketchatmessagetest.cpp) add_ruqola_test(roommodeltest.cpp) add_ruqola_test(messagemodeltest.cpp) add_ruqola_test(typingnotificationtest.cpp) add_ruqola_test(utilstest.cpp) add_ruqola_test(usertest.cpp) add_ruqola_test(messageattachmenttest.cpp) add_ruqola_test(rocketchataccountsettingstest.cpp) add_ruqola_test(messagetest.cpp) add_ruqola_test(messageurltest.cpp) add_ruqola_test(roomtest.cpp) add_ruqola_test(ruqolaserverconfigtest.cpp) add_ruqola_test(statusmodeltest.cpp) add_ruqola_test(rocketchatcachetest.cpp) add_ruqola_test(textconvertertest.cpp) add_ruqola_test(loadrecenthistorymanagertest.cpp) add_ruqola_test(notificationtest.cpp) add_ruqola_test(emojitest.cpp) add_ruqola_test(emojimanagertest.cpp) add_ruqola_test(otrtest.cpp) add_ruqola_test(otrmanagertest.cpp) add_ruqola_test(rocketchataccounttest.cpp) add_ruqola_test(usersmodeltest.cpp) add_ruqola_test(usersforroommodeltest.cpp) add_ruqola_test(filetest.cpp) add_ruqola_test(filesforroommodeltest.cpp) add_ruqola_test(filesforroomfilterproxymodeltest.cpp) add_ruqola_test(channeltest.cpp) add_ruqola_test(usersforroomfilterproxymodeltest.cpp) add_ruqola_test(usercompletermodeltest.cpp) add_ruqola_test(roomfilterproxymodeltest.cpp) add_ruqola_test(usercompleterfilterproxymodeltest.cpp) add_ruqola_test(searchchannelmodeltest.cpp) add_ruqola_test(searchchannelfilterproxymodeltest.cpp) add_ruqola_test(inputcompletermodeltest.cpp) add_ruqola_test(loginmethodmodeltest.cpp) add_ruqola_test(inputtextmanagertest.cpp) add_ruqola_test(clipboardproxytest.cpp) add_ruqola_test(authenticationinfotest.cpp) add_ruqola_test(searchmessagemodeltest.cpp) add_ruqola_test(searchmessagefilterproxymodeltest.cpp) add_ruqola_test(searchmessagetest.cpp) add_ruqola_test(accountmanagertest.cpp) add_ruqola_test(rocketchataccountmodeltest.cpp) add_ruqola_test(ruqolatest.cpp) add_ruqola_test(managerdatapathstest.cpp) add_ruqola_test(rocketchataccountfilterproxymodeltest.cpp) add_ruqola_test(roomwrappertest.cpp) add_ruqola_test(notificationoptionstest.cpp) add_ruqola_test(reactionstest.cpp) add_ruqola_test(reactiontest.cpp) add_ruqola_test(emoticonmodeltest.cpp) add_ruqola_test(unicodeemoticontest.cpp) add_ruqola_test(receivetypingnotificationmanagertest.cpp) add_ruqola_test(serverconfiginfotest.cpp) add_ruqola_test(notificationpreferencemodeltest.cpp) add_ruqola_test(notificationpreferencestest.cpp) add_ruqola_test(mentionstest.cpp) add_ruqola_test(mentiontest.cpp) add_ruqola_test(mentionsmodeltest.cpp) add_ruqola_test(mentionsfilterproxymodeltest.cpp) add_ruqola_test(roletest.cpp) add_ruqola_test(rolestest.cpp) add_ruqola_test(messagestarredtest.cpp) add_ruqola_test(messagepinnedtest.cpp) add_ruqola_test(notificationdesktopdurationpreferencemodeltest.cpp) add_ruqola_test(notificationdesktopsoundpreferencemodeltest.cpp) add_ruqola_test(unicodeemoticonparsertest.cpp) add_ruqola_test(discussionsmodeltest.cpp) add_ruqola_test(discussionsfilterproxymodeltest.cpp) add_ruqola_test(discussiontest.cpp) add_ruqola_test(discussionstest.cpp) add_ruqola_test(threadtest.cpp) add_ruqola_test(threadsfilterproxymodeltest.cpp) add_ruqola_test(emoticoncategoriesmodeltest.cpp) add_ruqola_test(emoticoncategorytest.cpp) add_ruqola_test(threadstest.cpp) add_ruqola_test(threadsmodeltest.cpp) add_ruqola_test(threadmessagestest.cpp) add_ruqola_test(threadmessagetest.cpp) add_ruqola_test(fileattachmentstest.cpp) add_ruqola_test(threadmessagemodeltest.cpp) add_ruqola_test(convertertextabstractjobtest.cpp) add_ruqola_test(translatetextjobtest.cpp) add_ruqola_test(listmessagesmodeltest.cpp) -add_ruqola_test(pinnedmessagemodelfilterproxymodeltest.cpp) +add_ruqola_test(listmessagesmodelfilterproxymodeltest.cpp) add_ruqola_test(autotranslatelanguagesmodeltest.cpp) add_ruqola_test(autotranslatelanguagetest.cpp) add_ruqola_test(autotranslatelanguagestest.cpp) add_ruqola_test(messagetranslationtest.cpp) add_ruqola_test(userwrappertest.cpp) add_subdirectory(qml) diff --git a/autotests/pinnedmessagemodelfilterproxymodeltest.cpp b/autotests/listmessagesmodelfilterproxymodeltest.cpp similarity index 74% rename from autotests/pinnedmessagemodelfilterproxymodeltest.cpp rename to autotests/listmessagesmodelfilterproxymodeltest.cpp index 723da3d3..2ee844af 100644 --- a/autotests/pinnedmessagemodelfilterproxymodeltest.cpp +++ b/autotests/listmessagesmodelfilterproxymodeltest.cpp @@ -1,27 +1,33 @@ /* Copyright (c) 2019 Montel Laurent 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 ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), 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 "pinnedmessagemodelfilterproxymodeltest.h" +#include "listmessagesmodelfilterproxymodeltest.h" +#include "model/listmessagesmodelfilterproxymodel.h" #include -QTEST_GUILESS_MAIN(PinnedMessageModelFilterProxyModelTest) +QTEST_GUILESS_MAIN(ListMessagesModelFilterProxyModelTest) -PinnedMessageModelFilterProxyModelTest::PinnedMessageModelFilterProxyModelTest(QObject *parent) +ListMessagesModelFilterProxyModelTest::ListMessagesModelFilterProxyModelTest(QObject *parent) : QObject(parent) { } + +void ListMessagesModelFilterProxyModelTest::shouldHaveDefaultValues() +{ + //TODO +} diff --git a/autotests/pinnedmessagemodelfilterproxymodeltest.h b/autotests/listmessagesmodelfilterproxymodeltest.h similarity index 82% rename from autotests/pinnedmessagemodelfilterproxymodeltest.h rename to autotests/listmessagesmodelfilterproxymodeltest.h index a01c695b..47c21d73 100644 --- a/autotests/pinnedmessagemodelfilterproxymodeltest.h +++ b/autotests/listmessagesmodelfilterproxymodeltest.h @@ -1,33 +1,35 @@ /* Copyright (c) 2019 Montel Laurent 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 ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), 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 PINNEDMESSAGEMODELFILTERPROXYMODELTEST_H #define PINNEDMESSAGEMODELFILTERPROXYMODELTEST_H #include -class PinnedMessageModelFilterProxyModelTest : public QObject +class ListMessagesModelFilterProxyModelTest : public QObject { Q_OBJECT public: - explicit PinnedMessageModelFilterProxyModelTest(QObject *parent = nullptr); - ~PinnedMessageModelFilterProxyModelTest() = default; + explicit ListMessagesModelFilterProxyModelTest(QObject *parent = nullptr); + ~ListMessagesModelFilterProxyModelTest() = default; +private Q_SLOTS: + void shouldHaveDefaultValues(); }; #endif // PINNEDMESSAGEMODELFILTERPROXYMODELTEST_H