Back to index

libunity  5.92.0
Classes | Defines | Typedefs | Functions | Variables
test-sound-menu.c File Reference
#include <glib.h>
#include <glib-object.h>
#include <unity-internal.h>
#include <gio/gio.h>
#include <libdbusmenu-glib/client.h>
#include <libdbusmenu-glib/dbusmenu-glib.h>
#include <libdbusmenu-glib/enum-types.h>
#include <libdbusmenu-glib/menuitem-proxy.h>
#include <libdbusmenu-glib/menuitem.h>
#include <libdbusmenu-glib/server.h>
#include <libdbusmenu-glib/types.h>
#include <stdlib.h>
#include <string.h>
#include <config.h>
#include <gobject/gvaluecollector.h>

Go to the source code of this file.

Classes

struct  _UnityTestSoundMenuSuite
struct  _UnityTestSoundMenuSuiteClass
struct  _UnityTestParamSpecSoundMenuSuite

Defines

#define UNITY_TEST_TYPE_SOUND_MENU_SUITE   (unity_test_sound_menu_suite_get_type ())
#define UNITY_TEST_SOUND_MENU_SUITE(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_TEST_TYPE_SOUND_MENU_SUITE, UnityTestSoundMenuSuite))
#define UNITY_TEST_SOUND_MENU_SUITE_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_TEST_TYPE_SOUND_MENU_SUITE, UnityTestSoundMenuSuiteClass))
#define UNITY_TEST_IS_SOUND_MENU_SUITE(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_TEST_TYPE_SOUND_MENU_SUITE))
#define UNITY_TEST_IS_SOUND_MENU_SUITE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_TEST_TYPE_SOUND_MENU_SUITE))
#define UNITY_TEST_SOUND_MENU_SUITE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_TEST_TYPE_SOUND_MENU_SUITE, UnityTestSoundMenuSuiteClass))
#define _g_object_unref0(var)   ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_error_free0(var)   ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _unity_test_sound_menu_suite_unref0(var)   ((var == NULL) ? NULL : (var = (unity_test_sound_menu_suite_unref (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 _UnityTestSoundMenuSuite
typedef struct _UnityTestSoundMenuSuiteClass
typedef struct _UnityTestSoundMenuSuitePrivate
typedef struct _UnityTestParamSpecSoundMenuSuite

Functions

gpointer unity_test_sound_menu_suite_ref (gpointer instance)
void unity_test_sound_menu_suite_unref (gpointer instance)
GParamSpec * unity_test_param_spec_sound_menu_suite (const gchar *name, const gchar *nick, const gchar *blurb, GType object_type, GParamFlags flags)
void unity_test_value_set_sound_menu_suite (GValue *value, gpointer v_object)
void unity_test_value_take_sound_menu_suite (GValue *value, gpointer v_object)
gpointer unity_test_value_get_sound_menu_suite (const GValue *value)
GType unity_test_sound_menu_suite_get_type (void)
UnityTestSoundMenuSuite * unity_test_sound_menu_suite_new (void)
UnityTestSoundMenuSuite * unity_test_sound_menu_suite_construct (GType object_type)
void unity_test_sound_menu_suite_test_stability (void)
static void _unity_test_sound_menu_suite_test_stability_gtest_data_func (gpointer self)
void unity_test_sound_menu_suite_test_metadata_updates (void)
static void _unity_test_sound_menu_suite_test_metadata_updates_gtest_data_func (gpointer self)
void unity_test_sound_menu_suite_test_playback_status_updates (void)
static void _unity_test_sound_menu_suite_test_playback_status_updates_gtest_data_func (gpointer self)
void unity_test_sound_menu_suite_test_current_playlist (void)
static void _unity_test_sound_menu_suite_test_current_playlist_gtest_data_func (gpointer self)
void unity_test_sound_menu_suite_test_track_specific_items (void)
static void _unity_test_sound_menu_suite_test_track_specific_items_gtest_data_func (gpointer self)
void unity_test_sound_menu_suite_test_player_specific_items (void)
static void _unity_test_sound_menu_suite_test_player_specific_items_gtest_data_func (gpointer self)
static void unity_test_sound_menu_suite_finalize (UnityTestSoundMenuSuite *obj)
gint unity_test_main (gchar **args, int args_length1)
static void unity_test_value_sound_menu_suite_init (GValue *value)
static void unity_test_value_sound_menu_suite_free_value (GValue *value)
static void unity_test_value_sound_menu_suite_copy_value (const GValue *src_value, GValue *dest_value)
static gpointer unity_test_value_sound_menu_suite_peek_pointer (const GValue *value)
static gchar * unity_test_value_sound_menu_suite_collect_value (GValue *value, guint n_collect_values, GTypeCValue *collect_values, guint collect_flags)
static gchar * unity_test_value_sound_menu_suite_lcopy_value (const GValue *value, guint n_collect_values, GTypeCValue *collect_values, guint collect_flags)
static void unity_test_sound_menu_suite_class_init (UnityTestSoundMenuSuiteClass *klass)
static void unity_test_sound_menu_suite_instance_init (UnityTestSoundMenuSuite *self)
int main (int argc, char **argv)

Variables

static gpointer unity_test_sound_menu_suite_parent_class = NULL

Class Documentation

struct _UnityTestSoundMenuSuite

Definition at line 57 of file test-sound-menu.c.

Class Members
GTypeInstance parent_instance
UnityTestSoundMenuSuitePrivate * priv
volatile int ref_count
struct _UnityTestParamSpecSoundMenuSuite

Definition at line 68 of file test-sound-menu.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 52 of file test-sound-menu.c.

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

Definition at line 51 of file test-sound-menu.c.

#define _unity_test_sound_menu_suite_unref0 (   var)    ((var == NULL) ? NULL : (var = (unity_test_sound_menu_suite_unref (var), NULL)))

Definition at line 54 of file test-sound-menu.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 55 of file test-sound-menu.c.

#define UNITY_TEST_IS_SOUND_MENU_SUITE (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_TEST_TYPE_SOUND_MENU_SUITE))

Definition at line 44 of file test-sound-menu.c.

#define UNITY_TEST_IS_SOUND_MENU_SUITE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_TEST_TYPE_SOUND_MENU_SUITE))

Definition at line 45 of file test-sound-menu.c.

#define UNITY_TEST_SOUND_MENU_SUITE (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_TEST_TYPE_SOUND_MENU_SUITE, UnityTestSoundMenuSuite))

Definition at line 42 of file test-sound-menu.c.

#define UNITY_TEST_SOUND_MENU_SUITE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_TEST_TYPE_SOUND_MENU_SUITE, UnityTestSoundMenuSuiteClass))

Definition at line 43 of file test-sound-menu.c.

#define UNITY_TEST_SOUND_MENU_SUITE_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_TEST_TYPE_SOUND_MENU_SUITE, UnityTestSoundMenuSuiteClass))

Definition at line 46 of file test-sound-menu.c.

Definition at line 41 of file test-sound-menu.c.


Typedef Documentation

Definition at line 53 of file test-sound-menu.c.

typedef struct _UnityTestSoundMenuSuite

Definition at line 48 of file test-sound-menu.c.

Definition at line 49 of file test-sound-menu.c.

Definition at line 50 of file test-sound-menu.c.


Function Documentation

Definition at line 118 of file test-sound-menu.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 108 of file test-sound-menu.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 113 of file test-sound-menu.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 128 of file test-sound-menu.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void _unity_test_sound_menu_suite_test_stability_gtest_data_func ( gpointer  self) [static]

Definition at line 103 of file test-sound-menu.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 123 of file test-sound-menu.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int main ( int  argc,
char **  argv 
)

Definition at line 568 of file test-sound-menu.c.

                                  {
       g_type_init ();
       return unity_test_main (argv, argc);
}

Here is the call graph for this function:

gint unity_test_main ( gchar **  args,
int  args_length1 
)

Definition at line 552 of file test-sound-menu.c.

                                                      {
       gint result = 0;
       UnityTestSoundMenuSuite* sound_menu_test_suite = NULL;
       UnityTestSoundMenuSuite* _tmp0_;
       g_setenv ("XDG_DATA_HOME", TESTDIR "/data", TRUE);
       g_test_init (&args_length1, &args, NULL);
       _tmp0_ = unity_test_sound_menu_suite_new ();
       _unity_test_sound_menu_suite_unref0 (sound_menu_test_suite);
       sound_menu_test_suite = _tmp0_;
       g_test_run ();
       result = 0;
       _unity_test_sound_menu_suite_unref0 (sound_menu_test_suite);
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 453 of file test-sound-menu.c.

                                                                                                                                                    {
       UnityTestParamSpecSoundMenuSuite* spec;
       g_return_val_if_fail (g_type_is_a (object_type, UNITY_TEST_TYPE_SOUND_MENU_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 void unity_test_sound_menu_suite_class_init ( UnityTestSoundMenuSuiteClass *  klass) [static]

Definition at line 503 of file test-sound-menu.c.

Here is the call graph for this function:

UnityTestSoundMenuSuite * unity_test_sound_menu_suite_construct ( GType  object_type)

Definition at line 133 of file test-sound-menu.c.

                                                                                   {
       UnityTestSoundMenuSuite* self = NULL;
       self = (UnityTestSoundMenuSuite*) g_type_create_instance (object_type);
       g_test_add_data_func ("/Unit/SoundMenu/Player/SanityCheck", NULL, _unity_test_sound_menu_suite_test_stability_gtest_data_func);
       g_test_add_data_func ("/Unit/SoundMenu/Player/MetadataUpdates", NULL, _unity_test_sound_menu_suite_test_metadata_updates_gtest_data_func);
       g_test_add_data_func ("/Unit/SoundMenu/Player/PlaybackStatusUpdates", NULL, _unity_test_sound_menu_suite_test_playback_status_updates_gtest_data_func);
       g_test_add_data_func ("/Unit/SoundMenu/Player/CurrentPlaylist", NULL, _unity_test_sound_menu_suite_test_current_playlist_gtest_data_func);
       g_test_add_data_func ("/Unit/SoundMenu/Player/TrackSpecificItems", NULL, _unity_test_sound_menu_suite_test_track_specific_items_gtest_data_func);
       g_test_add_data_func ("/Unit/SoundMenu/Player/PlayerSpecificItems", NULL, _unity_test_sound_menu_suite_test_player_specific_items_gtest_data_func);
       return self;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_test_sound_menu_suite_finalize ( UnityTestSoundMenuSuite *  obj) [static]

Definition at line 514 of file test-sound-menu.c.

                                                                                {
       UnityTestSoundMenuSuite * self;
       self = G_TYPE_CHECK_INSTANCE_CAST (obj, UNITY_TEST_TYPE_SOUND_MENU_SUITE, UnityTestSoundMenuSuite);
}

Here is the caller graph for this function:

Definition at line 81 of file test-sound-menu.c.

      {
       UNITY_TEST_SOUND_MENU_SUITE_DUMMY_PROPERTY
};
static void unity_test_sound_menu_suite_instance_init ( UnityTestSoundMenuSuite *  self) [static]

Definition at line 509 of file test-sound-menu.c.

                                                                                       {
       self->ref_count = 1;
}
UnityTestSoundMenuSuite * unity_test_sound_menu_suite_new ( void  )

Definition at line 146 of file test-sound-menu.c.

Here is the call graph for this function:

Here is the caller graph for this function:

gpointer unity_test_sound_menu_suite_ref ( gpointer  instance)

Definition at line 534 of file test-sound-menu.c.

                                                             {
       UnityTestSoundMenuSuite* 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-sound-menu.c.

                                                              {
       UnityMusicPlayer* _tmp0_;
       UnityMusicPlayer* player;
       UnityPlaylist* _tmp1_;
       UnityPlaylist* pl;
       UnityPlaylist* _tmp2_;
       UnityMusicPlayer* _tmp7_;
       UnityPlaylist* _tmp8_;
       UnityMusicPlayer* _tmp9_;
       UnityPlaylist* _tmp10_;
       UnityPlaylist* _tmp11_;
       const gchar* _tmp12_;
       const gchar* _tmp13_;
       UnityPlaylist* _tmp14_;
       const gchar* _tmp15_;
       const gchar* _tmp16_;
       UnityMusicPlayer* _tmp17_;
       UnityPlaylist* _tmp18_;
       UnityPlaylist* _tmp19_;
       const gchar* _tmp20_;
       const gchar* _tmp21_;
       UnityPlaylist* _tmp22_;
       const gchar* _tmp23_;
       const gchar* _tmp24_;
       UnityMusicPlayer* _tmp25_;
       UnityPlaylist* _tmp26_;
       UnityPlaylist* _tmp27_;
       GIcon* _tmp28_;
       GIcon* _tmp29_;
       UnityPlaylist* _tmp30_;
       GIcon* _tmp31_;
       GIcon* _tmp32_;
       gboolean _tmp33_ = FALSE;
       GError * _inner_error_ = NULL;
       _tmp0_ = unity_music_player_new ("rhythmbox.desktop");
       player = _tmp0_;
       _tmp1_ = unity_playlist_new ("fake-pl-id");
       pl = _tmp1_;
       _tmp2_ = pl;
       unity_playlist_set_name (_tmp2_, "yellow swans like");
       {
              GIcon* _tmp3_ = NULL;
              GIcon* _tmp4_;
              UnityPlaylist* _tmp5_;
              GIcon* _tmp6_;
              _tmp3_ = g_icon_new_for_string ("audio-volume-high", &_inner_error_);
              _tmp4_ = _tmp3_;
              if (_inner_error_ != NULL) {
                     goto __catch0_g_error;
              }
              _tmp5_ = pl;
              _tmp6_ = _tmp4_;
              unity_playlist_set_icon (_tmp5_, _tmp6_);
              _g_object_unref0 (_tmp6_);
       }
       goto __finally0;
       __catch0_g_error:
       {
              GError* e = NULL;
              e = _inner_error_;
              _inner_error_ = NULL;
              g_warning ("test-sound-menu.vala:81: Unable to load Icon from name provided - unab" \
"le to complete test");
              _g_error_free0 (e);
              _g_object_unref0 (pl);
              _g_object_unref0 (player);
              return;
       }
       __finally0:
       if (_inner_error_ != NULL) {
              _g_object_unref0 (pl);
              _g_object_unref0 (player);
              g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
              g_clear_error (&_inner_error_);
              return;
       }
       _tmp7_ = player;
       _tmp8_ = pl;
       unity_music_player_set_current_playlist (_tmp7_, _tmp8_);
       _tmp9_ = player;
       _tmp10_ = unity_music_player_get_current_playlist (_tmp9_);
       _tmp11_ = _tmp10_;
       _tmp12_ = unity_playlist_get_name (_tmp11_);
       _tmp13_ = _tmp12_;
       _tmp14_ = pl;
       _tmp15_ = unity_playlist_get_name (_tmp14_);
       _tmp16_ = _tmp15_;
       _vala_assert (g_strcmp0 (_tmp13_, _tmp16_) == 0, "player.current_playlist.name == pl.name");
       _tmp17_ = player;
       _tmp18_ = unity_music_player_get_current_playlist (_tmp17_);
       _tmp19_ = _tmp18_;
       _tmp20_ = unity_playlist_get_id (_tmp19_);
       _tmp21_ = _tmp20_;
       _tmp22_ = pl;
       _tmp23_ = unity_playlist_get_id (_tmp22_);
       _tmp24_ = _tmp23_;
       _vala_assert (g_strcmp0 (_tmp21_, _tmp24_) == 0, "player.current_playlist.id == pl.id");
       _tmp25_ = player;
       _tmp26_ = unity_music_player_get_current_playlist (_tmp25_);
       _tmp27_ = _tmp26_;
       _tmp28_ = unity_playlist_get_icon (_tmp27_);
       _tmp29_ = _tmp28_;
       _tmp30_ = pl;
       _tmp31_ = unity_playlist_get_icon (_tmp30_);
       _tmp32_ = _tmp31_;
       _tmp33_ = g_icon_equal (_tmp29_, _tmp32_);
       _vala_assert (_tmp33_, "player.current_playlist.icon.equal (pl.icon)");
       _g_object_unref0 (pl);
       _g_object_unref0 (player);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 161 of file test-sound-menu.c.

                                                              {
       UnityMusicPlayer* _tmp0_;
       UnityMusicPlayer* player;
       UnityTrackMetadata* _tmp1_;
       UnityTrackMetadata* metadata;
       UnityTrackMetadata* _tmp2_;
       UnityTrackMetadata* _tmp3_;
       const gchar* _tmp4_;
       const gchar* _tmp5_;
       const gchar* _tmp6_;
       const gchar* _tmp7_;
       UnityTrackMetadata* _tmp8_;
       UnityTrackMetadata* _tmp9_;
       const gchar* _tmp10_;
       const gchar* _tmp11_;
       const gchar* _tmp12_;
       const gchar* _tmp13_;
       UnityTrackMetadata* _tmp14_;
       UnityTrackMetadata* _tmp15_;
       const gchar* _tmp16_;
       const gchar* _tmp17_;
       const gchar* _tmp18_;
       const gchar* _tmp19_;
       _tmp0_ = unity_music_player_new ("rhythmbox.desktop");
       player = _tmp0_;
       _tmp1_ = unity_track_metadata_new ();
       metadata = _tmp1_;
       unity_track_metadata_set_artist (metadata, "Autechre");
       unity_track_metadata_set_album (metadata, "LP5");
       unity_track_metadata_set_title (metadata, "Rae");
       unity_music_player_set_current_track (player, metadata);
       _tmp2_ = unity_music_player_get_current_track (player);
       _tmp3_ = _tmp2_;
       _tmp4_ = unity_track_metadata_get_artist (_tmp3_);
       _tmp5_ = _tmp4_;
       _tmp6_ = unity_track_metadata_get_artist (metadata);
       _tmp7_ = _tmp6_;
       _vala_assert (g_strcmp0 (_tmp5_, _tmp7_) == 0, "player.current_track.artist == metadata.artist");
       _tmp8_ = unity_music_player_get_current_track (player);
       _tmp9_ = _tmp8_;
       _tmp10_ = unity_track_metadata_get_title (_tmp9_);
       _tmp11_ = _tmp10_;
       _tmp12_ = unity_track_metadata_get_title (metadata);
       _tmp13_ = _tmp12_;
       _vala_assert (g_strcmp0 (_tmp11_, _tmp13_) == 0, "player.current_track.title == metadata.title");
       _tmp14_ = unity_music_player_get_current_track (player);
       _tmp15_ = _tmp14_;
       _tmp16_ = unity_track_metadata_get_album (_tmp15_);
       _tmp17_ = _tmp16_;
       _tmp18_ = unity_track_metadata_get_album (metadata);
       _tmp19_ = _tmp18_;
       _vala_assert (g_strcmp0 (_tmp17_, _tmp19_) == 0, "player.current_track.album == metadata.album");
       _g_object_unref0 (metadata);
       _g_object_unref0 (player);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 218 of file test-sound-menu.c.

                                                                     {
       UnityMusicPlayer* _tmp0_;
       UnityMusicPlayer* player;
       UnityPlaybackState _tmp1_;
       UnityPlaybackState _tmp2_;
       _tmp0_ = unity_music_player_new ("rhythmbox.desktop");
       player = _tmp0_;
       unity_music_player_set_playback_state (player, UNITY_PLAYBACK_STATE_PLAYING);
       _tmp1_ = unity_music_player_get_playback_state (player);
       _tmp2_ = _tmp1_;
       _vala_assert (_tmp2_ == UNITY_PLAYBACK_STATE_PLAYING, "player.playback_state == PlaybackState.PLAYING");
       _g_object_unref0 (player);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 369 of file test-sound-menu.c.

                                                                   {
       UnityMusicPlayer* _tmp0_;
       UnityMusicPlayer* player;
       DbusmenuMenuitem* _tmp1_;
       DbusmenuMenuitem* menuitem;
       DbusmenuMenuitem* _tmp2_;
       DbusmenuMenuitem* _tmp3_;
       gint _tmp4_ = 0;
       gint _tmp5_ = 0;
       _tmp0_ = unity_music_player_new ("rhythmbox.desktop");
       player = _tmp0_;
       _tmp1_ = dbusmenu_menuitem_new ();
       menuitem = _tmp1_;
       unity_music_player_set_player_menu (player, menuitem);
       _tmp2_ = unity_music_player_get_player_menu (player);
       _tmp3_ = _tmp2_;
       _tmp4_ = dbusmenu_menuitem_get_id (_tmp3_);
       _tmp5_ = dbusmenu_menuitem_get_id (menuitem);
       _vala_assert (_tmp4_ == _tmp5_, "player.player_menu.get_id() == menuitem.get_id()");
       _g_object_unref0 (menuitem);
       _g_object_unref0 (player);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 151 of file test-sound-menu.c.

                                                       {
       UnityMusicPlayer* _tmp0_;
       UnityMusicPlayer* player;
       _tmp0_ = unity_music_player_new ("rhythmbox.desktop");
       player = _tmp0_;
       _vala_assert (G_TYPE_CHECK_INSTANCE_TYPE (player, UNITY_TYPE_MUSIC_PLAYER), "player is MusicPlayer");
       _g_object_unref0 (player);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 345 of file test-sound-menu.c.

                                                                  {
       UnityMusicPlayer* _tmp0_;
       UnityMusicPlayer* player;
       DbusmenuMenuitem* _tmp1_;
       DbusmenuMenuitem* menuitem;
       DbusmenuMenuitem* _tmp2_;
       DbusmenuMenuitem* _tmp3_;
       gint _tmp4_ = 0;
       gint _tmp5_ = 0;
       _tmp0_ = unity_music_player_new ("rhythmbox.desktop");
       player = _tmp0_;
       _tmp1_ = dbusmenu_menuitem_new ();
       menuitem = _tmp1_;
       unity_music_player_set_track_menu (player, menuitem);
       _tmp2_ = unity_music_player_get_track_menu (player);
       _tmp3_ = _tmp2_;
       _tmp4_ = dbusmenu_menuitem_get_id (_tmp3_);
       _tmp5_ = dbusmenu_menuitem_get_id (menuitem);
       _vala_assert (_tmp4_ == _tmp5_, "player.track_menu.get_id() ==  menuitem.get_id()");
       _g_object_unref0 (menuitem);
       _g_object_unref0 (player);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_test_sound_menu_suite_unref ( gpointer  instance)

Definition at line 542 of file test-sound-menu.c.

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

Here is the caller graph for this function:

gpointer unity_test_value_get_sound_menu_suite ( const GValue *  value)

Definition at line 462 of file test-sound-menu.c.

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

Definition at line 468 of file test-sound-menu.c.

                                                                              {
       UnityTestSoundMenuSuite* old;
       g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, UNITY_TEST_TYPE_SOUND_MENU_SUITE));
       old = value->data[0].v_pointer;
       if (v_object) {
              g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, UNITY_TEST_TYPE_SOUND_MENU_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_sound_menu_suite_ref (value->data[0].v_pointer);
       } else {
              value->data[0].v_pointer = NULL;
       }
       if (old) {
              unity_test_sound_menu_suite_unref (old);
       }
}

Here is the call graph for this function:

static gchar* unity_test_value_sound_menu_suite_collect_value ( GValue *  value,
guint  n_collect_values,
GTypeCValue *  collect_values,
guint  collect_flags 
) [static]

Definition at line 419 of file test-sound-menu.c.

                                                                                                                                                        {
       if (collect_values[0].v_pointer) {
              UnityTestSoundMenuSuite* 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_sound_menu_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_sound_menu_suite_copy_value ( const GValue *  src_value,
GValue *  dest_value 
) [static]

Definition at line 405 of file test-sound-menu.c.

                                                                                                       {
       if (src_value->data[0].v_pointer) {
              dest_value->data[0].v_pointer = unity_test_sound_menu_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_sound_menu_suite_free_value ( GValue *  value) [static]

Definition at line 398 of file test-sound-menu.c.

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

Here is the call graph for this function:

static void unity_test_value_sound_menu_suite_init ( GValue *  value) [static]

Definition at line 393 of file test-sound-menu.c.

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

Definition at line 436 of file test-sound-menu.c.

                                                                                                                                                            {
       UnityTestSoundMenuSuite** 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_sound_menu_suite_ref (value->data[0].v_pointer);
       }
       return NULL;
}

Here is the call graph for this function:

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

Definition at line 414 of file test-sound-menu.c.

                                                                                     {
       return value->data[0].v_pointer;
}
void unity_test_value_take_sound_menu_suite ( GValue *  value,
gpointer  v_object 
)

Definition at line 486 of file test-sound-menu.c.

                                                                               {
       UnityTestSoundMenuSuite* old;
       g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, UNITY_TEST_TYPE_SOUND_MENU_SUITE));
       old = value->data[0].v_pointer;
       if (v_object) {
              g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, UNITY_TEST_TYPE_SOUND_MENU_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_sound_menu_suite_unref (old);
       }
}

Here is the call graph for this function:


Variable Documentation

gpointer unity_test_sound_menu_suite_parent_class = NULL [static]

Definition at line 73 of file test-sound-menu.c.