diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-06-28 21:15:15 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2013-06-28 21:15:15 -0500 |
commit | 3222a77d7159826d89743685d35710597f269e00 (patch) | |
tree | 6a40a3aa0d436891aad2e6d7d2769389edb0f1dc /tests/backend-mock-users.c | |
parent | f85ba52944c1924271ce4734a31dacb4a8e51e71 (diff) | |
download | ayatana-indicator-session-3222a77d7159826d89743685d35710597f269e00.tar.gz ayatana-indicator-session-3222a77d7159826d89743685d35710597f269e00.tar.bz2 ayatana-indicator-session-3222a77d7159826d89743685d35710597f269e00.zip |
fix test breakage introduced with the recent commit that hides the reboot menuitem when running in unity shell
Diffstat (limited to 'tests/backend-mock-users.c')
-rw-r--r-- | tests/backend-mock-users.c | 42 |
1 files changed, 25 insertions, 17 deletions
diff --git a/tests/backend-mock-users.c b/tests/backend-mock-users.c index bae40b6..f2291cd 100644 --- a/tests/backend-mock-users.c +++ b/tests/backend-mock-users.c @@ -32,25 +32,9 @@ G_DEFINE_TYPE (IndicatorSessionUsersMock, INDICATOR_TYPE_SESSION_USERS) /*** -**** +**** IndicatorSessionUsers virtual functions ***/ -static void -my_dispose (GObject * o) -{ - G_OBJECT_CLASS (indicator_session_users_mock_parent_class)->dispose (o); -} - -static void -my_finalize (GObject * o) -{ - priv_t * p = INDICATOR_SESSION_USERS_MOCK (o)->priv; - - g_hash_table_destroy (p->users); - - G_OBJECT_CLASS (indicator_session_users_mock_parent_class)->finalize (o); -} - static gboolean my_is_live_session (IndicatorSessionUsers * users G_GNUC_UNUSED) { @@ -96,6 +80,30 @@ my_get_user (IndicatorSessionUsers * self, guint uid) return ret; } +/*** +**** GObject virtual functions +***/ + +static void +my_dispose (GObject * o) +{ + G_OBJECT_CLASS (indicator_session_users_mock_parent_class)->dispose (o); +} + +static void +my_finalize (GObject * o) +{ + priv_t * p = INDICATOR_SESSION_USERS_MOCK (o)->priv; + + g_hash_table_destroy (p->users); + + G_OBJECT_CLASS (indicator_session_users_mock_parent_class)->finalize (o); +} + +/*** +**** GObject boilerplate +***/ + static void /* cppcheck-suppress unusedFunction */ indicator_session_users_mock_class_init (IndicatorSessionUsersMockClass * klass) |