2
* Copyright © 2014 Canonical Ltd.
4
* This program is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU Lesser General Public License version 3,
6
* as published by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU Lesser General Public License for more details.
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
* Pete Woods <pete.woods@canonical.com>
22
#include <QCoreApplication>
24
#include <gtest/gtest.h>
26
#include <libqtdbusmock/DBusMock.h>
28
#include "dbus-types.h"
30
using namespace QtDBusMock;
32
class Runner: public QObject
38
QCoreApplication::exit(RUN_ALL_TESTS());
42
int main(int argc, char **argv)
44
qputenv("LANG", "C.UTF-8");
47
QCoreApplication application(argc, argv);
48
DBusMock::registerMetaTypes();
49
DBusTypes::registerMetaTypes();
50
::testing::InitGoogleTest(&argc, argv);
53
QTimer::singleShot(0, &runner, SLOT(run()));
55
return application.exec();