OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/renderer_audio_output_stream_facto
ry_context_impl.h" | 5 #include "content/browser/renderer_host/media/renderer_audio_output_stream_facto
ry_context_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
11 #include "base/memory/shared_memory_handle.h" | 11 #include "base/memory/shared_memory_handle.h" |
12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
| 14 #include "base/single_thread_task_runner.h" |
14 #include "base/sync_socket.h" | 15 #include "base/sync_socket.h" |
15 #include "cc/base/math_util.h" | 16 #include "cc/base/math_util.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/common/media/renderer_audio_output_stream_factory.mojom.h" | 18 #include "content/common/media/renderer_audio_output_stream_factory.mojom.h" |
18 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.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_bundle.h" | 22 #include "content/public/test/test_browser_thread_bundle.h" |
22 #include "media/audio/audio_manager_base.h" | 23 #include "media/audio/audio_manager_base.h" |
23 #include "media/audio/audio_output_controller.h" | 24 #include "media/audio/audio_output_controller.h" |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 base::Bind(&TestIPCClient::Start, base::Unretained(&client))); | 372 base::Bind(&TestIPCClient::Start, base::Unretained(&client))); |
372 SyncWithAllThreads(); | 373 SyncWithAllThreads(); |
373 stream_ptr->Play(); | 374 stream_ptr->Play(); |
374 SyncWithAllThreads(); | 375 SyncWithAllThreads(); |
375 } // Joining client thread. | 376 } // Joining client thread. |
376 stream_ptr.reset(); | 377 stream_ptr.reset(); |
377 SyncWithAllThreads(); | 378 SyncWithAllThreads(); |
378 } | 379 } |
379 | 380 |
380 } // namespace content | 381 } // namespace content |
OLD | NEW |