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/>.
23
#include "mock-object.h" // parent class
24
#include "backend-dbus/dbus-user.h" // AccountsUser
26
class MockUser: public MockObject
30
static guint get_next_uid ();
34
MockUser (GMainLoop * loop,
35
GDBusConnection * bus_connection,
36
const char * userName,
37
const char * realName,
38
guint64 login_frequency,
39
guint uid = get_next_uid());
42
const char * username () const;
43
const char * realname () const;
44
void set_realname (const char *);
46
guint64 login_frequency () const;
47
//bool system_account() const;
49
bool is_guest() const;
50
void set_system_account (gboolean b);
54
AccountsUser * my_skeleton;