| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/environment.h" | 5 #include "base/environment.h" |
| 6 #include "base/message_loop.h" | 6 #include "base/message_loop.h" |
| 7 #include "base/process_util.h" | 7 #include "base/process_util.h" |
| 8 #include "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
| 9 #include "base/sync_socket.h" | 9 #include "base/sync_socket.h" |
| 10 #include "chrome/browser/browser_thread.h" | 10 #include "chrome/browser/browser_thread.h" |
| 11 #include "chrome/browser/renderer_host/audio_renderer_host.h" | |
| 12 #include "chrome/common/render_messages.h" | 11 #include "chrome/common/render_messages.h" |
| 13 #include "chrome/common/render_messages_params.h" | 12 #include "chrome/common/render_messages_params.h" |
| 13 #include "content/browser/renderer_host/audio_renderer_host.h" |
| 14 #include "ipc/ipc_message_utils.h" | 14 #include "ipc/ipc_message_utils.h" |
| 15 #include "media/audio/audio_manager.h" | 15 #include "media/audio/audio_manager.h" |
| 16 #include "media/audio/fake_audio_output_stream.h" | 16 #include "media/audio/fake_audio_output_stream.h" |
| 17 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 19 | 19 |
| 20 using ::testing::_; | 20 using ::testing::_; |
| 21 using ::testing::DoAll; | 21 using ::testing::DoAll; |
| 22 using ::testing::InSequence; | 22 using ::testing::InSequence; |
| 23 using ::testing::InvokeWithoutArgs; | 23 using ::testing::InvokeWithoutArgs; |
| (...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 | 479 |
| 480 // Simulate the case where a stream is not properly closed. | 480 // Simulate the case where a stream is not properly closed. |
| 481 TEST_F(AudioRendererHostTest, CreateLowLatencyAndShutdown) { | 481 TEST_F(AudioRendererHostTest, CreateLowLatencyAndShutdown) { |
| 482 if (!IsRunningHeadless()) | 482 if (!IsRunningHeadless()) |
| 483 EnableRealDevice(); | 483 EnableRealDevice(); |
| 484 | 484 |
| 485 CreateLowLatency(); | 485 CreateLowLatency(); |
| 486 } | 486 } |
| 487 | 487 |
| 488 // TODO(hclam): Add tests for data conversation in low latency mode. | 488 // TODO(hclam): Add tests for data conversation in low latency mode. |
| OLD | NEW |