diff options
Diffstat (limited to 'browser/unit-tests/errorloggerdbus/testerrorloggerdbus.h')
-rw-r--r-- | browser/unit-tests/errorloggerdbus/testerrorloggerdbus.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/browser/unit-tests/errorloggerdbus/testerrorloggerdbus.h b/browser/unit-tests/errorloggerdbus/testerrorloggerdbus.h new file mode 100644 index 0000000..bb0e38f --- /dev/null +++ b/browser/unit-tests/errorloggerdbus/testerrorloggerdbus.h @@ -0,0 +1,45 @@ +/** + * Copyright (C) 2014, Pelagicore + * + * Author: Jonatan Palsson <jonatan.palsson@pelagicore.com> + * + * This file is part of the GENIVI project Browser Proof-Of-Concept + * For further information, see http://genivi.org/ + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ +#ifndef TESTERRORLOGGERDBUS_H +#define TESTERRORLOGGERDBUS_H + +#include <QtTest/QtTest> +#include <QDBusConnection> + +#include "../../../common/errorloggerdbus.h" +#include "../../../common/browserdefs.h" + +#include "ierrorlogger_interface.h" +#include "ierrorlogger_adaptor.h" +#include "../../errorlogger.h" + +class TestErrorLoggerDBus: public QObject +{ + Q_OBJECT + +private slots: + void initTestCase(); + void cleanup(); + + void canLogMessage(); + void canGetSorted(); + void isNotifiedOnNewItem(); + void isNotifiedWhenListChanges(); + +private: + ErrorLoggerDbus *m_eld = NULL; + QDBusConnection *m_connection = NULL; + errorlogger *m_err; +}; + +#endif /* TESTERRORLOGGERDBUS_H */ |