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 <windows.h> | 5 #include <windows.h> |
6 #include <mmsystem.h> | 6 #include <mmsystem.h> |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/environment.h" | 9 #include "base/environment.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
| 13 #include "base/path_service.h" |
13 #include "base/test/test_timeouts.h" | 14 #include "base/test/test_timeouts.h" |
14 #include "base/time.h" | 15 #include "base/time/time.h" |
15 #include "base/path_service.h" | |
16 #include "base/win/scoped_com_initializer.h" | 16 #include "base/win/scoped_com_initializer.h" |
17 #include "media/audio/audio_io.h" | 17 #include "media/audio/audio_io.h" |
18 #include "media/audio/audio_manager.h" | 18 #include "media/audio/audio_manager.h" |
19 #include "media/audio/audio_util.h" | 19 #include "media/audio/audio_util.h" |
20 #include "media/audio/win/audio_low_latency_output_win.h" | 20 #include "media/audio/win/audio_low_latency_output_win.h" |
21 #include "media/audio/win/core_audio_util_win.h" | 21 #include "media/audio/win/core_audio_util_win.h" |
22 #include "media/base/decoder_buffer.h" | 22 #include "media/base/decoder_buffer.h" |
23 #include "media/base/seekable_buffer.h" | 23 #include "media/base/seekable_buffer.h" |
24 #include "media/base/test_data_util.h" | 24 #include "media/base/test_data_util.h" |
| 25 #include "testing/gmock/include/gmock/gmock.h" |
25 #include "testing/gmock_mutant.h" | 26 #include "testing/gmock_mutant.h" |
26 #include "testing/gmock/include/gmock/gmock.h" | |
27 #include "testing/gtest/include/gtest/gtest.h" | 27 #include "testing/gtest/include/gtest/gtest.h" |
28 | 28 |
29 using ::testing::_; | 29 using ::testing::_; |
30 using ::testing::AnyNumber; | 30 using ::testing::AnyNumber; |
31 using ::testing::AtLeast; | 31 using ::testing::AtLeast; |
32 using ::testing::Between; | 32 using ::testing::Between; |
33 using ::testing::CreateFunctor; | 33 using ::testing::CreateFunctor; |
34 using ::testing::DoAll; | 34 using ::testing::DoAll; |
35 using ::testing::Gt; | 35 using ::testing::Gt; |
36 using ::testing::InvokeWithoutArgs; | 36 using ::testing::InvokeWithoutArgs; |
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
694 | 694 |
695 aos->Start(&source); | 695 aos->Start(&source); |
696 loop.PostDelayedTask(FROM_HERE, base::MessageLoop::QuitClosure(), | 696 loop.PostDelayedTask(FROM_HERE, base::MessageLoop::QuitClosure(), |
697 TestTimeouts::action_timeout()); | 697 TestTimeouts::action_timeout()); |
698 loop.Run(); | 698 loop.Run(); |
699 aos->Stop(); | 699 aos->Stop(); |
700 aos->Close(); | 700 aos->Close(); |
701 } | 701 } |
702 | 702 |
703 } // namespace media | 703 } // namespace media |
OLD | NEW |