| 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 <stdint.h> | 5 #include <stdint.h> |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| 11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
| 12 #include "base/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
| 13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 #include "media/audio/audio_manager.h" | 14 #include "media/audio/audio_manager.h" |
| 15 #include "media/audio/audio_manager_base.h" | 15 #include "media/audio/audio_manager_base.h" |
| 16 #include "media/audio/audio_output_dispatcher_impl.h" | 16 #include "media/audio/audio_output_dispatcher_impl.h" |
| 17 #include "media/audio/audio_output_proxy.h" | 17 #include "media/audio/audio_output_proxy.h" |
| 18 #include "media/audio/audio_output_resampler.h" | 18 #include "media/audio/audio_output_resampler.h" |
| 19 #include "media/audio/fake_audio_log_factory.h" | 19 #include "media/audio/fake_audio_log_factory.h" |
| 20 #include "media/audio/fake_audio_output_stream.h" | 20 #include "media/audio/fake_audio_output_stream.h" |
| 21 #include "testing/gmock/include/gmock/gmock.h" | 21 #include "testing/gmock/include/gmock/gmock.h" |
| 22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
| (...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 725 _)).WillOnce(Return(&real_stream)); | 725 _)).WillOnce(Return(&real_stream)); |
| 726 | 726 |
| 727 // Stream1 should be able to successfully open and start. | 727 // Stream1 should be able to successfully open and start. |
| 728 EXPECT_CALL(real_stream, Open()).WillOnce(Return(true)); | 728 EXPECT_CALL(real_stream, Open()).WillOnce(Return(true)); |
| 729 proxy = new AudioOutputProxy(resampler_.get()); | 729 proxy = new AudioOutputProxy(resampler_.get()); |
| 730 EXPECT_TRUE(proxy->Open()); | 730 EXPECT_TRUE(proxy->Open()); |
| 731 CloseAndWaitForCloseTimer(proxy, &real_stream); | 731 CloseAndWaitForCloseTimer(proxy, &real_stream); |
| 732 } | 732 } |
| 733 | 733 |
| 734 } // namespace media | 734 } // namespace media |
| OLD | NEW |