aboutsummaryrefslogtreecommitdiff
path: root/tests/test-indicator-sound.c
diff options
context:
space:
mode:
authorRobert Collins <robertc@robertcollins.net>2010-03-04 21:23:40 +1100
committerRobert Collins <robertc@robertcollins.net>2010-03-04 21:23:40 +1100
commit9d0d8eaa8b9c021fbb45368f96489f520aab86e7 (patch)
treec036a36f625519e3cbc211306b9d58abce181212 /tests/test-indicator-sound.c
parent84afe8ad635ba3294bc92e11d2b0f227996b48d5 (diff)
downloadayatana-indicator-sound-9d0d8eaa8b9c021fbb45368f96489f520aab86e7.tar.gz
ayatana-indicator-sound-9d0d8eaa8b9c021fbb45368f96489f520aab86e7.tar.bz2
ayatana-indicator-sound-9d0d8eaa8b9c021fbb45368f96489f520aab86e7.zip
Put mocking core in place for Connor.
Diffstat (limited to 'tests/test-indicator-sound.c')
-rw-r--r--tests/test-indicator-sound.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test-indicator-sound.c b/tests/test-indicator-sound.c
index eb68b17..1d3569a 100644
--- a/tests/test-indicator-sound.c
+++ b/tests/test-indicator-sound.c
@@ -20,6 +20,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include <string.h>
#include <gtk/gtk.h>
#include <libindicator/indicator-object.h>
+#include <pulse/glib-mainloop.h>
#include "../src/indicator-sound.h"
static const gint STATE_MUTED = 0;
@@ -85,6 +86,10 @@ void test_libindicator_image_names()
tidy_up_hash();
}
+void test_libindicator_pa_mocked()
+{ g_assert(pa_glib_mainloop_new(NULL) == NULL);
+}
+
gint main (gint argc, gchar * argv[])
@@ -95,6 +100,7 @@ gint main (gint argc, gchar * argv[])
g_test_add_func("/indicator-sound/indicator-sound/init", test_libindicator_sound_init);
g_test_add_func("/indicator-sound/indicator-sound/state_machine", test_libindicator_determine_state);
g_test_add_func("/indicator-sound/indicator-sound/image_names", test_libindicator_image_names);
+ g_test_add_func("/indicator-sound/indicator-sound/pa_is_mocked", test_libindicator_pa_mocked);
return g_test_run ();
}