OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_input_renderer_host.h" | 5 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
| 12 #include "base/threading/thread_task_runner_handle.h" |
12 #include "content/browser/bad_message.h" | 13 #include "content/browser/bad_message.h" |
13 #include "content/browser/media/capture/audio_mirroring_manager.h" | 14 #include "content/browser/media/capture/audio_mirroring_manager.h" |
14 #include "content/browser/renderer_host/media/audio_input_device_manager.h" | 15 #include "content/browser/renderer_host/media/audio_input_device_manager.h" |
15 #include "content/browser/renderer_host/media/media_stream_manager.h" | 16 #include "content/browser/renderer_host/media/media_stream_manager.h" |
16 #include "content/browser/renderer_host/media/media_stream_ui_proxy.h" | 17 #include "content/browser/renderer_host/media/media_stream_ui_proxy.h" |
17 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
18 #include "content/public/common/content_switches.h" | 19 #include "content/public/common/content_switches.h" |
19 #include "content/public/test/mock_render_process_host.h" | 20 #include "content/public/test/mock_render_process_host.h" |
20 #include "content/public/test/test_browser_context.h" | 21 #include "content/public/test/test_browser_context.h" |
21 #include "content/public/test/test_browser_thread.h" | 22 #include "content/public/test/test_browser_thread.h" |
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 EXPECT_CALL(controller_factory_, ControllerCreated()); | 563 EXPECT_CALL(controller_factory_, ControllerCreated()); |
563 | 564 |
564 airh_->OnMessageReceived(AudioInputHostMsg_CreateStream( | 565 airh_->OnMessageReceived(AudioInputHostMsg_CreateStream( |
565 kStreamId, kRenderFrameId, session_id, DefaultConfig())); | 566 kStreamId, kRenderFrameId, session_id, DefaultConfig())); |
566 base::RunLoop().RunUntilIdle(); | 567 base::RunLoop().RunUntilIdle(); |
567 | 568 |
568 EXPECT_CALL(*controller_factory_.controller(0), Close(_)); | 569 EXPECT_CALL(*controller_factory_.controller(0), Close(_)); |
569 } | 570 } |
570 | 571 |
571 } // namespace content | 572 } // namespace content |
OLD | NEW |