This file is indexed.

/usr/include/libdbustest-1/libdbustest/dbus-mock.h is in libdbustest1-dev 14.04.1+14.04.20140320-0ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
/*
Copyright 2013 Canonical Ltd.

Authors:
    Ted Gould <ted@canonical.com>

This program is free software: you can redistribute it and/or modify it 
under the terms of the GNU General Public License version 3, as published 
by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but 
WITHOUT ANY WARRANTY; without even the implied warranties of 
MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 
PURPOSE.  See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along 
with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef __DBUS_TEST_DBUS_MOCK_H__
#define __DBUS_TEST_DBUS_MOCK_H__

#ifndef __DBUS_TEST_TOP_LEVEL__
#error "Please include #include <libdbustest/dbus-test.h> only"
#endif

#include <glib-object.h>
#include "process.h"

G_BEGIN_DECLS

#define DBUS_TEST_TYPE_DBUS_MOCK            (dbus_test_dbus_mock_get_type ())
#define DBUS_TEST_DBUS_MOCK(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), DBUS_TEST_TYPE_DBUS_MOCK, DbusTestDbusMock))
#define DBUS_TEST_DBUS_MOCK_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), DBUS_TEST_TYPE_DBUS_MOCK, DbusTestDbusMockClass))
#define DBUS_TEST_IS_DBUS_MOCK(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DBUS_TEST_TYPE_DBUS_MOCK))
#define DBUS_TEST_IS_DBUS_MOCK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DBUS_TEST_TYPE_DBUS_MOCK))
#define DBUS_TEST_DBUS_MOCK_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), DBUS_TEST_TYPE_DBUS_MOCK, DbusTestDbusMockClass))

typedef struct _DbusTestDbusMock         DbusTestDbusMock;
typedef struct _DbusTestDbusMockClass    DbusTestDbusMockClass;
typedef struct _DbusTestDbusMockPrivate  DbusTestDbusMockPrivate;
typedef struct _DbusTestDbusMockObject   DbusTestDbusMockObject;
typedef struct _DbusTestDbusMockCall     DbusTestDbusMockCall;

struct _DbusTestDbusMockClass {
	DbusTestProcessClass parent_class;
};

struct _DbusTestDbusMock {
	DbusTestProcess parent;
	DbusTestDbusMockPrivate * priv;
};

struct _DbusTestDbusMockCall {
	guint64 timestamp;
	const gchar * name;
	GVariant * params;
};

GType dbus_test_dbus_mock_get_type (void);

DbusTestDbusMock *          dbus_test_dbus_mock_new                       (const gchar *             bus_name);


/* Object stuff */

DbusTestDbusMockObject *    dbus_test_dbus_mock_get_object                (DbusTestDbusMock *        mock,
                                                                           const gchar *             path,
                                                                           const gchar *             interface,
                                                                           GError **                 error);

gboolean                    dbus_test_dbus_mock_object_add_method         (DbusTestDbusMock *        mock,
                                                                           DbusTestDbusMockObject *  obj,
                                                                           const gchar *             method,
                                                                           const GVariantType *      inparams,
                                                                           const GVariantType *      outparams,
                                                                           const gchar *             python_code,
                                                                           GError **                 error);

gboolean                    dbus_test_dbus_mock_object_check_method_call  (DbusTestDbusMock *        mock,
                                                                           DbusTestDbusMockObject *  obj,
                                                                           const gchar *             method,
                                                                           GVariant *                params,
                                                                           GError **                 error);

gboolean                    dbus_test_dbus_mock_object_clear_method_calls (DbusTestDbusMock *        mock,
                                                                           DbusTestDbusMockObject *  obj,
                                                                           GError **                 error);

const DbusTestDbusMockCall * dbus_test_dbus_mock_object_get_method_calls  (DbusTestDbusMock *        mock,
                                                                           DbusTestDbusMockObject *  obj,
                                                                           const gchar *             method,
                                                                           guint *                   len,
                                                                           GError **                 error);

gboolean                    dbus_test_dbus_mock_object_add_property       (DbusTestDbusMock *        mock,
                                                                           DbusTestDbusMockObject *  obj,
                                                                           const gchar *             name,
                                                                           const GVariantType *      type,
                                                                           GVariant *                value,
                                                                           GError **                 error);

gboolean                    dbus_test_dbus_mock_object_update_property    (DbusTestDbusMock *        mock,
                                                                           DbusTestDbusMockObject *  obj,
                                                                           const gchar *             name,
                                                                           GVariant *                value,
                                                                           GError **                 error);

gboolean                    dbus_test_dbus_mock_object_emit_signal        (DbusTestDbusMock *        mock,
                                                                           DbusTestDbusMockObject *  obj,
                                                                           const gchar *             name,
                                                                           const GVariantType *      params,
                                                                           GVariant *                values,
                                                                           GError **                 error);

G_END_DECLS

#endif