summaryrefslogtreecommitdiff
path: root/gir
diff options
context:
space:
mode:
authorDanielle Madeley <danielle.madeley@collabora.co.uk>2010-06-18 15:30:55 +1000
committerDanielle Madeley <danielle.madeley@collabora.co.uk>2010-06-22 14:36:29 +1000
commit66eb7142b048c1c08cbbb740a4bb9ab06c9ed20a (patch)
tree9e2ee275d1088d350eb111d38d57763a5e781b6f /gir
parent074192b89c6afcdd7f062f03989972e44334b8bf (diff)
downloadgobject-introspection-66eb7142b048c1c08cbbb740a4bb9ab06c9ed20a.tar.gz
Add tests to Everything for items stored in GValues
Diffstat (limited to 'gir')
-rw-r--r--gir/everything.c23
-rw-r--r--gir/everything.h3
2 files changed, 26 insertions, 0 deletions
diff --git a/gir/everything.c b/gir/everything.c
index f8baada6..690dc733 100644
--- a/gir/everything.c
+++ b/gir/everything.c
@@ -2354,3 +2354,26 @@ test_torture_signature_2 (int x,
notify (user_data);
}
+GValue *
+test_date_in_gvalue (void)
+{
+ GValue *value = g_new0 (GValue, 1);
+ GDate *date = g_date_new_dmy (5, 12, 1984);
+
+ g_value_init (value, G_TYPE_DATE);
+ g_value_take_boxed (value, date);
+
+ return value;
+}
+
+GValue *
+test_strv_in_gvalue (void)
+{
+ GValue *value = g_new0 (GValue, 1);
+ const char *strv[] = { "one", "two", "three", NULL };
+
+ g_value_init (value, G_TYPE_STRV);
+ g_value_set_boxed (value, strv);
+
+ return value;
+}
diff --git a/gir/everything.h b/gir/everything.h
index 3f89e226..8a8b1e0d 100644
--- a/gir/everything.h
+++ b/gir/everything.h
@@ -441,4 +441,7 @@ void test_torture_signature_2 (int x,
int *q,
guint m);
+GValue *test_date_in_gvalue (void);
+GValue *test_strv_in_gvalue (void);
+
#endif /* __GITESTTYPES_H__ */