~ubuntu-branches/ubuntu/vivid/gnome-keyring/vivid-proposed

« back to all changes in this revision

Viewing changes to daemon/dbus/tests/test-service.h

  • Committer: Package Import Robot
  • Author(s): Dimitri John Ledkov
  • Date: 2014-12-06 18:47:09 UTC
  • mfrom: (116.2.6 sid)
  • Revision ID: package-import@ubuntu.com-20141206184709-r2sbrchgej06j31z
Tags: 3.14.0-1ubuntu1
* Merge from debian, remaining changes:
  - Build with dh-autoreconf for new libtool.  
  - Provide upstart user session jobs.
  * debian/gnome-keyring.ubiquity, debian/rules:
    - Apply capabilities at the end of the ubiquity process to make sure new
      installs have gnome-keyring-daemon with cap_ipc_lock+ep.
  * debian/control, debian/*.install, debian/rules:
    - change for multiarch support, install pkcs11 in its own binary

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2
 
/* test-service.c: Common service code
3
 
 
4
 
   Copyright (C) 2013 Red Hat Inc
5
 
 
6
 
   The Gnome Keyring Library is free software; you can redistribute it and/or
7
 
   modify it under the terms of the GNU Library General Public License as
8
 
   published by the Free Software Foundation; either version 2 of the
9
 
   License, or (at your option) any later version.
10
 
 
11
 
   The Gnome Keyring Library is distributed in the hope that it will be useful,
12
 
   but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14
 
   Library General Public License for more details.
15
 
 
16
 
   You should have received a copy of the GNU Library General Public
17
 
   License along with the Gnome Library; see the file COPYING.LIB.  If not,
18
 
   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19
 
   Boston, MA 02111-1307, USA.
20
 
 
21
 
   Author: Stef Walter <stefw@gnome.org>
22
 
*/
23
 
 
24
 
#ifndef TEST_COMMON_H__
25
 
#define TEST_COMMON_H__
26
 
 
27
 
#include <glib.h>
28
 
#include <gio/gio.h>
29
 
 
30
 
typedef struct {
31
 
        GDBusConnection *connection;
32
 
        gchar *bus_name;
33
 
        const gchar *mock_prompter;
34
 
        GPid pid;
35
 
        gboolean available;
36
 
        gchar *session;
37
 
        guint watch_id;
38
 
        gchar *directory;
39
 
} TestService;
40
 
 
41
 
void         test_service_setup           (TestService *test);
42
 
 
43
 
void         test_service_teardown        (TestService *test);
44
 
 
45
 
GVariant *   test_service_build_secret    (TestService *test,
46
 
                                           const gchar *value);
47
 
 
48
 
#endif /* TEST_COMMON_H__ */