aboutsummaryrefslogtreecommitdiff
path: root/tests/mockpulse.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/mockpulse.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/mockpulse.c')
-rw-r--r--tests/mockpulse.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/mockpulse.c b/tests/mockpulse.c
new file mode 100644
index 0000000..297780b
--- /dev/null
+++ b/tests/mockpulse.c
@@ -0,0 +1,28 @@
+/*
+Copyright 2010 Canonical Ltd.
+
+Authors:
+ Robert Collins <robert.collins@canonical.com>
+
+This program is free software: you can redistribute it and/or modify it
+under the terms of the GNU General Public License version 3, as published
+by the Free Software Foundation.
+
+This program is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranties of
+MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
+PURPOSE. See the GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License along
+with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#include <pulse/glib-mainloop.h>
+
+pa_glib_mainloop*
+pa_glib_mainloop_new(GMainContext *c)
+{
+ printf("This is reached\n", c);
+ return NULL;
+}
+