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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
8 #include "base/sync_socket.h" | 8 #include "base/sync_socket.h" |
9 #include "content/browser/media/media_internals.h" | 9 #include "content/browser/media/media_internals.h" |
10 #include "content/browser/renderer_host/media/audio_input_device_manager.h" | 10 #include "content/browser/renderer_host/media/audio_input_device_manager.h" |
11 #include "content/browser/renderer_host/media/audio_mirroring_manager.h" | 11 #include "content/browser/renderer_host/media/audio_mirroring_manager.h" |
12 #include "content/browser/renderer_host/media/audio_renderer_host.h" | 12 #include "content/browser/renderer_host/media/audio_renderer_host.h" |
13 #include "content/browser/renderer_host/media/media_stream_manager.h" | 13 #include "content/browser/renderer_host/media/media_stream_manager.h" |
14 #include "content/common/media/audio_messages.h" | 14 #include "content/common/media/audio_messages.h" |
15 #include "content/public/test/test_browser_thread_bundle.h" | 15 #include "content/public/test/test_browser_thread_bundle.h" |
16 #include "ipc/ipc_message_utils.h" | 16 #include "ipc/ipc_message_utils.h" |
17 #include "media/audio/audio_manager.h" | 17 #include "media/audio/audio_manager.h" |
18 #include "media/base/bind_to_loop.h" | 18 #include "media/base/bind_to_current_loop.h" |
19 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
21 | 21 |
22 using ::testing::_; | 22 using ::testing::_; |
23 using ::testing::Assign; | 23 using ::testing::Assign; |
24 using ::testing::DoAll; | 24 using ::testing::DoAll; |
25 using ::testing::NotNull; | 25 using ::testing::NotNull; |
26 | 26 |
27 namespace { | 27 namespace { |
28 const int kRenderProcessId = 1; | 28 const int kRenderProcessId = 1; |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 } | 343 } |
344 | 344 |
345 TEST_F(AudioRendererHostTest, CreateUnifiedStreamAndClose) { | 345 TEST_F(AudioRendererHostTest, CreateUnifiedStreamAndClose) { |
346 Create(true); | 346 Create(true); |
347 Close(); | 347 Close(); |
348 } | 348 } |
349 | 349 |
350 // TODO(hclam): Add tests for data conversation in low latency mode. | 350 // TODO(hclam): Add tests for data conversation in low latency mode. |
351 | 351 |
352 } // namespace content | 352 } // namespace content |
OLD | NEW |