| 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 #include <stddef.h> |
| 8 #include <stdint.h> |
| 7 | 9 |
| 8 #include "base/base_paths.h" | 10 #include "base/base_paths.h" |
| 9 #include "base/memory/aligned_memory.h" | 11 #include "base/memory/aligned_memory.h" |
| 10 #include "base/sync_socket.h" | 12 #include "base/sync_socket.h" |
| 11 #include "base/win/scoped_com_initializer.h" | 13 #include "base/win/scoped_com_initializer.h" |
| 12 #include "base/win/windows_version.h" | 14 #include "base/win/windows_version.h" |
| 13 #include "media/base/limits.h" | |
| 14 #include "media/audio/audio_io.h" | 15 #include "media/audio/audio_io.h" |
| 15 #include "media/audio/audio_manager.h" | 16 #include "media/audio/audio_manager.h" |
| 16 #include "media/audio/audio_unittest_util.h" | 17 #include "media/audio/audio_unittest_util.h" |
| 17 #include "media/audio/mock_audio_source_callback.h" | 18 #include "media/audio/mock_audio_source_callback.h" |
| 18 #include "media/audio/simple_sources.h" | 19 #include "media/audio/simple_sources.h" |
| 20 #include "media/base/limits.h" |
| 19 #include "testing/gmock/include/gmock/gmock.h" | 21 #include "testing/gmock/include/gmock/gmock.h" |
| 20 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
| 21 | 23 |
| 22 using ::testing::_; | 24 using ::testing::_; |
| 23 using ::testing::AnyNumber; | 25 using ::testing::AnyNumber; |
| 24 using ::testing::DoAll; | 26 using ::testing::DoAll; |
| 25 using ::testing::Field; | 27 using ::testing::Field; |
| 26 using ::testing::Invoke; | 28 using ::testing::Invoke; |
| 27 using ::testing::InSequence; | 29 using ::testing::InSequence; |
| 28 using ::testing::NiceMock; | 30 using ::testing::NiceMock; |
| (...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 618 oas->Start(&source); | 620 oas->Start(&source); |
| 619 | 621 |
| 620 ::WaitForSingleObject(thread, INFINITE); | 622 ::WaitForSingleObject(thread, INFINITE); |
| 621 ::CloseHandle(thread); | 623 ::CloseHandle(thread); |
| 622 | 624 |
| 623 oas->Stop(); | 625 oas->Stop(); |
| 624 oas->Close(); | 626 oas->Close(); |
| 625 } | 627 } |
| 626 | 628 |
| 627 } // namespace media | 629 } // namespace media |
| OLD | NEW |