aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-09 09:06:43 +0100
committerMax Kellermann <max@duempel.org>2013-01-09 12:26:07 +0100
commit3c4bb9ff4ed60297af0e63befabf37b50b9fe745 (patch)
tree4e4ba66813f82f3da72d2af2caac9b58d8b43f14 /test
parenta890dadfd2aeadf5bbacb4f10a896bbebe335c99 (diff)
test/FakeReplayGainConfig: move fake symbols from a few debug programs
Diffstat (limited to 'test')
-rw-r--r--test/FakeReplayGainConfig.cxx25
-rw-r--r--test/run_filter.c6
-rw-r--r--test/run_output.cxx5
3 files changed, 25 insertions, 11 deletions
diff --git a/test/FakeReplayGainConfig.cxx b/test/FakeReplayGainConfig.cxx
new file mode 100644
index 00000000..9c2431bf
--- /dev/null
+++ b/test/FakeReplayGainConfig.cxx
@@ -0,0 +1,25 @@
+/*
+ * Copyright (C) 2003-2013 The Music Player Daemon Project
+ * http://www.musicpd.org
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY 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, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#include "config.h"
+#include "replay_gain_config.h"
+
+float replay_gain_preamp = 1.0;
+float replay_gain_missing_preamp = 1.0;
+bool replay_gain_limit = true;
diff --git a/test/run_filter.c b/test/run_filter.c
index d319a9a2..7a4bd9d8 100644
--- a/test/run_filter.c
+++ b/test/run_filter.c
@@ -23,7 +23,6 @@
#include "audio_format.h"
#include "filter_plugin.h"
#include "pcm_volume.h"
-#include "idle.h"
#include "mixer_control.h"
#include "stdbin.h"
@@ -34,11 +33,6 @@
#include <errno.h>
#include <unistd.h>
-void
-idle_add(G_GNUC_UNUSED unsigned flags)
-{
-}
-
bool
mixer_set_volume(G_GNUC_UNUSED struct mixer *mixer,
G_GNUC_UNUSED unsigned volume, G_GNUC_UNUSED GError **error_r)
diff --git a/test/run_output.cxx b/test/run_output.cxx
index e46e61d4..27318067 100644
--- a/test/run_output.cxx
+++ b/test/run_output.cxx
@@ -43,11 +43,6 @@ extern "C" {
#include <stdlib.h>
void
-idle_add(G_GNUC_UNUSED unsigned flags)
-{
-}
-
-void
event_pipe_emit(G_GNUC_UNUSED enum pipe_event event)
{
}