Back to index

libunity  5.92.0
test-launcher.c
Go to the documentation of this file.
00001 /* test-launcher.c generated by valac 0.17.2, the Vala compiler
00002  * generated from test-launcher.vala, do not modify */
00003 
00004 /* -*- Mode: vala; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*- */
00005 /*
00006  * Copyright (C) 2010 Canonical Ltd
00007  *
00008  * This program is free software: you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License version 3 as
00010  * published by the Free Software Foundation.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00019  *
00020  * Authored by Mikkel Kamstrup Erlandsen <mikkel.kamstrup@canonical.com>
00021  *
00022  */
00023 
00024 #include <glib.h>
00025 #include <glib-object.h>
00026 #include <unity-internal.h>
00027 #include <dee.h>
00028 #include <gobject/gvaluecollector.h>
00029 
00030 
00031 #define UNITY_TEST_TYPE_LAUNCHER_SUITE (unity_test_launcher_suite_get_type ())
00032 #define UNITY_TEST_LAUNCHER_SUITE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_TEST_TYPE_LAUNCHER_SUITE, UnityTestLauncherSuite))
00033 #define UNITY_TEST_LAUNCHER_SUITE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_TEST_TYPE_LAUNCHER_SUITE, UnityTestLauncherSuiteClass))
00034 #define UNITY_TEST_IS_LAUNCHER_SUITE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_TEST_TYPE_LAUNCHER_SUITE))
00035 #define UNITY_TEST_IS_LAUNCHER_SUITE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_TEST_TYPE_LAUNCHER_SUITE))
00036 #define UNITY_TEST_LAUNCHER_SUITE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_TEST_TYPE_LAUNCHER_SUITE, UnityTestLauncherSuiteClass))
00037 
00038 typedef struct _UnityTestLauncherSuite UnityTestLauncherSuite;
00039 typedef struct _UnityTestLauncherSuiteClass UnityTestLauncherSuiteClass;
00040 typedef struct _UnityTestLauncherSuitePrivate UnityTestLauncherSuitePrivate;
00041 #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
00042 #define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))
00043 typedef struct _UnityTestParamSpecLauncherSuite UnityTestParamSpecLauncherSuite;
00044 #define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
00045 
00046 struct _UnityTestLauncherSuite {
00047        GTypeInstance parent_instance;
00048        volatile int ref_count;
00049        UnityTestLauncherSuitePrivate * priv;
00050 };
00051 
00052 struct _UnityTestLauncherSuiteClass {
00053        GTypeClass parent_class;
00054        void (*finalize) (UnityTestLauncherSuite *self);
00055 };
00056 
00057 struct _UnityTestParamSpecLauncherSuite {
00058        GParamSpec parent_instance;
00059 };
00060 
00061 
00062 static gpointer unity_test_launcher_suite_parent_class = NULL;
00063 
00064 gpointer unity_test_launcher_suite_ref (gpointer instance);
00065 void unity_test_launcher_suite_unref (gpointer instance);
00066 GParamSpec* unity_test_param_spec_launcher_suite (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
00067 void unity_test_value_set_launcher_suite (GValue* value, gpointer v_object);
00068 void unity_test_value_take_launcher_suite (GValue* value, gpointer v_object);
00069 gpointer unity_test_value_get_launcher_suite (const GValue* value);
00070 GType unity_test_launcher_suite_get_type (void) G_GNUC_CONST;
00071 enum  {
00072        UNITY_TEST_LAUNCHER_SUITE_DUMMY_PROPERTY
00073 };
00074 UnityTestLauncherSuite* unity_test_launcher_suite_new (void);
00075 UnityTestLauncherSuite* unity_test_launcher_suite_construct (GType object_type);
00076 void unity_test_launcher_suite_test_empty_launcher_entry (void);
00077 static void _unity_test_launcher_suite_test_empty_launcher_entry_gtest_data_func (gpointer self);
00078 void unity_test_launcher_suite_test_singleton_entry (void);
00079 static void _unity_test_launcher_suite_test_singleton_entry_gtest_data_func (gpointer self);
00080 void unity_test_launcher_suite_test_serializable_entry (void);
00081 static void _unity_test_launcher_suite_test_serializable_entry_gtest_data_func (gpointer self);
00082 static void unity_test_launcher_suite_finalize (UnityTestLauncherSuite* obj);
00083 
00084 
00085 static void _unity_test_launcher_suite_test_empty_launcher_entry_gtest_data_func (gpointer self) {
00086        unity_test_launcher_suite_test_empty_launcher_entry ();
00087 }
00088 
00089 
00090 static void _unity_test_launcher_suite_test_singleton_entry_gtest_data_func (gpointer self) {
00091        unity_test_launcher_suite_test_singleton_entry ();
00092 }
00093 
00094 
00095 static void _unity_test_launcher_suite_test_serializable_entry_gtest_data_func (gpointer self) {
00096        unity_test_launcher_suite_test_serializable_entry ();
00097 }
00098 
00099 
00100 UnityTestLauncherSuite* unity_test_launcher_suite_construct (GType object_type) {
00101        UnityTestLauncherSuite* self = NULL;
00102        self = (UnityTestLauncherSuite*) g_type_create_instance (object_type);
00103        g_test_add_data_func ("/Unit/Launcher/EmptyEntry", NULL, _unity_test_launcher_suite_test_empty_launcher_entry_gtest_data_func);
00104        g_test_add_data_func ("/Unit/Launcher/SingletonEntry", NULL, _unity_test_launcher_suite_test_singleton_entry_gtest_data_func);
00105        g_test_add_data_func ("/Unit/Launcher/Serializable", NULL, _unity_test_launcher_suite_test_serializable_entry_gtest_data_func);
00106        return self;
00107 }
00108 
00109 
00110 UnityTestLauncherSuite* unity_test_launcher_suite_new (void) {
00111        return unity_test_launcher_suite_construct (UNITY_TEST_TYPE_LAUNCHER_SUITE);
00112 }
00113 
00114 
00115 void unity_test_launcher_suite_test_empty_launcher_entry (void) {
00116        UnityLauncherEntry* _tmp0_ = NULL;
00117        UnityLauncherEntry* l;
00118        const gchar* _tmp1_;
00119        const gchar* _tmp2_;
00120        gint64 _tmp3_;
00121        gint64 _tmp4_;
00122        gboolean _tmp5_;
00123        gboolean _tmp6_;
00124        gdouble _tmp7_;
00125        gdouble _tmp8_;
00126        gboolean _tmp9_;
00127        gboolean _tmp10_;
00128        gboolean _tmp11_;
00129        gboolean _tmp12_;
00130        DbusmenuMenuitem* _tmp13_;
00131        DbusmenuMenuitem* _tmp14_;
00132        _tmp0_ = unity_launcher_entry_get_for_desktop_id ("foo.desktop");
00133        l = _tmp0_;
00134        _vala_assert (G_TYPE_CHECK_INSTANCE_TYPE (l, UNITY_TYPE_LAUNCHER_ENTRY), "l is LauncherEntry");
00135        _tmp1_ = unity_launcher_entry_get_app_uri (l);
00136        _tmp2_ = _tmp1_;
00137        _vala_assert (g_strcmp0 (_tmp2_, "application://foo.desktop") == 0, "l.app_uri == \"application://foo.desktop\"");
00138        _tmp3_ = unity_launcher_entry_get_count (l);
00139        _tmp4_ = _tmp3_;
00140        _vala_assert (_tmp4_ == ((gint64) 0), "l.count == 0");
00141        _tmp5_ = unity_launcher_entry_get_count_visible (l);
00142        _tmp6_ = _tmp5_;
00143        _vala_assert (_tmp6_ == FALSE, "l.count_visible == false");
00144        _tmp7_ = unity_launcher_entry_get_progress (l);
00145        _tmp8_ = _tmp7_;
00146        _vala_assert (_tmp8_ == 0.0, "l.progress == 0.0");
00147        _tmp9_ = unity_launcher_entry_get_progress_visible (l);
00148        _tmp10_ = _tmp9_;
00149        _vala_assert (_tmp10_ == FALSE, "l.progress_visible == false");
00150        _tmp11_ = unity_launcher_entry_get_urgent (l);
00151        _tmp12_ = _tmp11_;
00152        _vala_assert (_tmp12_ == FALSE, "l.urgent == false");
00153        _tmp13_ = unity_launcher_entry_get_quicklist (l);
00154        _tmp14_ = _tmp13_;
00155        _vala_assert (_tmp14_ == NULL, "l.quicklist == null");
00156        _g_object_unref0 (l);
00157 }
00158 
00159 
00160 void unity_test_launcher_suite_test_singleton_entry (void) {
00161        UnityLauncherEntry* _tmp0_ = NULL;
00162        UnityLauncherEntry* l1;
00163        UnityLauncherEntry* _tmp1_ = NULL;
00164        UnityLauncherEntry* l2;
00165        UnityLauncherEntry* _tmp2_ = NULL;
00166        UnityLauncherEntry* l3;
00167        UnityLauncherEntry* _tmp3_ = NULL;
00168        UnityLauncherEntry* l4;
00169        _tmp0_ = unity_launcher_entry_get_for_desktop_id ("foo.desktop");
00170        l1 = _tmp0_;
00171        _tmp1_ = unity_launcher_entry_get_for_desktop_id ("foo.desktop");
00172        l2 = _tmp1_;
00173        _tmp2_ = unity_launcher_entry_get_for_app_uri ("application://foo.desktop");
00174        l3 = _tmp2_;
00175        _tmp3_ = unity_launcher_entry_get_for_desktop_file ("/usr/share/applications/foo.desktop");
00176        l4 = _tmp3_;
00177        _vala_assert (l1 == l2, "l1 == l2");
00178        _vala_assert (l2 == l3, "l2 == l3");
00179        _vala_assert (l3 == l4, "l3 == l4");
00180        _g_object_unref0 (l4);
00181        _g_object_unref0 (l3);
00182        _g_object_unref0 (l2);
00183        _g_object_unref0 (l1);
00184 }
00185 
00186 
00187 void unity_test_launcher_suite_test_serializable_entry (void) {
00188        UnityLauncherEntry* _tmp0_ = NULL;
00189        UnityLauncherEntry* orig;
00190        UnityLauncherEntry* _tmp1_;
00191        UnityLauncherEntry* _tmp2_;
00192        UnityLauncherEntry* _tmp3_;
00193        UnityLauncherEntry* _tmp4_;
00194        UnityLauncherEntry* _tmp5_;
00195        UnityLauncherEntry* _tmp6_;
00196        GVariant* _tmp7_ = NULL;
00197        GVariant* data;
00198        GVariant* _tmp8_;
00199        GObject* _tmp9_ = NULL;
00200        UnityLauncherEntry* copy;
00201        UnityLauncherEntry* _tmp10_;
00202        gint64 _tmp11_;
00203        gint64 _tmp12_;
00204        UnityLauncherEntry* _tmp13_;
00205        gint64 _tmp14_;
00206        gint64 _tmp15_;
00207        UnityLauncherEntry* _tmp16_;
00208        gboolean _tmp17_;
00209        gboolean _tmp18_;
00210        UnityLauncherEntry* _tmp19_;
00211        gboolean _tmp20_;
00212        gboolean _tmp21_;
00213        gboolean _tmp22_ = FALSE;
00214        UnityLauncherEntry* _tmp23_;
00215        gdouble _tmp24_;
00216        gdouble _tmp25_;
00217        UnityLauncherEntry* _tmp26_;
00218        gdouble _tmp27_;
00219        gdouble _tmp28_;
00220        gboolean _tmp35_;
00221        UnityLauncherEntry* _tmp36_;
00222        gboolean _tmp37_;
00223        gboolean _tmp38_;
00224        UnityLauncherEntry* _tmp39_;
00225        gboolean _tmp40_;
00226        gboolean _tmp41_;
00227        UnityLauncherEntry* _tmp42_;
00228        gboolean _tmp43_;
00229        gboolean _tmp44_;
00230        UnityLauncherEntry* _tmp45_;
00231        gboolean _tmp46_;
00232        gboolean _tmp47_;
00233        _tmp0_ = unity_launcher_entry_get_for_desktop_id ("foo.desktop");
00234        orig = _tmp0_;
00235        _tmp1_ = orig;
00236        unity_launcher_entry_set_count (_tmp1_, (gint64) 27);
00237        _tmp2_ = orig;
00238        unity_launcher_entry_set_count_visible (_tmp2_, TRUE);
00239        _tmp3_ = orig;
00240        unity_launcher_entry_set_progress (_tmp3_, 1.0);
00241        _tmp4_ = orig;
00242        unity_launcher_entry_set_progress_visible (_tmp4_, TRUE);
00243        _tmp5_ = orig;
00244        unity_launcher_entry_set_urgent (_tmp5_, TRUE);
00245        _tmp6_ = orig;
00246        _tmp7_ = dee_serializable_externalize ((DeeSerializable*) _tmp6_);
00247        g_variant_ref_sink (_tmp7_);
00248        data = _tmp7_;
00249        _tmp8_ = data;
00250        _tmp9_ = dee_serializable_parse_external (_tmp8_);
00251        copy = G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, UNITY_TYPE_LAUNCHER_ENTRY) ? ((UnityLauncherEntry*) _tmp9_) : NULL;
00252        _tmp10_ = orig;
00253        _tmp11_ = unity_launcher_entry_get_count (_tmp10_);
00254        _tmp12_ = _tmp11_;
00255        _tmp13_ = copy;
00256        _tmp14_ = unity_launcher_entry_get_count (_tmp13_);
00257        _tmp15_ = _tmp14_;
00258        _vala_assert (_tmp12_ == _tmp15_, "orig.count == copy.count");
00259        _tmp16_ = orig;
00260        _tmp17_ = unity_launcher_entry_get_count_visible (_tmp16_);
00261        _tmp18_ = _tmp17_;
00262        _tmp19_ = copy;
00263        _tmp20_ = unity_launcher_entry_get_count_visible (_tmp19_);
00264        _tmp21_ = _tmp20_;
00265        _vala_assert (_tmp18_ == _tmp21_, "orig.count_visible == copy.count_visible");
00266        _tmp23_ = orig;
00267        _tmp24_ = unity_launcher_entry_get_progress (_tmp23_);
00268        _tmp25_ = _tmp24_;
00269        _tmp26_ = copy;
00270        _tmp27_ = unity_launcher_entry_get_progress (_tmp26_);
00271        _tmp28_ = _tmp27_;
00272        if (_tmp25_ > (_tmp28_ - 0.01)) {
00273               UnityLauncherEntry* _tmp29_;
00274               gdouble _tmp30_;
00275               gdouble _tmp31_;
00276               UnityLauncherEntry* _tmp32_;
00277               gdouble _tmp33_;
00278               gdouble _tmp34_;
00279               _tmp29_ = orig;
00280               _tmp30_ = unity_launcher_entry_get_progress (_tmp29_);
00281               _tmp31_ = _tmp30_;
00282               _tmp32_ = copy;
00283               _tmp33_ = unity_launcher_entry_get_progress (_tmp32_);
00284               _tmp34_ = _tmp33_;
00285               _tmp22_ = _tmp31_ < (_tmp34_ + 0.01);
00286        } else {
00287               _tmp22_ = FALSE;
00288        }
00289        _tmp35_ = _tmp22_;
00290        _vala_assert (_tmp35_, "orig.progress > copy.progress - 0.01 &&               orig.progress < copy.progress + 0.01");
00291        _tmp36_ = orig;
00292        _tmp37_ = unity_launcher_entry_get_progress_visible (_tmp36_);
00293        _tmp38_ = _tmp37_;
00294        _tmp39_ = copy;
00295        _tmp40_ = unity_launcher_entry_get_progress_visible (_tmp39_);
00296        _tmp41_ = _tmp40_;
00297        _vala_assert (_tmp38_ == _tmp41_, "orig.progress_visible == copy.progress_visible");
00298        _tmp42_ = orig;
00299        _tmp43_ = unity_launcher_entry_get_urgent (_tmp42_);
00300        _tmp44_ = _tmp43_;
00301        _tmp45_ = copy;
00302        _tmp46_ = unity_launcher_entry_get_urgent (_tmp45_);
00303        _tmp47_ = _tmp46_;
00304        _vala_assert (_tmp44_ == _tmp47_, "orig.urgent == copy.urgent");
00305        _g_object_unref0 (copy);
00306        _g_variant_unref0 (data);
00307        _g_object_unref0 (orig);
00308 }
00309 
00310 
00311 static void unity_test_value_launcher_suite_init (GValue* value) {
00312        value->data[0].v_pointer = NULL;
00313 }
00314 
00315 
00316 static void unity_test_value_launcher_suite_free_value (GValue* value) {
00317        if (value->data[0].v_pointer) {
00318               unity_test_launcher_suite_unref (value->data[0].v_pointer);
00319        }
00320 }
00321 
00322 
00323 static void unity_test_value_launcher_suite_copy_value (const GValue* src_value, GValue* dest_value) {
00324        if (src_value->data[0].v_pointer) {
00325               dest_value->data[0].v_pointer = unity_test_launcher_suite_ref (src_value->data[0].v_pointer);
00326        } else {
00327               dest_value->data[0].v_pointer = NULL;
00328        }
00329 }
00330 
00331 
00332 static gpointer unity_test_value_launcher_suite_peek_pointer (const GValue* value) {
00333        return value->data[0].v_pointer;
00334 }
00335 
00336 
00337 static gchar* unity_test_value_launcher_suite_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
00338        if (collect_values[0].v_pointer) {
00339               UnityTestLauncherSuite* object;
00340               object = collect_values[0].v_pointer;
00341               if (object->parent_instance.g_class == NULL) {
00342                      return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
00343               } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
00344                      return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
00345               }
00346               value->data[0].v_pointer = unity_test_launcher_suite_ref (object);
00347        } else {
00348               value->data[0].v_pointer = NULL;
00349        }
00350        return NULL;
00351 }
00352 
00353 
00354 static gchar* unity_test_value_launcher_suite_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
00355        UnityTestLauncherSuite** object_p;
00356        object_p = collect_values[0].v_pointer;
00357        if (!object_p) {
00358               return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
00359        }
00360        if (!value->data[0].v_pointer) {
00361               *object_p = NULL;
00362        } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
00363               *object_p = value->data[0].v_pointer;
00364        } else {
00365               *object_p = unity_test_launcher_suite_ref (value->data[0].v_pointer);
00366        }
00367        return NULL;
00368 }
00369 
00370 
00371 GParamSpec* unity_test_param_spec_launcher_suite (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
00372        UnityTestParamSpecLauncherSuite* spec;
00373        g_return_val_if_fail (g_type_is_a (object_type, UNITY_TEST_TYPE_LAUNCHER_SUITE), NULL);
00374        spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
00375        G_PARAM_SPEC (spec)->value_type = object_type;
00376        return G_PARAM_SPEC (spec);
00377 }
00378 
00379 
00380 gpointer unity_test_value_get_launcher_suite (const GValue* value) {
00381        g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, UNITY_TEST_TYPE_LAUNCHER_SUITE), NULL);
00382        return value->data[0].v_pointer;
00383 }
00384 
00385 
00386 void unity_test_value_set_launcher_suite (GValue* value, gpointer v_object) {
00387        UnityTestLauncherSuite* old;
00388        g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, UNITY_TEST_TYPE_LAUNCHER_SUITE));
00389        old = value->data[0].v_pointer;
00390        if (v_object) {
00391               g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, UNITY_TEST_TYPE_LAUNCHER_SUITE));
00392               g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
00393               value->data[0].v_pointer = v_object;
00394               unity_test_launcher_suite_ref (value->data[0].v_pointer);
00395        } else {
00396               value->data[0].v_pointer = NULL;
00397        }
00398        if (old) {
00399               unity_test_launcher_suite_unref (old);
00400        }
00401 }
00402 
00403 
00404 void unity_test_value_take_launcher_suite (GValue* value, gpointer v_object) {
00405        UnityTestLauncherSuite* old;
00406        g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, UNITY_TEST_TYPE_LAUNCHER_SUITE));
00407        old = value->data[0].v_pointer;
00408        if (v_object) {
00409               g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, UNITY_TEST_TYPE_LAUNCHER_SUITE));
00410               g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
00411               value->data[0].v_pointer = v_object;
00412        } else {
00413               value->data[0].v_pointer = NULL;
00414        }
00415        if (old) {
00416               unity_test_launcher_suite_unref (old);
00417        }
00418 }
00419 
00420 
00421 static void unity_test_launcher_suite_class_init (UnityTestLauncherSuiteClass * klass) {
00422        unity_test_launcher_suite_parent_class = g_type_class_peek_parent (klass);
00423        UNITY_TEST_LAUNCHER_SUITE_CLASS (klass)->finalize = unity_test_launcher_suite_finalize;
00424 }
00425 
00426 
00427 static void unity_test_launcher_suite_instance_init (UnityTestLauncherSuite * self) {
00428        self->ref_count = 1;
00429 }
00430 
00431 
00432 static void unity_test_launcher_suite_finalize (UnityTestLauncherSuite* obj) {
00433        UnityTestLauncherSuite * self;
00434        self = G_TYPE_CHECK_INSTANCE_CAST (obj, UNITY_TEST_TYPE_LAUNCHER_SUITE, UnityTestLauncherSuite);
00435 }
00436 
00437 
00438 GType unity_test_launcher_suite_get_type (void) {
00439        static volatile gsize unity_test_launcher_suite_type_id__volatile = 0;
00440        if (g_once_init_enter (&unity_test_launcher_suite_type_id__volatile)) {
00441               static const GTypeValueTable g_define_type_value_table = { unity_test_value_launcher_suite_init, unity_test_value_launcher_suite_free_value, unity_test_value_launcher_suite_copy_value, unity_test_value_launcher_suite_peek_pointer, "p", unity_test_value_launcher_suite_collect_value, "p", unity_test_value_launcher_suite_lcopy_value };
00442               static const GTypeInfo g_define_type_info = { sizeof (UnityTestLauncherSuiteClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) unity_test_launcher_suite_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (UnityTestLauncherSuite), 0, (GInstanceInitFunc) unity_test_launcher_suite_instance_init, &g_define_type_value_table };
00443               static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
00444               GType unity_test_launcher_suite_type_id;
00445               unity_test_launcher_suite_type_id = g_type_register_fundamental (g_type_fundamental_next (), "UnityTestLauncherSuite", &g_define_type_info, &g_define_type_fundamental_info, 0);
00446               g_once_init_leave (&unity_test_launcher_suite_type_id__volatile, unity_test_launcher_suite_type_id);
00447        }
00448        return unity_test_launcher_suite_type_id__volatile;
00449 }
00450 
00451 
00452 gpointer unity_test_launcher_suite_ref (gpointer instance) {
00453        UnityTestLauncherSuite* self;
00454        self = instance;
00455        g_atomic_int_inc (&self->ref_count);
00456        return instance;
00457 }
00458 
00459 
00460 void unity_test_launcher_suite_unref (gpointer instance) {
00461        UnityTestLauncherSuite* self;
00462        self = instance;
00463        if (g_atomic_int_dec_and_test (&self->ref_count)) {
00464               UNITY_TEST_LAUNCHER_SUITE_GET_CLASS (self)->finalize (self);
00465               g_type_free_instance ((GTypeInstance *) self);
00466        }
00467 }
00468 
00469 
00470