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

Unified Diff: media/audio/audio_low_latency_input_output_unittest.cc

Issue 396793003: Factorize media/audio into new GN. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing audio deps. Created 6 years, 5 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
« no previous file with comments | « media/audio/BUILD.gn ('k') | media/media_options.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_low_latency_input_output_unittest.cc
diff --git a/media/audio/audio_low_latency_input_output_unittest.cc b/media/audio/audio_low_latency_input_output_unittest.cc
index eefd3800aabd18800cc0011293e0dd8a3cce3530..56328962d3beffbec919b20ccc44c355ac93b162 100644
--- a/media/audio/audio_low_latency_input_output_unittest.cc
+++ b/media/audio/audio_low_latency_input_output_unittest.cc
@@ -18,8 +18,12 @@
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
-#if defined(USE_ALSA)
+#if defined(USE_PULSEAUDIO)
+#include "media/audio/pulse/audio_manager_pulse.h"
+#elif defined(USE_ALSA)
#include "media/audio/alsa/audio_manager_alsa.h"
+#elif defined(USE_CRAS)
+#include "media/audio/cras/audio_manager_cras.h"
#elif defined(OS_MACOSX)
#include "media/audio/mac/audio_manager_mac.h"
#elif defined(OS_WIN)
@@ -33,8 +37,12 @@
namespace media {
-#if defined(USE_ALSA)
+#if defined(USE_PULSEAUDIO)
+typedef AudioManagerPulse AudioManagerAnyPlatform;
+#elif defined(USE_ALSA)
typedef AudioManagerAlsa AudioManagerAnyPlatform;
+#elif defined(USE_CRAS)
+typedef AudioManagerCras AudioManagerAnyPlatform;
#elif defined(OS_MACOSX)
typedef AudioManagerMac AudioManagerAnyPlatform;
#elif defined(OS_WIN)
« no previous file with comments | « media/audio/BUILD.gn ('k') | media/media_options.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698