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

Unified Diff: media/base/audio_hardware_config_unittest.cc

Issue 2067863003: Mixing audio with different latency requirements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing bot redness Created 4 years, 6 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: media/base/audio_hardware_config_unittest.cc
diff --git a/media/base/audio_hardware_config_unittest.cc b/media/base/audio_hardware_config_unittest.cc
index 2a493f157650dd58d49633fbcddc99581672ff76..3cf632312aacc96697f9117fd439664921f18a4f 100644
--- a/media/base/audio_hardware_config_unittest.cc
+++ b/media/base/audio_hardware_config_unittest.cc
@@ -88,42 +88,4 @@ TEST(AudioHardwareConfig, Setters) {
EXPECT_EQ(kNewInputChannelLayout, fake_config.GetInputChannelLayout());
}
-TEST(AudioHardwareConfig, HighLatencyBufferSizes) {
- AudioParameters input_params(AudioParameters::AUDIO_PCM_LOW_LATENCY,
- kInputChannelLayout,
- kInputSampleRate,
- 16,
- kOutputBufferSize);
- AudioParameters output_params(AudioParameters::AUDIO_PCM_LOW_LATENCY,
- kOutputChannelLayout,
- 3200,
- 16,
- 32);
- AudioHardwareConfig fake_config(input_params, output_params);
-
-#if defined(OS_WIN)
- for (int i = 6400; i <= 204800; i *= 2) {
- fake_config.UpdateOutputConfig(
- AudioParameters(AudioParameters::AUDIO_PCM_LOW_LATENCY,
- kOutputChannelLayout,
- i,
- 16,
- i / 100));
- EXPECT_EQ(2 * (i / 100), fake_config.GetHighLatencyBufferSize());
- }
-#else
- EXPECT_EQ(64, fake_config.GetHighLatencyBufferSize());
-
- for (int i = 6400; i <= 204800; i *= 2) {
- fake_config.UpdateOutputConfig(
- AudioParameters(AudioParameters::AUDIO_PCM_LOW_LATENCY,
- kOutputChannelLayout,
- i,
- 16,
- 32));
- EXPECT_EQ(2 * (i / 100), fake_config.GetHighLatencyBufferSize());
- }
-#endif // defined(OS_WIN)
-}
-
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698