aboutsummaryrefslogtreecommitdiff
path: root/tests/backend-dbus
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-06-24 23:12:03 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-06-24 23:12:03 -0500
commit3882e60f88c19b4522a08145230b7101c1a127d3 (patch)
tree220fbbb3ecf115504c01a628fbbc4db1fb9d46f1 /tests/backend-dbus
parent0ca4b9a4e6b552b9a59bade1d8d44cc950ded994 (diff)
downloadayatana-indicator-session-3882e60f88c19b4522a08145230b7101c1a127d3.tar.gz
ayatana-indicator-session-3882e60f88c19b4522a08145230b7101c1a127d3.tar.bz2
ayatana-indicator-session-3882e60f88c19b4522a08145230b7101c1a127d3.zip
In tests/, enable debuginfo and warnings for C++ file. Fix a couple of minor compile warnings.
Diffstat (limited to 'tests/backend-dbus')
-rw-r--r--tests/backend-dbus/mock-end-session-dialog.cc12
-rw-r--r--tests/backend-dbus/mock-webcredentials.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/tests/backend-dbus/mock-end-session-dialog.cc b/tests/backend-dbus/mock-end-session-dialog.cc
index e289a83..903962b 100644
--- a/tests/backend-dbus/mock-end-session-dialog.cc
+++ b/tests/backend-dbus/mock-end-session-dialog.cc
@@ -44,10 +44,10 @@ MockEndSessionDialog :: handle_simulate_user_activity (GnomeScreenSaver * s
gboolean
MockEndSessionDialog :: handle_open (EndSessionDialog * object,
GDBusMethodInvocation * invocation,
- guint arg_type,
- guint arg_timestamp,
- guint arg_seconds_to_stay_open,
- const gchar * const * inhibitor_paths,
+ guint arg_type G_GNUC_UNUSED,
+ guint arg_timestamp G_GNUC_UNUSED,
+ guint arg_seconds_to_stay_open G_GNUC_UNUSED,
+ const gchar * const * inhibitor_paths G_GNUC_UNUSED,
gpointer gself)
{
static_cast<MockEndSessionDialog*>(gself)->my_isOpen = true;
@@ -68,8 +68,8 @@ namespace
MockEndSessionDialog :: MockEndSessionDialog (GMainLoop * loop,
GDBusConnection * bus_connection):
MockObject (loop, bus_connection, MY_NAME, MY_PATH),
- my_isOpen (false),
- my_skeleton (end_session_dialog_skeleton_new ())
+ my_skeleton (end_session_dialog_skeleton_new ()),
+ my_isOpen (false)
{
g_signal_connect (my_skeleton, "handle-open",
G_CALLBACK(handle_open), this);
diff --git a/tests/backend-dbus/mock-webcredentials.h b/tests/backend-dbus/mock-webcredentials.h
index 212ca76..fd1b10c 100644
--- a/tests/backend-dbus/mock-webcredentials.h
+++ b/tests/backend-dbus/mock-webcredentials.h
@@ -32,7 +32,7 @@ class MockWebcredentials: public MockObject
virtual ~MockWebcredentials ();
bool has_error () const { return webcredentials_get_error_status (my_skeleton); }
- bool set_error (bool b) const { webcredentials_set_error_status (my_skeleton, b); }
+ void set_error (bool b) const { webcredentials_set_error_status (my_skeleton, b); }
private: