[gobject-introspection: 1/2] Add tests to Everything for items stored in GValues
- From: Danielle Madeley <daniellem src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection: 1/2] Add tests to Everything for items stored in GValues
- Date: Tue, 22 Jun 2010 04:41:44 +0000 (UTC)
commit 66eb7142b048c1c08cbbb740a4bb9ab06c9ed20a
Author: Danielle Madeley <danielle madeley collabora co uk>
Date: Fri Jun 18 15:30:55 2010 +1000
Add tests to Everything for items stored in GValues
gir/everything.c | 23 +++++++++++++++++++++++
gir/everything.h | 3 +++
2 files changed, 26 insertions(+), 0 deletions(-)
---
diff --git a/gir/everything.c b/gir/everything.c
index f8baada..690dc73 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 3f89e22..8a8b1e0 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__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]