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/run_loop.h" | 13 #include "base/run_loop.h" |
13 #include "base/sync_socket.h" | 14 #include "base/sync_socket.h" |
14 #include "cc/base/math_util.h" | 15 #include "cc/base/math_util.h" |
15 #include "content/browser/audio_manager_thread.h" | 16 #include "content/browser/audio_manager_thread.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" |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 base::Bind(&TestIPCClient::Start, base::Unretained(&client))); | 375 base::Bind(&TestIPCClient::Start, base::Unretained(&client))); |
375 SyncWithAllThreads(); | 376 SyncWithAllThreads(); |
376 stream_ptr->Play(); | 377 stream_ptr->Play(); |
377 SyncWithAllThreads(); | 378 SyncWithAllThreads(); |
378 } // Joining client thread. | 379 } // Joining client thread. |
379 stream_ptr.reset(); | 380 stream_ptr.reset(); |
380 SyncWithAllThreads(); | 381 SyncWithAllThreads(); |
381 } | 382 } |
382 | 383 |
383 } // namespace content | 384 } // namespace content |
OLD | NEW |