2
* Copyright (C) 2013 Canonical, Ltd.
4
* This program is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU General Public License version 3, as published
6
* by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranties of
10
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
11
* PURPOSE. See the GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License along
14
* with this program. If not, see <http://www.gnu.org/licenses/>.
16
* Author: Pete Woods <pete.woods@canonical.com>
19
#include <libqtdbustest/DBusTestRunner.h>
20
#include <libqtdbustest/QProcessDBusService.h>
21
#include <libqtdbusmock/DBusMock.h>
22
#include <NetworkManager.h>
24
#include <gmock/gmock.h>
25
#include <gtest/gtest.h>
28
using namespace testing;
29
using namespace QtDBusTest;
30
using namespace QtDBusMock;
34
class TestIndicatorNetworkService: public Test {
36
TestIndicatorNetworkService() :
37
dbusMock(dbusTestRunner) {
39
dbusMock.registerNetworkManager();
40
dbusTestRunner.startServices();
42
DBusServicePtr indicator(
43
new QProcessDBusService("com.canonical.indicator.network",
44
QDBusConnection::SessionBus, NETWORK_SERVICE_BIN,
48
virtual ~TestIndicatorNetworkService() {
51
DBusTestRunner dbusTestRunner;
56
TEST_F(TestIndicatorNetworkService, Foo) {
57
//FIXME: Port the python test