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
#include "backend-mock.h"
21
#include "backend-mock-actions.h"
22
#include "backend-mock-guest.h"
23
#include "backend-mock-users.h"
25
GSettings * mock_settings = NULL;
26
IndicatorSessionActions * mock_actions = NULL;
27
IndicatorSessionUsers * mock_users = NULL;
28
IndicatorSessionGuest * mock_guest = NULL;
31
backend_get (GCancellable * cancellable G_GNUC_UNUSED,
32
IndicatorSessionActions ** setme_actions,
33
IndicatorSessionUsers ** setme_users,
34
IndicatorSessionGuest ** setme_guest)
36
if (setme_actions != NULL)
37
*setme_actions = g_object_ref (mock_actions);
39
if (setme_users != NULL)
40
*setme_users = g_object_ref (mock_users);
42
if (setme_guest != NULL)
43
*setme_guest = g_object_ref (mock_guest);