Bug 1552652 - Unbreak building tests on Tier3 after bug 1545079. r=padenot a=NPOTB
authorJan Beich <jbeich@FreeBSD.org>
Mon, 20 May 2019 09:06:35 +0000
changeset 533312 93b9f438f63997e94a1e2b395d8a1fe7297d3965
parent 533311 e9d9035e11e58302276689eeda113513ab1165de
child 533313 893d67d512c29acc46ec422fa0b8d348fae02bd8
push id11289
push useraiakab@mozilla.com
push dateTue, 21 May 2019 22:18:45 +0000
treeherdermozilla-beta@893d67d512c2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspadenot, NPOTB
bugs1552652, 1545079
milestone68.0
Bug 1552652 - Unbreak building tests on Tier3 after bug 1545079. r=padenot a=NPOTB Differential Revision: https://phabricator.services.mozilla.com/D31756
dom/media/gtest/MockCubeb.h
--- a/dom/media/gtest/MockCubeb.h
+++ b/dom/media/gtest/MockCubeb.h
@@ -419,24 +419,26 @@ int cubeb_mock_stream_stop(cubeb_stream*
 void cubeb_mock_stream_destroy(cubeb_stream* stream) {
   MockCubeb::MockCubebStream* mockStream =
       reinterpret_cast<MockCubeb::MockCubebStream*>(stream);
   MockCubeb* mock = reinterpret_cast<MockCubeb*>(mockStream->context);
   return mock->StreamDestroy(stream);
 }
 
 static char const* cubeb_mock_get_backend_id(cubeb* context) {
-#if defined(XP_LINUX)
-  return "pulse";
-#elif defined(XP_MACOSX)
+#if defined(XP_MACOSX)
   return "audiounit";
 #elif defined(XP_WIN)
   return "wasapi";
 #elif defined(ANDROID)
   return "opensl";
+#elif defined(__OpenBSD__)
+  return "sndio";
+#else
+  return "pulse";
 #endif
 }
 
 static int cubeb_mock_stream_set_volume(cubeb_stream* stream, float volume) {
   return CUBEB_OK;
 }
 
 int cubeb_mock_get_min_latency(cubeb* context, cubeb_stream_params params,