diff --git a/CMakeLists.txt b/CMakeLists.txt index df48e295872311d846c8bd1f6152daae503d74a0..976b68d691f8a5d2e9488313e18e87bc145cac4a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -883,6 +883,8 @@ IF((${ENABLE_TEST} MATCHES true)) test/contactmodeltester.cpp test/newcallmodeltester.h test/newcallmodeltester.cpp + test/newaccountmodeltester.h + test/newaccountmodeltester.cpp ${libringclient_LIB_SRCS} ${libringclient_PRIVATE_HDRS} ) diff --git a/test/newaccountmodeltester.cpp b/test/newaccountmodeltester.cpp new file mode 100644 index 0000000000000000000000000000000000000000..bab36e14efd51e3bd5c4a2f3401074c0b5cc1ea6 --- /dev/null +++ b/test/newaccountmodeltester.cpp @@ -0,0 +1,54 @@ +/**************************************************************************** + * Copyright (C) 2017 Savoir-faire Linux * + * Author: Nicolas Jäger <nicolas.jager@savoirfairelinux.com> * + * * + * This library is free software; you can redistribute it and/or * + * modify it under the terms of the GNU Lesser General Public * + * License as published by the Free Software Foundation; either * + * version 2.1 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 * + * Lesser General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see <http://www.gnu.org/licenses/>. * + ***************************************************************************/ +#include "newaccountmodeltester.h" + +// Qt +#include <QString> +#include "utils/waitforsignalhelper.h" + +// lrc +#include "api/lrc.h" + +namespace ring +{ +namespace test +{ + +CPPUNIT_TEST_SUITE_REGISTRATION(NewAccountModelTester); + +NewAccountModelTester::NewAccountModelTester() +: lrc_(new lrc::api::Lrc()) +{ + +} + +void +NewAccountModelTester::setUp() +{ + +} + + +void +NewAccountModelTester::tearDown() +{ + +} + +} // namespace test +} // namespace ring diff --git a/test/newaccountmodeltester.h b/test/newaccountmodeltester.h new file mode 100644 index 0000000000000000000000000000000000000000..129bf172baeb5328b313349b0259c47d571be722 --- /dev/null +++ b/test/newaccountmodeltester.h @@ -0,0 +1,63 @@ +/**************************************************************************** + * Copyright (C) 2017 Savoir-faire Linux * + * Author: Nicolas Jäger <nicolas.jager@savoirfairelinux.com> * + * * + * This library is free software; you can redistribute it and/or * + * modify it under the terms of the GNU Lesser General Public * + * License as published by the Free Software Foundation; either * + * version 2.1 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 * + * Lesser General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see <http://www.gnu.org/licenses/>. * + ***************************************************************************/ +#pragma once + +// cppunit +#include <cppunit/TestFixture.h> +#include <cppunit/extensions/HelperMacros.h> + +// std +#include <memory> + +// Qt +#include <QObject> + +namespace lrc +{ +namespace api +{ +class Lrc; +} +} + +namespace ring +{ +namespace test +{ + +class NewAccountModelTester : public CppUnit::TestFixture { + CPPUNIT_TEST_SUITE(NewAccountModelTester); + CPPUNIT_TEST_SUITE_END(); + +public: + NewAccountModelTester(); + /** + * Method automatically called before each test by CppUnit + */ + void setUp(); + /** + * Method automatically called after each test CppUnit + */ + void tearDown(); + +protected: + std::unique_ptr<lrc::api::Lrc> lrc_; +}; + +} // namespace test +} // namespace ring