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 "content/browser/renderer_host/media/audio_renderer_host.h" | 5 #include "content/browser/renderer_host/media/audio_renderer_host.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
15 #include "base/sync_socket.h" | 15 #include "base/sync_socket.h" |
| 16 #include "base/threading/thread_task_runner_handle.h" |
16 #include "content/browser/media/capture/audio_mirroring_manager.h" | 17 #include "content/browser/media/capture/audio_mirroring_manager.h" |
17 #include "content/browser/media/media_internals.h" | 18 #include "content/browser/media/media_internals.h" |
18 #include "content/browser/renderer_host/media/audio_input_device_manager.h" | 19 #include "content/browser/renderer_host/media/audio_input_device_manager.h" |
19 #include "content/browser/renderer_host/media/media_stream_manager.h" | 20 #include "content/browser/renderer_host/media/media_stream_manager.h" |
20 #include "content/common/media/audio_messages.h" | 21 #include "content/common/media/audio_messages.h" |
21 #include "content/public/browser/media_device_id.h" | 22 #include "content/public/browser/media_device_id.h" |
22 #include "content/public/common/content_switches.h" | 23 #include "content/public/common/content_switches.h" |
23 #include "content/public/test/mock_render_process_host.h" | 24 #include "content/public/test/mock_render_process_host.h" |
24 #include "content/public/test/test_browser_context.h" | 25 #include "content/public/test/test_browser_context.h" |
25 #include "content/public/test/test_browser_thread_bundle.h" | 26 #include "content/public/test/test_browser_thread_bundle.h" |
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
614 } | 615 } |
615 | 616 |
616 TEST_F(AudioRendererHostTest, CreateFailsForInvalidRenderFrame) { | 617 TEST_F(AudioRendererHostTest, CreateFailsForInvalidRenderFrame) { |
617 CreateWithInvalidRenderFrameId(); | 618 CreateWithInvalidRenderFrameId(); |
618 Close(); | 619 Close(); |
619 } | 620 } |
620 | 621 |
621 // TODO(hclam): Add tests for data conversation in low latency mode. | 622 // TODO(hclam): Add tests for data conversation in low latency mode. |
622 | 623 |
623 } // namespace content | 624 } // namespace content |
OLD | NEW |