~smspillaz/unity/unity.6.0.fix_1036521

« back to all changes in this revision

Viewing changes to tests/gmockmount.h

  • Committer: Ugo Riboni
  • Date: 2012-08-31 09:15:33 UTC
  • mfrom: (2644 unity)
  • mto: This revision was merged to the branch mainline in revision 2647.
  • Revision ID: ugo.riboni@canonical.com-20120831091533-60o9ph7zhfxxi6md
Merge changes from trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-
 
2
/*
 
3
 * Copyright 2012 Canonical Ltd.
 
4
 *
 
5
 * This program is free software: you can redistribute it and/or modify it
 
6
 * under the terms of the GNU Lesser General Public License version 3, as
 
7
 * published by the  Free Software Foundation.
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful, but
 
10
 * WITHOUT ANY WARRANTY; without even the implied warranties of
 
11
 * MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
 
12
 * PURPOSE.  See the applicable version of the GNU Lesser General Public
 
13
 * License for more details.
 
14
 *
 
15
 * You should have received a copy of both the GNU Lesser General Public
 
16
 * License version 3 along with this program.  If not, see
 
17
 * <http://www.gnu.org/licenses/>
 
18
 *
 
19
 * Authored by: Andrea Azzarone <andrea.azzarone@canonical.com>
 
20
 *
 
21
 */
 
22
 
 
23
#ifndef UNITYSHELL_G_MOCK_MOUNT_H
 
24
#define UNITYSHELL_G_MOCK_MOUNT_H
 
25
 
 
26
#include <gio/gio.h>
 
27
 
 
28
G_BEGIN_DECLS
 
29
 
 
30
#define ROOT_FILE_PATH "/some/directory/testfile"
 
31
#define ROOT_FILE_URI "file://" ROOT_FILE_PATH
 
32
 
 
33
#define G_TYPE_MOCK_MOUNT        (g_mock_mount_get_type ())
 
34
#define G_MOCK_MOUNT(o)          (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_MOCK_MOUNT, GMockMount))
 
35
#define G_MOCK_MOUNT_CLASS(k)    (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_MOCK_MOUNT, GMockMountClass))
 
36
#define G_IS_MOCK_MOUNT(o)       (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_MOCK_MOUNT))
 
37
#define G_IS_MOCK_MOUNT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_MOCK_MOUNT))
 
38
 
 
39
typedef struct _GMockMount GMockMount;
 
40
typedef struct _GMockMountClass GMockMountClass;
 
41
 
 
42
struct _GMockMount {
 
43
  GObject parent;
 
44
};
 
45
 
 
46
struct _GMockMountClass {
 
47
  GObjectClass parent_class;
 
48
};
 
49
 
 
50
GType         g_mock_mount_get_type  (void) G_GNUC_CONST;
 
51
GMockMount *  g_mock_mount_new       ();
 
52
 
 
53
G_END_DECLS
 
54
 
 
55
#endif // UNITYSHELL_G_MOCK_MOUNT_H