Commit 9dd39e5a authored by Nicolas Jager's avatar Nicolas Jager Committed by Sébastien Blin

test: add NewAccountModelTester

- this class is a stub.

Change-Id: Ie585f3ca375443f968fbaa4cf6a02bc4d15dbfeb
Reviewed-by: Sébastien Blin's avatarSébastien Blin <sebastien.blin@savoirfairelinux.com>
parent ec8c1780
......@@ -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}
)
......
/****************************************************************************
* 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
/****************************************************************************
* 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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment