aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test_audio.cpp
diff options
context:
space:
mode:
authorMatthew Gregan <[email protected]>2016-11-03 17:07:19 +1300
committerMatthew Gregan <[email protected]>2016-11-03 17:07:19 +1300
commit8c41e5641df50a4b78650057872178a5860222f0 (patch)
tree2fe99a4219e3fc70fbeb001443b8f11d78aa286d /test/test_audio.cpp
parent43088ccd4f86f858a2776a4c1368c288f4d25b3e (diff)
downloadcubeb-8c41e5641df50a4b78650057872178a5860222f0.tar.gz
cubeb-8c41e5641df50a4b78650057872178a5860222f0.zip
Revert "Remove unnecessary XPCOM dependency from unit tests. BMO #1314514."
This reverts commit 70497380eb5351f967c3fa52f3eb432969c2e65d. See comment 4 in the BMO bug for details.
Diffstat (limited to 'test/test_audio.cpp')
-rw-r--r--test/test_audio.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_audio.cpp b/test/test_audio.cpp
index f96c0f4..4943223 100644
--- a/test/test_audio.cpp
+++ b/test/test_audio.cpp
@@ -19,6 +19,9 @@
#include "cubeb/cubeb.h"
#include "common.h"
+#ifdef CUBEB_GECKO_BUILD
+#include "TestHarness.h"
+#endif
#define MAX_NUM_CHANNELS 32
@@ -279,6 +282,10 @@ void run_channel_rate_test()
int main(int /*argc*/, char * /*argv*/[])
{
+#ifdef CUBEB_GECKO_BUILD
+ ScopedXPCOM xpcom("test_audio");
+#endif
+
assert(run_panning_volume_test(0) == CUBEB_OK);
assert(run_panning_volume_test(1) == CUBEB_OK);
run_channel_rate_test();