2
* Copyright 2013 Canonical Ltd.
5
* Charles Kerr <charles.kerr@canonical.com>
7
* This program is free software: you can redistribute it and/or modify it
8
* under the terms of the GNU General Public License version 3, as published
9
* by the Free Software Foundation.
11
* This program is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranties of
13
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
14
* PURPOSE. See the GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License along
17
* with this program. If not, see <http://www.gnu.org/licenses/>.
20
#ifndef MOCK_WEBCREDENTIALS_H
21
#define MOCK_WEBCREDENTIALS_H
23
#include "mock-object.h" // parent class
24
#include "backend-dbus/dbus-webcredentials.h" // Webcredentials
26
class MockWebcredentials: public MockObject
30
MockWebcredentials (GMainLoop * loop,
31
GDBusConnection * bus_connection);
32
virtual ~MockWebcredentials ();
34
bool has_error () const { return webcredentials_get_error_status (my_skeleton); }
35
void set_error (bool b) const { webcredentials_set_error_status (my_skeleton, b); }
39
Webcredentials * my_skeleton;