blob: d43a0e57da2dd60011e2c66dc0c6891946a7052b (
plain)
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
|
/* Test enum #defines are up to date
*
* Copyright (C) 2010 Collabora Ltd. <http://www.collabora.co.uk/>
*
* Copying and distribution of this file, with or without modification,
* are permitted in any medium without royalty provided the copyright
* notice and this notice are preserved.
*/
#include <telepathy-glib/enums.h>
#include <telepathy-glib/contact.h>
#include <telepathy-glib/proxy.h>
#include "tests/lib/debug.h"
#include "tests/lib/util.h"
static void
test_tp_contact_feature (void)
{
GEnumClass *klass;
g_type_init ();
klass = g_type_class_ref (TP_TYPE_CONTACT_FEATURE);
g_assert (klass != NULL);
g_assert (G_IS_ENUM_CLASS (klass));
g_assert_cmpint (klass->n_values, ==, NUM_TP_CONTACT_FEATURES);
g_type_class_unref (klass);
}
static void
test_tp_dbus_error (void)
{
GEnumClass *klass;
g_type_init ();
klass = g_type_class_ref (TP_TYPE_DBUS_ERROR);
g_assert (klass != NULL);
g_assert (G_IS_ENUM_CLASS (klass));
g_assert_cmpint (klass->n_values, ==, NUM_TP_DBUS_ERRORS);
}
int
main (int argc,
char **argv)
{
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/enums/tp-contact-feature", test_tp_contact_feature);
g_test_add_func ("/enums/tp-dbus-error", test_tp_dbus_error);
return g_test_run ();
}
|