From 9dd39e5aa27fc19c549c1597b2d4a969799902c2 Mon Sep 17 00:00:00 2001
From: Nicolas Jager <nicolas.jager@savoirfairelinux.com>
Date: Wed, 29 Nov 2017 11:32:09 -0500
Subject: [PATCH] test: add NewAccountModelTester
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

- this class is a stub.

Change-Id: Ie585f3ca375443f968fbaa4cf6a02bc4d15dbfeb
Reviewed-by: Sébastien Blin <sebastien.blin@savoirfairelinux.com>
---
 CMakeLists.txt                 |  2 ++
 test/newaccountmodeltester.cpp | 54 +++++++++++++++++++++++++++++
 test/newaccountmodeltester.h   | 63 ++++++++++++++++++++++++++++++++++
 3 files changed, 119 insertions(+)
 create mode 100644 test/newaccountmodeltester.cpp
 create mode 100644 test/newaccountmodeltester.h

diff --git a/CMakeLists.txt b/CMakeLists.txt
index df48e295..976b68d6 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 00000000..bab36e14
--- /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 00000000..129bf172
--- /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
-- 
GitLab