Back to index

libunity  5.92.0
Classes | Defines | Typedefs | Functions | Variables
test-appinfo-manager.c File Reference
#include <glib.h>
#include <glib-object.h>
#include <unity-internal.h>
#include <stdlib.h>
#include <string.h>
#include <gio/gio.h>
#include <config.h>
#include <gobject/gvaluecollector.h>

Go to the source code of this file.

Classes

struct  _UnityTestAppInfoManagerSuite
struct  _UnityTestAppInfoManagerSuiteClass
struct  _UnityTestAppInfoManagerSuiteDoTestAsyncLookupMissingData
struct  _UnityTestAppInfoManagerSuiteDoTestAsyncLookupOkData
struct  _UnityTestParamSpecAppInfoManagerSuite

Defines

#define UNITY_TEST_TYPE_APP_INFO_MANAGER_SUITE   (unity_test_app_info_manager_suite_get_type ())
#define UNITY_TEST_APP_INFO_MANAGER_SUITE(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_TEST_TYPE_APP_INFO_MANAGER_SUITE, UnityTestAppInfoManagerSuite))
#define UNITY_TEST_APP_INFO_MANAGER_SUITE_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_TEST_TYPE_APP_INFO_MANAGER_SUITE, UnityTestAppInfoManagerSuiteClass))
#define UNITY_TEST_IS_APP_INFO_MANAGER_SUITE(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_TEST_TYPE_APP_INFO_MANAGER_SUITE))
#define UNITY_TEST_IS_APP_INFO_MANAGER_SUITE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_TEST_TYPE_APP_INFO_MANAGER_SUITE))
#define UNITY_TEST_APP_INFO_MANAGER_SUITE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_TEST_TYPE_APP_INFO_MANAGER_SUITE, UnityTestAppInfoManagerSuiteClass))
#define _g_object_unref0(var)   ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var)   (var = (g_free (var), NULL))
#define _g_main_loop_unref0(var)   ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))
#define _g_error_free0(var)   ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _vala_assert(expr, msg)   if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);

Typedefs

typedef struct _UnityTestAppInfoManagerSuite
typedef struct _UnityTestAppInfoManagerSuiteClass
typedef struct _UnityTestAppInfoManagerSuitePrivate
typedef struct _UnityTestAppInfoManagerSuiteDoTestAsyncLookupMissingData
typedef struct _UnityTestAppInfoManagerSuiteDoTestAsyncLookupOkData
typedef struct _UnityTestParamSpecAppInfoManagerSuite

Functions

gpointer unity_test_app_info_manager_suite_ref (gpointer instance)
void unity_test_app_info_manager_suite_unref (gpointer instance)
GParamSpec * unity_test_param_spec_app_info_manager_suite (const gchar *name, const gchar *nick, const gchar *blurb, GType object_type, GParamFlags flags)
void unity_test_value_set_app_info_manager_suite (GValue *value, gpointer v_object)
void unity_test_value_take_app_info_manager_suite (GValue *value, gpointer v_object)
gpointer unity_test_value_get_app_info_manager_suite (const GValue *value)
GType unity_test_app_info_manager_suite_get_type (void)
UnityTestAppInfoManagerSuite * unity_test_app_info_manager_suite_new (void)
UnityTestAppInfoManagerSuite * unity_test_app_info_manager_suite_construct (GType object_type)
void unity_test_app_info_manager_suite_test_allocation (void)
static void _unity_test_app_info_manager_suite_test_allocation_gtest_data_func (gpointer self)
void unity_test_app_info_manager_suite_test_clear_empty (void)
static void _unity_test_app_info_manager_suite_test_clear_empty_gtest_data_func (gpointer self)
void unity_test_app_info_manager_suite_test_sync_lookup_missing (void)
static void _unity_test_app_info_manager_suite_test_sync_lookup_missing_gtest_data_func (gpointer self)
void unity_test_app_info_manager_suite_test_async_lookup_missing (void)
static void _unity_test_app_info_manager_suite_test_async_lookup_missing_gtest_data_func (gpointer self)
void unity_test_app_info_manager_suite_test_sync_lookup_ok (void)
static void _unity_test_app_info_manager_suite_test_sync_lookup_ok_gtest_data_func (gpointer self)
void unity_test_app_info_manager_suite_test_async_lookup_ok (void)
static void _unity_test_app_info_manager_suite_test_async_lookup_ok_gtest_data_func (gpointer self)
void unity_test_app_info_manager_suite_do_test_async_lookup_missing (GMainLoop *mainloop, GAsyncReadyCallback _callback_, gpointer _user_data_)
void unity_test_app_info_manager_suite_do_test_async_lookup_missing_finish (GAsyncResult *_res_)
static void unity_test_app_info_manager_suite_do_test_async_lookup_missing_data_free (gpointer _data)
static gboolean unity_test_app_info_manager_suite_do_test_async_lookup_missing_co (UnityTestAppInfoManagerSuiteDoTestAsyncLookupMissingData *_data_)
static void unity_test_app_info_manager_suite_do_test_async_lookup_missing_ready (GObject *source_object, GAsyncResult *_res_, gpointer _user_data_)
static gchar ** _vala_array_dup1 (gchar **self, int length)
static gchar ** _vala_array_dup2 (gchar **self, int length)
void unity_test_app_info_manager_suite_do_test_async_lookup_ok (GMainLoop *mainloop, GAsyncReadyCallback _callback_, gpointer _user_data_)
void unity_test_app_info_manager_suite_do_test_async_lookup_ok_finish (GAsyncResult *_res_)
static void unity_test_app_info_manager_suite_do_test_async_lookup_ok_data_free (gpointer _data)
static gboolean unity_test_app_info_manager_suite_do_test_async_lookup_ok_co (UnityTestAppInfoManagerSuiteDoTestAsyncLookupOkData *_data_)
static void unity_test_app_info_manager_suite_do_test_async_lookup_ok_ready (GObject *source_object, GAsyncResult *_res_, gpointer _user_data_)
static gchar ** _vala_array_dup3 (gchar **self, int length)
static gchar ** _vala_array_dup4 (gchar **self, int length)
static void unity_test_app_info_manager_suite_finalize (UnityTestAppInfoManagerSuite *obj)
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func)
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func)
static gpointer _g_main_loop_ref0 (gpointer self)
static void unity_test_value_app_info_manager_suite_init (GValue *value)
static void unity_test_value_app_info_manager_suite_free_value (GValue *value)
static void unity_test_value_app_info_manager_suite_copy_value (const GValue *src_value, GValue *dest_value)
static gpointer unity_test_value_app_info_manager_suite_peek_pointer (const GValue *value)
static gchar * unity_test_value_app_info_manager_suite_collect_value (GValue *value, guint n_collect_values, GTypeCValue *collect_values, guint collect_flags)
static gchar * unity_test_value_app_info_manager_suite_lcopy_value (const GValue *value, guint n_collect_values, GTypeCValue *collect_values, guint collect_flags)
static void unity_test_app_info_manager_suite_class_init (UnityTestAppInfoManagerSuiteClass *klass)
static void unity_test_app_info_manager_suite_instance_init (UnityTestAppInfoManagerSuite *self)

Variables

static gpointer unity_test_app_info_manager_suite_parent_class = NULL

Class Documentation

struct _UnityTestAppInfoManagerSuite

Definition at line 53 of file test-appinfo-manager.c.

Class Members
GTypeInstance parent_instance
UnityTestAppInfoManagerSuitePrivate * priv
volatile int ref_count
struct _UnityTestAppInfoManagerSuiteDoTestAsyncLookupMissingData

Definition at line 64 of file test-appinfo-manager.c.

Collaboration diagram for _UnityTestAppInfoManagerSuiteDoTestAsyncLookupMissingData:
Class Members
GSimpleAsyncResult * _async_result
GError * _inner_error_
GAsyncResult * _res_
GObject * _source_object_
int _state_
UnityAppInfoManager * _tmp0_
GAppInfo * _tmp1_
gint _tmp2_
gchar ** _tmp3_
gint _tmp4_
gchar ** _tmp5_
gchar * _tmp6_
gchar * _tmp7_
const gchar * _tmp8_
GMainLoop * _tmp9_
GAppInfo * appinfo
GError * e
GMainLoop * mainloop
UnityAppInfoManager * manager
struct _UnityTestAppInfoManagerSuiteDoTestAsyncLookupOkData

Definition at line 86 of file test-appinfo-manager.c.

Collaboration diagram for _UnityTestAppInfoManagerSuiteDoTestAsyncLookupOkData:
Class Members
GSimpleAsyncResult * _async_result
gint _categories_size_
GError * _inner_error_
gint _keywords_size_
GAsyncResult * _res_
GObject * _source_object_
int _state_
UnityAppInfoManager * _tmp0_
gint _tmp10_
gchar ** _tmp11_
gchar ** _tmp12_
gint _tmp12__length1
const gchar * _tmp13_
const gchar * _tmp14_
const gchar * _tmp15_
const gchar * _tmp16_
const gchar * _tmp17_
const gchar * _tmp18_
gchar * _tmp19_
GAppInfo * _tmp1_
GFile * _tmp20_
GFile * _tmp21_
GFile * _tmp22_
GFile * _tmp23_
gchar * _tmp24_
gchar * _tmp25_
GMainLoop * _tmp26_
const gchar * _tmp2_
const gchar * _tmp3_
gint _tmp4_
gchar ** _tmp5_
gchar ** _tmp6_
gint _tmp6__length1
const gchar * _tmp7_
const gchar * _tmp8_
const gchar * _tmp9_
gchar * abs_path
gchar ** categories
gint categories_length1
GError * e
GAppInfo * info
gchar ** keywords
gint keywords_length1
GMainLoop * mainloop
UnityAppInfoManager * manager
gchar * path
struct _UnityTestParamSpecAppInfoManagerSuite

Definition at line 135 of file test-appinfo-manager.c.

Class Members
GParamSpec parent_instance

Define Documentation

#define _g_error_free0 (   var)    ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

Definition at line 47 of file test-appinfo-manager.c.

#define _g_free0 (   var)    (var = (g_free (var), NULL))

Definition at line 45 of file test-appinfo-manager.c.

#define _g_main_loop_unref0 (   var)    ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))

Definition at line 46 of file test-appinfo-manager.c.

#define _g_object_unref0 (   var)    ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

Definition at line 44 of file test-appinfo-manager.c.

#define _vala_assert (   expr,
  msg 
)    if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);

Definition at line 51 of file test-appinfo-manager.c.

#define UNITY_TEST_APP_INFO_MANAGER_SUITE (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_TEST_TYPE_APP_INFO_MANAGER_SUITE, UnityTestAppInfoManagerSuite))

Definition at line 35 of file test-appinfo-manager.c.

#define UNITY_TEST_APP_INFO_MANAGER_SUITE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_TEST_TYPE_APP_INFO_MANAGER_SUITE, UnityTestAppInfoManagerSuiteClass))

Definition at line 36 of file test-appinfo-manager.c.

#define UNITY_TEST_APP_INFO_MANAGER_SUITE_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_TEST_TYPE_APP_INFO_MANAGER_SUITE, UnityTestAppInfoManagerSuiteClass))

Definition at line 39 of file test-appinfo-manager.c.

#define UNITY_TEST_IS_APP_INFO_MANAGER_SUITE (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_TEST_TYPE_APP_INFO_MANAGER_SUITE))

Definition at line 37 of file test-appinfo-manager.c.

#define UNITY_TEST_IS_APP_INFO_MANAGER_SUITE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_TEST_TYPE_APP_INFO_MANAGER_SUITE))

Definition at line 38 of file test-appinfo-manager.c.

Definition at line 34 of file test-appinfo-manager.c.


Typedef Documentation

Definition at line 41 of file test-appinfo-manager.c.

Definition at line 42 of file test-appinfo-manager.c.

Definition at line 48 of file test-appinfo-manager.c.

Definition at line 49 of file test-appinfo-manager.c.

Definition at line 43 of file test-appinfo-manager.c.

Definition at line 50 of file test-appinfo-manager.c.


Function Documentation

static gpointer _g_main_loop_ref0 ( gpointer  self) [static]

Definition at line 302 of file test-appinfo-manager.c.

                                                  {
       return self ? g_main_loop_ref (self) : NULL;
}

Here is the caller graph for this function:

Definition at line 185 of file test-appinfo-manager.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 200 of file test-appinfo-manager.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 210 of file test-appinfo-manager.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 190 of file test-appinfo-manager.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 195 of file test-appinfo-manager.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 205 of file test-appinfo-manager.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void _vala_array_destroy ( gpointer  array,
gint  array_length,
GDestroyNotify  destroy_func 
) [static]

Definition at line 882 of file test-appinfo-manager.c.

                                                                                                 {
       if ((array != NULL) && (destroy_func != NULL)) {
              int i;
              for (i = 0; i < array_length; i = i + 1) {
                     if (((gpointer*) array)[i] != NULL) {
                            destroy_func (((gpointer*) array)[i]);
                     }
              }
       }
}

Here is the caller graph for this function:

static gchar ** _vala_array_dup1 ( gchar **  self,
int  length 
) [static]

Definition at line 405 of file test-appinfo-manager.c.

                                                           {
       gchar** result;
       int i;
       result = g_new0 (gchar*, length + 1);
       for (i = 0; i < length; i++) {
              gchar* _tmp0_;
              _tmp0_ = g_strdup (self[i]);
              result[i] = _tmp0_;
       }
       return result;
}

Here is the caller graph for this function:

static gchar ** _vala_array_dup2 ( gchar **  self,
int  length 
) [static]

Definition at line 418 of file test-appinfo-manager.c.

                                                           {
       gchar** result;
       int i;
       result = g_new0 (gchar*, length + 1);
       for (i = 0; i < length; i++) {
              gchar* _tmp0_;
              _tmp0_ = g_strdup (self[i]);
              result[i] = _tmp0_;
       }
       return result;
}

Here is the caller graph for this function:

static gchar ** _vala_array_dup3 ( gchar **  self,
int  length 
) [static]

Definition at line 580 of file test-appinfo-manager.c.

                                                           {
       gchar** result;
       int i;
       result = g_new0 (gchar*, length + 1);
       for (i = 0; i < length; i++) {
              gchar* _tmp0_;
              _tmp0_ = g_strdup (self[i]);
              result[i] = _tmp0_;
       }
       return result;
}

Here is the caller graph for this function:

static gchar ** _vala_array_dup4 ( gchar **  self,
int  length 
) [static]

Definition at line 593 of file test-appinfo-manager.c.

                                                           {
       gchar** result;
       int i;
       result = g_new0 (gchar*, length + 1);
       for (i = 0; i < length; i++) {
              gchar* _tmp0_;
              _tmp0_ = g_strdup (self[i]);
              result[i] = _tmp0_;
       }
       return result;
}

Here is the caller graph for this function:

static void _vala_array_free ( gpointer  array,
gint  array_length,
GDestroyNotify  destroy_func 
) [static]

Definition at line 894 of file test-appinfo-manager.c.

                                                                                              {
       _vala_array_destroy (array, array_length, destroy_func);
       g_free (array);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_test_app_info_manager_suite_class_init ( UnityTestAppInfoManagerSuiteClass *  klass) [static]

Definition at line 833 of file test-appinfo-manager.c.

Here is the call graph for this function:

UnityTestAppInfoManagerSuite * unity_test_app_info_manager_suite_construct ( GType  object_type)

Definition at line 215 of file test-appinfo-manager.c.

                                                                                              {
       UnityTestAppInfoManagerSuite* self = NULL;
       self = (UnityTestAppInfoManagerSuite*) g_type_create_instance (object_type);
       g_test_add_data_func ("/Unit/AppInfoManager/Allocation", NULL, _unity_test_app_info_manager_suite_test_allocation_gtest_data_func);
       g_test_add_data_func ("/Unit/AppInfoManager/ClearEmpty", NULL, _unity_test_app_info_manager_suite_test_clear_empty_gtest_data_func);
       g_test_add_data_func ("/Unit/AppInfoManager/SyncLookupMissing", NULL, _unity_test_app_info_manager_suite_test_sync_lookup_missing_gtest_data_func);
       g_test_add_data_func ("/Unit/AppInfoManager/AsyncLookupMissing", NULL, _unity_test_app_info_manager_suite_test_async_lookup_missing_gtest_data_func);
       g_test_add_data_func ("/Unit/AppInfoManager/SyncLookupOk", NULL, _unity_test_app_info_manager_suite_test_sync_lookup_ok_gtest_data_func);
       g_test_add_data_func ("/Unit/AppInfoManager/AsyncLookupOk", NULL, _unity_test_app_info_manager_suite_test_async_lookup_ok_gtest_data_func);
       return self;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_test_app_info_manager_suite_do_test_async_lookup_missing ( GMainLoop *  mainloop,
GAsyncReadyCallback  _callback_,
gpointer  _user_data_ 
)

Definition at line 307 of file test-appinfo-manager.c.

                                                                                                                                                {
       UnityTestAppInfoManagerSuiteDoTestAsyncLookupMissingData* _data_;
       GMainLoop* _tmp0_;
       GMainLoop* _tmp1_;
       _data_ = g_slice_new0 (UnityTestAppInfoManagerSuiteDoTestAsyncLookupMissingData);
       _data_->_async_result = g_simple_async_result_new (g_object_newv (G_TYPE_OBJECT, 0, NULL), _callback_, _user_data_, unity_test_app_info_manager_suite_do_test_async_lookup_missing);
       g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, unity_test_app_info_manager_suite_do_test_async_lookup_missing_data_free);
       _tmp0_ = mainloop;
       _tmp1_ = _g_main_loop_ref0 (_tmp0_);
       _data_->mainloop = _tmp1_;
       unity_test_app_info_manager_suite_do_test_async_lookup_missing_co (_data_);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static gboolean unity_test_app_info_manager_suite_do_test_async_lookup_missing_co ( UnityTestAppInfoManagerSuiteDoTestAsyncLookupMissingData *  _data_) [static]

Definition at line 336 of file test-appinfo-manager.c.

                                                                                                                                                     {
       switch (_data_->_state_) {
              case 0:
              goto _state_0;
              case 1:
              goto _state_1;
              default:
              g_assert_not_reached ();
       }
       _state_0:
       _data_->_tmp0_ = NULL;
       _data_->_tmp0_ = unity_app_info_manager_get_default ();
       _data_->manager = _data_->_tmp0_;
       {
              _data_->_state_ = 1;
              unity_app_info_manager_lookup_async (_data_->manager, "_foobar.desktop", unity_test_app_info_manager_suite_do_test_async_lookup_missing_ready, _data_);
              return FALSE;
              _state_1:
              _data_->_tmp1_ = NULL;
              _data_->_tmp1_ = unity_app_info_manager_lookup_finish (_data_->manager, _data_->_res_, &_data_->_inner_error_);
              _data_->appinfo = _data_->_tmp1_;
              if (_data_->_inner_error_ != NULL) {
                     goto __catch0_g_error;
              }
              _vala_assert (_data_->appinfo == NULL, "appinfo == null");
              _data_->_tmp2_ = 0;
              _data_->_tmp3_ = NULL;
              _data_->_tmp3_ = unity_app_info_manager_get_categories (_data_->manager, "_foobar.desktop", &_data_->_tmp2_);
              _vala_assert (_data_->_tmp3_ == NULL, "manager.get_categories (\"_foobar.desktop\") == null");
              _data_->_tmp4_ = 0;
              _data_->_tmp5_ = NULL;
              _data_->_tmp5_ = unity_app_info_manager_get_keywords (_data_->manager, "_foobar.desktop", &_data_->_tmp4_);
              _vala_assert (_data_->_tmp5_ == NULL, "manager.get_keywords (\"_foobar.desktop\") == null");
              _data_->_tmp6_ = NULL;
              _data_->_tmp6_ = unity_app_info_manager_get_path (_data_->manager, "_foobar.desktop");
              _data_->_tmp7_ = _data_->_tmp6_;
              _vala_assert (_data_->_tmp7_ == NULL, "manager.get_path (\"_foobar.desktop\") == null");
              _g_free0 (_data_->_tmp7_);
              _g_object_unref0 (_data_->appinfo);
       }
       goto __finally0;
       __catch0_g_error:
       {
              _data_->e = _data_->_inner_error_;
              _data_->_inner_error_ = NULL;
              _data_->_tmp8_ = _data_->e->message;
              g_error ("test-appinfo-manager.vala:86: Error reading desktop file: %s", _data_->_tmp8_);
              _g_error_free0 (_data_->e);
       }
       __finally0:
       if (_data_->_inner_error_ != NULL) {
              _g_object_unref0 (_data_->manager);
              g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
              g_clear_error (&_data_->_inner_error_);
              return FALSE;
       }
       _data_->_tmp9_ = _data_->mainloop;
       g_main_loop_quit (_data_->_tmp9_);
       _g_object_unref0 (_data_->manager);
       if (_data_->_state_ == 0) {
              g_simple_async_result_complete_in_idle (_data_->_async_result);
       } else {
              g_simple_async_result_complete (_data_->_async_result);
       }
       g_object_unref (_data_->_async_result);
       return FALSE;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 294 of file test-appinfo-manager.c.

                                                                                                      {
       UnityTestAppInfoManagerSuiteDoTestAsyncLookupMissingData* _data_;
       _data_ = _data;
       _g_main_loop_unref0 (_data_->mainloop);
       g_slice_free (UnityTestAppInfoManagerSuiteDoTestAsyncLookupMissingData, _data_);
}

Here is the caller graph for this function:

Definition at line 321 of file test-appinfo-manager.c.

                                                                                                 {
       UnityTestAppInfoManagerSuiteDoTestAsyncLookupMissingData* _data_;
       _data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
}
static void unity_test_app_info_manager_suite_do_test_async_lookup_missing_ready ( GObject *  source_object,
GAsyncResult *  _res_,
gpointer  _user_data_ 
) [static]

Definition at line 327 of file test-appinfo-manager.c.

                                                                                                                                                     {
       UnityTestAppInfoManagerSuiteDoTestAsyncLookupMissingData* _data_;
       _data_ = _user_data_;
       _data_->_source_object_ = source_object;
       _data_->_res_ = _res_;
       unity_test_app_info_manager_suite_do_test_async_lookup_missing_co (_data_);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_test_app_info_manager_suite_do_test_async_lookup_ok ( GMainLoop *  mainloop,
GAsyncReadyCallback  _callback_,
gpointer  _user_data_ 
)

Definition at line 551 of file test-appinfo-manager.c.

                                                                                                                                           {
       UnityTestAppInfoManagerSuiteDoTestAsyncLookupOkData* _data_;
       GMainLoop* _tmp0_;
       GMainLoop* _tmp1_;
       _data_ = g_slice_new0 (UnityTestAppInfoManagerSuiteDoTestAsyncLookupOkData);
       _data_->_async_result = g_simple_async_result_new (g_object_newv (G_TYPE_OBJECT, 0, NULL), _callback_, _user_data_, unity_test_app_info_manager_suite_do_test_async_lookup_ok);
       g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, unity_test_app_info_manager_suite_do_test_async_lookup_ok_data_free);
       _tmp0_ = mainloop;
       _tmp1_ = _g_main_loop_ref0 (_tmp0_);
       _data_->mainloop = _tmp1_;
       unity_test_app_info_manager_suite_do_test_async_lookup_ok_co (_data_);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static gboolean unity_test_app_info_manager_suite_do_test_async_lookup_ok_co ( UnityTestAppInfoManagerSuiteDoTestAsyncLookupOkData *  _data_) [static]

Definition at line 606 of file test-appinfo-manager.c.

                                                                                                                                           {
       switch (_data_->_state_) {
              case 0:
              goto _state_0;
              case 1:
              goto _state_1;
              default:
              g_assert_not_reached ();
       }
       _state_0:
       _data_->_tmp0_ = NULL;
       _data_->_tmp0_ = unity_app_info_manager_get_default ();
       _data_->manager = _data_->_tmp0_;
       {
              _data_->_state_ = 1;
              unity_app_info_manager_lookup_async (_data_->manager, "ubuntu-about.desktop", unity_test_app_info_manager_suite_do_test_async_lookup_ok_ready, _data_);
              return FALSE;
              _state_1:
              _data_->_tmp1_ = NULL;
              _data_->_tmp1_ = unity_app_info_manager_lookup_finish (_data_->manager, _data_->_res_, &_data_->_inner_error_);
              _data_->info = _data_->_tmp1_;
              if (_data_->_inner_error_ != NULL) {
                     goto __catch1_g_error;
              }
              _vala_assert (G_TYPE_CHECK_INSTANCE_TYPE (_data_->info, g_app_info_get_type ()), "info is AppInfo");
              _data_->_tmp2_ = NULL;
              _data_->_tmp2_ = g_app_info_get_name (_data_->info);
              _vala_assert (g_strcmp0 ("About Ubuntu", _data_->_tmp2_) == 0, "\"About Ubuntu\" == info.get_name ()");
              _g_object_unref0 (_data_->info);
       }
       goto __finally1;
       __catch1_g_error:
       {
              _data_->e = _data_->_inner_error_;
              _data_->_inner_error_ = NULL;
              _data_->_tmp3_ = _data_->e->message;
              g_error ("test-appinfo-manager.vala:140: Error reading desktop file: %s", _data_->_tmp3_);
              _g_error_free0 (_data_->e);
       }
       __finally1:
       if (_data_->_inner_error_ != NULL) {
              _g_object_unref0 (_data_->manager);
              g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
              g_clear_error (&_data_->_inner_error_);
              return FALSE;
       }
       _data_->_tmp4_ = 0;
       _data_->_tmp5_ = NULL;
       _data_->_tmp5_ = unity_app_info_manager_get_categories (_data_->manager, "ubuntu-about.desktop", &_data_->_tmp4_);
       _data_->_tmp6_ = (_data_->_tmp5_ != NULL) ? _vala_array_dup3 (_data_->_tmp5_, _data_->_tmp4_) : ((gpointer) _data_->_tmp5_);
       _data_->_tmp6__length1 = _data_->_tmp4_;
       _data_->categories = _data_->_tmp6_;
       _data_->categories_length1 = _data_->_tmp6__length1;
       _data_->_categories_size_ = _data_->categories_length1;
       _vala_assert (_data_->categories != NULL, "categories != null");
       _vala_assert (_data_->categories_length1 == 3, "categories.length == 3");
       _data_->_tmp7_ = _data_->categories[0];
       _vala_assert (g_strcmp0 (_data_->_tmp7_, "GNOME") == 0, "categories[0] == \"GNOME\"");
       _data_->_tmp8_ = _data_->categories[1];
       _vala_assert (g_strcmp0 (_data_->_tmp8_, "Application") == 0, "categories[1] == \"Application\"");
       _data_->_tmp9_ = _data_->categories[2];
       _vala_assert (g_strcmp0 (_data_->_tmp9_, "Core") == 0, "categories[2] == \"Core\"");
       _data_->_tmp10_ = 0;
       _data_->_tmp11_ = NULL;
       _data_->_tmp11_ = unity_app_info_manager_get_keywords (_data_->manager, "ubuntu-about.desktop", &_data_->_tmp10_);
       _data_->_tmp12_ = (_data_->_tmp11_ != NULL) ? _vala_array_dup4 (_data_->_tmp11_, _data_->_tmp10_) : ((gpointer) _data_->_tmp11_);
       _data_->_tmp12__length1 = _data_->_tmp10_;
       _data_->keywords = _data_->_tmp12_;
       _data_->keywords_length1 = _data_->_tmp12__length1;
       _data_->_keywords_size_ = _data_->keywords_length1;
       _vala_assert (_data_->keywords != NULL, "keywords != null");
       _vala_assert (_data_->keywords_length1 == 6, "keywords.length == 6");
       _data_->_tmp13_ = _data_->keywords[0];
       _vala_assert (g_strcmp0 (_data_->_tmp13_, "about") == 0, "keywords[0] == \"about\"");
       _data_->_tmp14_ = _data_->keywords[1];
       _vala_assert (g_strcmp0 (_data_->_tmp14_, "ubuntu") == 0, "keywords[1] == \"ubuntu\"");
       _data_->_tmp15_ = _data_->keywords[2];
       _vala_assert (g_strcmp0 (_data_->_tmp15_, "help") == 0, "keywords[2] == \"help\"");
       _data_->_tmp16_ = _data_->keywords[3];
       _vala_assert (g_strcmp0 (_data_->_tmp16_, "testkeyword") == 0, "keywords[3] == \"testkeyword\"");
       _data_->_tmp17_ = _data_->keywords[4];
       _vala_assert (g_strcmp0 (_data_->_tmp17_, "thisisnotthekeywordsyourelookingfor") == 0, "keywords[4] == \"thisisnotthekeywordsyourelookingfor\"");
       _data_->_tmp18_ = _data_->keywords[5];
       _vala_assert (g_strcmp0 (_data_->_tmp18_, "neitheristhis") == 0, "keywords[5] == \"neitheristhis\"");
       _data_->_tmp19_ = NULL;
       _data_->_tmp19_ = unity_app_info_manager_get_path (_data_->manager, "ubuntu-about.desktop");
       _data_->path = _data_->_tmp19_;
       _data_->_tmp20_ = NULL;
       _data_->_tmp20_ = g_file_new_for_path (TESTDIR);
       _data_->_tmp21_ = _data_->_tmp20_;
       _data_->_tmp22_ = NULL;
       _data_->_tmp22_ = g_file_resolve_relative_path (_data_->_tmp21_, "data/applications/ubuntu-about.desktop");
       _data_->_tmp23_ = _data_->_tmp22_;
       _data_->_tmp24_ = NULL;
       _data_->_tmp24_ = g_file_get_path (_data_->_tmp23_);
       _data_->_tmp25_ = _data_->_tmp24_;
       _g_object_unref0 (_data_->_tmp23_);
       _g_object_unref0 (_data_->_tmp21_);
       _data_->abs_path = _data_->_tmp25_;
       _vala_assert (g_strcmp0 (_data_->path, _data_->abs_path) == 0, "path == abs_path");
       _data_->_tmp26_ = _data_->mainloop;
       g_main_loop_quit (_data_->_tmp26_);
       _g_free0 (_data_->abs_path);
       _g_free0 (_data_->path);
       _data_->keywords = (_vala_array_free (_data_->keywords, _data_->keywords_length1, (GDestroyNotify) g_free), NULL);
       _data_->categories = (_vala_array_free (_data_->categories, _data_->categories_length1, (GDestroyNotify) g_free), NULL);
       _g_object_unref0 (_data_->manager);
       if (_data_->_state_ == 0) {
              g_simple_async_result_complete_in_idle (_data_->_async_result);
       } else {
              g_simple_async_result_complete (_data_->_async_result);
       }
       g_object_unref (_data_->_async_result);
       return FALSE;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 543 of file test-appinfo-manager.c.

                                                                                                 {
       UnityTestAppInfoManagerSuiteDoTestAsyncLookupOkData* _data_;
       _data_ = _data;
       _g_main_loop_unref0 (_data_->mainloop);
       g_slice_free (UnityTestAppInfoManagerSuiteDoTestAsyncLookupOkData, _data_);
}

Here is the caller graph for this function:

Definition at line 565 of file test-appinfo-manager.c.

                                                                                            {
       UnityTestAppInfoManagerSuiteDoTestAsyncLookupOkData* _data_;
       _data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
}
static void unity_test_app_info_manager_suite_do_test_async_lookup_ok_ready ( GObject *  source_object,
GAsyncResult *  _res_,
gpointer  _user_data_ 
) [static]

Definition at line 571 of file test-appinfo-manager.c.

                                                                                                                                                {
       UnityTestAppInfoManagerSuiteDoTestAsyncLookupOkData* _data_;
       _data_ = _user_data_;
       _data_->_source_object_ = source_object;
       _data_->_res_ = _res_;
       unity_test_app_info_manager_suite_do_test_async_lookup_ok_co (_data_);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_test_app_info_manager_suite_finalize ( UnityTestAppInfoManagerSuite *  obj) [static]

Definition at line 844 of file test-appinfo-manager.c.

                                                                                           {
       UnityTestAppInfoManagerSuite * self;
       self = G_TYPE_CHECK_INSTANCE_CAST (obj, UNITY_TEST_TYPE_APP_INFO_MANAGER_SUITE, UnityTestAppInfoManagerSuite);
}

Here is the caller graph for this function:

Definition at line 148 of file test-appinfo-manager.c.

      {
       UNITY_TEST_APP_INFO_MANAGER_SUITE_DUMMY_PROPERTY
};
static void unity_test_app_info_manager_suite_instance_init ( UnityTestAppInfoManagerSuite *  self) [static]

Definition at line 839 of file test-appinfo-manager.c.

                                                                                                  {
       self->ref_count = 1;
}
UnityTestAppInfoManagerSuite * unity_test_app_info_manager_suite_new ( void  )

Definition at line 228 of file test-appinfo-manager.c.

Here is the call graph for this function:

Here is the caller graph for this function:

gpointer unity_test_app_info_manager_suite_ref ( gpointer  instance)

Definition at line 864 of file test-appinfo-manager.c.

                                                                   {
       UnityTestAppInfoManagerSuite* self;
       self = instance;
       g_atomic_int_inc (&self->ref_count);
       return instance;
}

Here is the caller graph for this function:

Definition at line 233 of file test-appinfo-manager.c.

                                                              {
       UnityAppInfoManager* _tmp0_ = NULL;
       UnityAppInfoManager* manager;
       _tmp0_ = unity_app_info_manager_get_default ();
       manager = _tmp0_;
       _vala_assert (G_TYPE_CHECK_INSTANCE_TYPE (manager, UNITY_TYPE_APP_INFO_MANAGER), "manager is AppInfoManager");
       _g_object_unref0 (manager);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 283 of file test-appinfo-manager.c.

                                                                        {
       GMainLoop* _tmp0_;
       GMainLoop* mainloop;
       _tmp0_ = g_main_loop_new (NULL, FALSE);
       mainloop = _tmp0_;
       unity_test_app_info_manager_suite_do_test_async_lookup_missing (mainloop, NULL, NULL);
       g_main_loop_run (mainloop);
       _g_main_loop_unref0 (mainloop);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 532 of file test-appinfo-manager.c.

                                                                   {
       GMainLoop* _tmp0_;
       GMainLoop* mainloop;
       _tmp0_ = g_main_loop_new (NULL, FALSE);
       mainloop = _tmp0_;
       unity_test_app_info_manager_suite_do_test_async_lookup_ok (mainloop, NULL, NULL);
       g_main_loop_run (mainloop);
       _g_main_loop_unref0 (mainloop);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 243 of file test-appinfo-manager.c.

                                                               {
       UnityAppInfoManager* _tmp0_ = NULL;
       UnityAppInfoManager* manager;
       _tmp0_ = unity_app_info_manager_get_default ();
       manager = _tmp0_;
       unity_app_info_manager_clear (manager);
       unity_app_info_manager_clear (manager);
       _g_object_unref0 (manager);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 254 of file test-appinfo-manager.c.

                                                                       {
       UnityAppInfoManager* _tmp0_ = NULL;
       UnityAppInfoManager* manager;
       GAppInfo* _tmp1_ = NULL;
       GAppInfo* _tmp2_;
       gint _tmp3_ = 0;
       gchar** _tmp4_ = NULL;
       gint _tmp5_ = 0;
       gchar** _tmp6_ = NULL;
       gchar* _tmp7_ = NULL;
       gchar* _tmp8_;
       _tmp0_ = unity_app_info_manager_get_default ();
       manager = _tmp0_;
       _tmp1_ = unity_app_info_manager_lookup (manager, "_foobar.desktop");
       _tmp2_ = _tmp1_;
       _vala_assert (_tmp2_ == NULL, "manager.lookup (\"_foobar.desktop\") == null");
       _g_object_unref0 (_tmp2_);
       _tmp4_ = unity_app_info_manager_get_categories (manager, "_foobar.desktop", &_tmp3_);
       _vala_assert (_tmp4_ == NULL, "manager.get_categories (\"_foobar.desktop\") == null");
       _tmp6_ = unity_app_info_manager_get_keywords (manager, "_foobar.desktop", &_tmp5_);
       _vala_assert (_tmp6_ == NULL, "manager.get_keywords (\"_foobar.desktop\") == null");
       _tmp7_ = unity_app_info_manager_get_path (manager, "_foobar.desktop");
       _tmp8_ = _tmp7_;
       _vala_assert (_tmp8_ == NULL, "manager.get_path (\"_foobar.desktop\") == null");
       _g_free0 (_tmp8_);
       _g_object_unref0 (manager);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 431 of file test-appinfo-manager.c.

                                                                  {
       UnityAppInfoManager* _tmp0_ = NULL;
       UnityAppInfoManager* manager;
       GAppInfo* _tmp1_ = NULL;
       GAppInfo* info;
       const gchar* _tmp2_ = NULL;
       gint _tmp3_ = 0;
       gchar** _tmp4_ = NULL;
       gchar** _tmp5_;
       gint _tmp5__length1;
       gchar** categories;
       gint categories_length1;
       gint _categories_size_;
       const gchar* _tmp6_;
       const gchar* _tmp7_;
       const gchar* _tmp8_;
       gint _tmp9_ = 0;
       gchar** _tmp10_ = NULL;
       gchar** _tmp11_;
       gint _tmp11__length1;
       gchar** keywords;
       gint keywords_length1;
       gint _keywords_size_;
       const gchar* _tmp12_;
       const gchar* _tmp13_;
       const gchar* _tmp14_;
       const gchar* _tmp15_;
       const gchar* _tmp16_;
       const gchar* _tmp17_;
       gchar* _tmp18_ = NULL;
       gchar* path;
       GFile* _tmp19_ = NULL;
       GFile* _tmp20_;
       GFile* _tmp21_ = NULL;
       GFile* _tmp22_;
       gchar* _tmp23_ = NULL;
       gchar* _tmp24_;
       gchar* abs_path;
       _tmp0_ = unity_app_info_manager_get_default ();
       manager = _tmp0_;
       _tmp1_ = unity_app_info_manager_lookup (manager, "ubuntu-about.desktop");
       info = _tmp1_;
       _vala_assert (info != NULL, "info != null");
       _vala_assert (G_TYPE_CHECK_INSTANCE_TYPE (info, g_app_info_get_type ()), "info is AppInfo");
       _tmp2_ = g_app_info_get_name (info);
       _vala_assert (g_strcmp0 ("About Ubuntu", _tmp2_) == 0, "\"About Ubuntu\" == info.get_name ()");
       _tmp4_ = unity_app_info_manager_get_categories (manager, "ubuntu-about.desktop", &_tmp3_);
       _tmp5_ = (_tmp4_ != NULL) ? _vala_array_dup1 (_tmp4_, _tmp3_) : ((gpointer) _tmp4_);
       _tmp5__length1 = _tmp3_;
       categories = _tmp5_;
       categories_length1 = _tmp5__length1;
       _categories_size_ = categories_length1;
       _vala_assert (categories != NULL, "categories != null");
       _vala_assert (categories_length1 == 3, "categories.length == 3");
       _tmp6_ = categories[0];
       _vala_assert (g_strcmp0 (_tmp6_, "GNOME") == 0, "categories[0] == \"GNOME\"");
       _tmp7_ = categories[1];
       _vala_assert (g_strcmp0 (_tmp7_, "Application") == 0, "categories[1] == \"Application\"");
       _tmp8_ = categories[2];
       _vala_assert (g_strcmp0 (_tmp8_, "Core") == 0, "categories[2] == \"Core\"");
       _tmp10_ = unity_app_info_manager_get_keywords (manager, "ubuntu-about.desktop", &_tmp9_);
       _tmp11_ = (_tmp10_ != NULL) ? _vala_array_dup2 (_tmp10_, _tmp9_) : ((gpointer) _tmp10_);
       _tmp11__length1 = _tmp9_;
       keywords = _tmp11_;
       keywords_length1 = _tmp11__length1;
       _keywords_size_ = keywords_length1;
       _vala_assert (keywords != NULL, "keywords != null");
       _vala_assert (keywords_length1 == 6, "keywords.length == 6");
       _tmp12_ = keywords[0];
       _vala_assert (g_strcmp0 (_tmp12_, "about") == 0, "keywords[0] == \"about\"");
       _tmp13_ = keywords[1];
       _vala_assert (g_strcmp0 (_tmp13_, "ubuntu") == 0, "keywords[1] == \"ubuntu\"");
       _tmp14_ = keywords[2];
       _vala_assert (g_strcmp0 (_tmp14_, "help") == 0, "keywords[2] == \"help\"");
       _tmp15_ = keywords[3];
       _vala_assert (g_strcmp0 (_tmp15_, "testkeyword") == 0, "keywords[3] == \"testkeyword\"");
       _tmp16_ = keywords[4];
       _vala_assert (g_strcmp0 (_tmp16_, "thisisnotthekeywordsyourelookingfor") == 0, "keywords[4] == \"thisisnotthekeywordsyourelookingfor\"");
       _tmp17_ = keywords[5];
       _vala_assert (g_strcmp0 (_tmp17_, "neitheristhis") == 0, "keywords[5] == \"neitheristhis\"");
       _tmp18_ = unity_app_info_manager_get_path (manager, "ubuntu-about.desktop");
       path = _tmp18_;
       _tmp19_ = g_file_new_for_path (TESTDIR);
       _tmp20_ = _tmp19_;
       _tmp21_ = g_file_resolve_relative_path (_tmp20_, "data/applications/ubuntu-about.desktop");
       _tmp22_ = _tmp21_;
       _tmp23_ = g_file_get_path (_tmp22_);
       _tmp24_ = _tmp23_;
       _g_object_unref0 (_tmp22_);
       _g_object_unref0 (_tmp20_);
       abs_path = _tmp24_;
       _vala_assert (g_strcmp0 (path, abs_path) == 0, "path == abs_path");
       _g_free0 (abs_path);
       _g_free0 (path);
       keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL);
       categories = (_vala_array_free (categories, categories_length1, (GDestroyNotify) g_free), NULL);
       _g_object_unref0 (info);
       _g_object_unref0 (manager);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_test_app_info_manager_suite_unref ( gpointer  instance)

Definition at line 872 of file test-appinfo-manager.c.

                                                                 {
       UnityTestAppInfoManagerSuite* self;
       self = instance;
       if (g_atomic_int_dec_and_test (&self->ref_count)) {
              UNITY_TEST_APP_INFO_MANAGER_SUITE_GET_CLASS (self)->finalize (self);
              g_type_free_instance ((GTypeInstance *) self);
       }
}

Here is the caller graph for this function:

GParamSpec * unity_test_param_spec_app_info_manager_suite ( const gchar *  name,
const gchar *  nick,
const gchar *  blurb,
GType  object_type,
GParamFlags  flags 
)

Definition at line 783 of file test-appinfo-manager.c.

                                                                                                                                                          {
       UnityTestParamSpecAppInfoManagerSuite* spec;
       g_return_val_if_fail (g_type_is_a (object_type, UNITY_TEST_TYPE_APP_INFO_MANAGER_SUITE), NULL);
       spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
       G_PARAM_SPEC (spec)->value_type = object_type;
       return G_PARAM_SPEC (spec);
}
static gchar* unity_test_value_app_info_manager_suite_collect_value ( GValue *  value,
guint  n_collect_values,
GTypeCValue *  collect_values,
guint  collect_flags 
) [static]

Definition at line 749 of file test-appinfo-manager.c.

                                                                                                                                                              {
       if (collect_values[0].v_pointer) {
              UnityTestAppInfoManagerSuite* object;
              object = collect_values[0].v_pointer;
              if (object->parent_instance.g_class == NULL) {
                     return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
              } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
                     return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
              }
              value->data[0].v_pointer = unity_test_app_info_manager_suite_ref (object);
       } else {
              value->data[0].v_pointer = NULL;
       }
       return NULL;
}

Here is the call graph for this function:

static void unity_test_value_app_info_manager_suite_copy_value ( const GValue *  src_value,
GValue *  dest_value 
) [static]

Definition at line 735 of file test-appinfo-manager.c.

                                                                                                             {
       if (src_value->data[0].v_pointer) {
              dest_value->data[0].v_pointer = unity_test_app_info_manager_suite_ref (src_value->data[0].v_pointer);
       } else {
              dest_value->data[0].v_pointer = NULL;
       }
}

Here is the call graph for this function:

static void unity_test_value_app_info_manager_suite_free_value ( GValue *  value) [static]

Definition at line 728 of file test-appinfo-manager.c.

                                                                               {
       if (value->data[0].v_pointer) {
              unity_test_app_info_manager_suite_unref (value->data[0].v_pointer);
       }
}

Here is the call graph for this function:

static void unity_test_value_app_info_manager_suite_init ( GValue *  value) [static]

Definition at line 723 of file test-appinfo-manager.c.

                                                                         {
       value->data[0].v_pointer = NULL;
}
static gchar* unity_test_value_app_info_manager_suite_lcopy_value ( const GValue *  value,
guint  n_collect_values,
GTypeCValue *  collect_values,
guint  collect_flags 
) [static]

Definition at line 766 of file test-appinfo-manager.c.

                                                                                                                                                                  {
       UnityTestAppInfoManagerSuite** object_p;
       object_p = collect_values[0].v_pointer;
       if (!object_p) {
              return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
       }
       if (!value->data[0].v_pointer) {
              *object_p = NULL;
       } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
              *object_p = value->data[0].v_pointer;
       } else {
              *object_p = unity_test_app_info_manager_suite_ref (value->data[0].v_pointer);
       }
       return NULL;
}

Here is the call graph for this function:

static gpointer unity_test_value_app_info_manager_suite_peek_pointer ( const GValue *  value) [static]

Definition at line 744 of file test-appinfo-manager.c.

                                                                                           {
       return value->data[0].v_pointer;
}
gpointer unity_test_value_get_app_info_manager_suite ( const GValue *  value)

Definition at line 792 of file test-appinfo-manager.c.

                                                                           {
       g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, UNITY_TEST_TYPE_APP_INFO_MANAGER_SUITE), NULL);
       return value->data[0].v_pointer;
}
void unity_test_value_set_app_info_manager_suite ( GValue *  value,
gpointer  v_object 
)

Definition at line 798 of file test-appinfo-manager.c.

                                                                                    {
       UnityTestAppInfoManagerSuite* old;
       g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, UNITY_TEST_TYPE_APP_INFO_MANAGER_SUITE));
       old = value->data[0].v_pointer;
       if (v_object) {
              g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, UNITY_TEST_TYPE_APP_INFO_MANAGER_SUITE));
              g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
              value->data[0].v_pointer = v_object;
              unity_test_app_info_manager_suite_ref (value->data[0].v_pointer);
       } else {
              value->data[0].v_pointer = NULL;
       }
       if (old) {
              unity_test_app_info_manager_suite_unref (old);
       }
}

Here is the call graph for this function:

void unity_test_value_take_app_info_manager_suite ( GValue *  value,
gpointer  v_object 
)

Definition at line 816 of file test-appinfo-manager.c.

                                                                                     {
       UnityTestAppInfoManagerSuite* old;
       g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, UNITY_TEST_TYPE_APP_INFO_MANAGER_SUITE));
       old = value->data[0].v_pointer;
       if (v_object) {
              g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, UNITY_TEST_TYPE_APP_INFO_MANAGER_SUITE));
              g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
              value->data[0].v_pointer = v_object;
       } else {
              value->data[0].v_pointer = NULL;
       }
       if (old) {
              unity_test_app_info_manager_suite_unref (old);
       }
}

Here is the call graph for this function:


Variable Documentation

Definition at line 140 of file test-appinfo-manager.c.