OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/logging.h" | 5 #include "base/logging.h" |
| 6 #include "base/macros.h" |
6 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
7 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
8 #include "content/renderer/media/audio_renderer_mixer_manager.h" | 9 #include "content/renderer/media/audio_renderer_mixer_manager.h" |
9 #include "ipc/ipc_message.h" | 10 #include "ipc/ipc_message.h" |
10 #include "media/audio/audio_parameters.h" | 11 #include "media/audio/audio_parameters.h" |
11 #include "media/base/audio_hardware_config.h" | 12 #include "media/base/audio_hardware_config.h" |
12 #include "media/base/audio_renderer_mixer.h" | 13 #include "media/base/audio_renderer_mixer.h" |
13 #include "media/base/audio_renderer_mixer_input.h" | 14 #include "media/base/audio_renderer_mixer_input.h" |
14 #include "media/base/fake_audio_render_callback.h" | 15 #include "media/base/fake_audio_render_callback.h" |
15 #include "media/base/mock_audio_renderer_sink.h" | 16 #include "media/base/mock_audio_renderer_sink.h" |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 EXPECT_CALL(*mock_sink_.get(), Stop()); | 272 EXPECT_CALL(*mock_sink_.get(), Stop()); |
272 media::AudioRendererMixer* mixer = | 273 media::AudioRendererMixer* mixer = |
273 GetMixer(kRenderFrameId, params, nonexistent_device_id, kSecurityOrigin, | 274 GetMixer(kRenderFrameId, params, nonexistent_device_id, kSecurityOrigin, |
274 &device_status); | 275 &device_status); |
275 EXPECT_FALSE(mixer); | 276 EXPECT_FALSE(mixer); |
276 EXPECT_EQ(device_status, media::OUTPUT_DEVICE_STATUS_ERROR_NOT_FOUND); | 277 EXPECT_EQ(device_status, media::OUTPUT_DEVICE_STATUS_ERROR_NOT_FOUND); |
277 EXPECT_EQ(mixer_count(), 0); | 278 EXPECT_EQ(mixer_count(), 0); |
278 } | 279 } |
279 | 280 |
280 } // namespace content | 281 } // namespace content |
OLD | NEW |