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