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/memory/ptr_util.h" |
11 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
12 #include "base/threading/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
13 #include "content/browser/bad_message.h" | 14 #include "content/browser/bad_message.h" |
14 #include "content/browser/media/capture/audio_mirroring_manager.h" | 15 #include "content/browser/media/capture/audio_mirroring_manager.h" |
15 #include "content/browser/renderer_host/media/audio_input_device_manager.h" | 16 #include "content/browser/renderer_host/media/audio_input_device_manager.h" |
16 #include "content/browser/renderer_host/media/media_stream_manager.h" | 17 #include "content/browser/renderer_host/media/media_stream_manager.h" |
17 #include "content/browser/renderer_host/media/media_stream_ui_proxy.h" | 18 #include "content/browser/renderer_host/media/media_stream_ui_proxy.h" |
18 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
19 #include "content/public/common/content_switches.h" | 20 #include "content/public/common/content_switches.h" |
20 #include "content/public/test/mock_render_process_host.h" | 21 #include "content/public/test/mock_render_process_host.h" |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 EXPECT_CALL(controller_factory_, ControllerCreated()); | 564 EXPECT_CALL(controller_factory_, ControllerCreated()); |
564 | 565 |
565 airh_->OnMessageReceived(AudioInputHostMsg_CreateStream( | 566 airh_->OnMessageReceived(AudioInputHostMsg_CreateStream( |
566 kStreamId, kRenderFrameId, session_id, DefaultConfig())); | 567 kStreamId, kRenderFrameId, session_id, DefaultConfig())); |
567 base::RunLoop().RunUntilIdle(); | 568 base::RunLoop().RunUntilIdle(); |
568 | 569 |
569 EXPECT_CALL(*controller_factory_.controller(0), Close(_)); | 570 EXPECT_CALL(*controller_factory_.controller(0), Close(_)); |
570 } | 571 } |
571 | 572 |
572 } // namespace content | 573 } // namespace content |
OLD | NEW |