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