Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(530)

Unified Diff: content/test/webrtc_content_browsertest_base.cc

Issue 1153063002: Initialize AVFoundation explicitly (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ppapi tests Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/test/webrtc_content_browsertest_base.cc
diff --git a/content/test/webrtc_content_browsertest_base.cc b/content/test/webrtc_content_browsertest_base.cc
index b01ac5349204fee15fe405c5b89850aacc908b51..ba1226101cc6b7f5d0fc1c992fcdafb35be400c2 100644
--- a/content/test/webrtc_content_browsertest_base.cc
+++ b/content/test/webrtc_content_browsertest_base.cc
@@ -17,6 +17,10 @@
#include "chromeos/audio/cras_audio_handler.h"
#endif
+#if defined(OS_MACOSX)
+#include "media/base/mac/avfoundation_glue.h"
+#endif
+
#if defined(OS_WIN)
#include "base/win/windows_version.h"
#endif
@@ -42,6 +46,8 @@ void WebRtcContentBrowserTest::SetUp() {
EnablePixelOutput();
#if defined(OS_CHROMEOS)
chromeos::CrasAudioHandler::InitializeForTesting();
+#elif defined(OS_MACOSX)
+ AVFoundationGlue::InitializeAVFoundation();
#endif
ContentBrowserTest::SetUp();
}

Powered by Google App Engine
This is Rietveld 408576698