| 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 <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/base_paths.h" | 9 #include "base/base_paths.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| 11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
| 12 #include "base/sync_socket.h" | 12 #include "base/sync_socket.h" |
| 13 #include "media/audio/audio_io.h" | 13 #include "media/audio/audio_io.h" |
| 14 #include "media/audio/audio_manager.h" |
| 14 #include "media/audio/simple_sources.h" | 15 #include "media/audio/simple_sources.h" |
| 15 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 17 | 18 |
| 18 using ::testing::_; | 19 using ::testing::_; |
| 19 using ::testing::AnyNumber; | 20 using ::testing::AnyNumber; |
| 20 using ::testing::DoAll; | 21 using ::testing::DoAll; |
| 21 using ::testing::InSequence; | 22 using ::testing::InSequence; |
| 22 using ::testing::NiceMock; | 23 using ::testing::NiceMock; |
| 23 using ::testing::NotNull; | 24 using ::testing::NotNull; |
| (...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 703 | 704 |
| 704 oas->Start(&source); | 705 oas->Start(&source); |
| 705 | 706 |
| 706 ::WaitForSingleObject(thread, INFINITE); | 707 ::WaitForSingleObject(thread, INFINITE); |
| 707 ::CloseHandle(thread); | 708 ::CloseHandle(thread); |
| 708 delete sockets[1]; | 709 delete sockets[1]; |
| 709 | 710 |
| 710 oas->Stop(); | 711 oas->Stop(); |
| 711 oas->Close(); | 712 oas->Close(); |
| 712 } | 713 } |
| OLD | NEW |