diff options
author | Matthew Gregan <[email protected]> | 2016-11-03 17:07:19 +1300 |
---|---|---|
committer | Matthew Gregan <[email protected]> | 2016-11-03 17:07:19 +1300 |
commit | 8c41e5641df50a4b78650057872178a5860222f0 (patch) | |
tree | 2fe99a4219e3fc70fbeb001443b8f11d78aa286d /test/test_duplex.cpp | |
parent | 43088ccd4f86f858a2776a4c1368c288f4d25b3e (diff) | |
download | cubeb-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_duplex.cpp')
-rw-r--r-- | test/test_duplex.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_duplex.cpp b/test/test_duplex.cpp index 7bae010..c5d02d7 100644 --- a/test/test_duplex.cpp +++ b/test/test_duplex.cpp @@ -18,6 +18,9 @@ #include "cubeb/cubeb.h" #include "common.h" +#ifdef CUBEB_GECKO_BUILD +#include "TestHarness.h" +#endif #define SAMPLE_FREQUENCY 48000 #if (defined(_WIN32) || defined(__WIN32__)) @@ -88,6 +91,10 @@ void state_cb(cubeb_stream * stream, void * /*user*/, cubeb_state state) int main(int /*argc*/, char * /*argv*/[]) { +#ifdef CUBEB_GECKO_BUILD + ScopedXPCOM xpcom("test_duplex"); +#endif + cubeb *ctx; cubeb_stream *stream; cubeb_stream_params input_params; |