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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "media/audio/audio_io.h" | 6 #include "media/audio/audio_io.h" |
| 7 #include "media/audio/audio_manager.h" |
7 #include "media/audio/simple_sources.h" | 8 #include "media/audio/simple_sources.h" |
8 #include "testing/gmock/include/gmock/gmock.h" | 9 #include "testing/gmock/include/gmock/gmock.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
10 | 11 |
11 using ::testing::_; | 12 using ::testing::_; |
12 using ::testing::AnyNumber; | 13 using ::testing::AnyNumber; |
13 using ::testing::DoAll; | 14 using ::testing::DoAll; |
14 using ::testing::InSequence; | 15 using ::testing::InSequence; |
15 using ::testing::Invoke; | 16 using ::testing::Invoke; |
16 using ::testing::NiceMock; | 17 using ::testing::NiceMock; |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 .WillOnce(Return(0)); | 166 .WillOnce(Return(0)); |
166 EXPECT_CALL(source, OnMoreData(oas, NotNull(), bytes_100_ms, _)) | 167 EXPECT_CALL(source, OnMoreData(oas, NotNull(), bytes_100_ms, _)) |
167 .Times(AnyNumber()) | 168 .Times(AnyNumber()) |
168 .WillRepeatedly(Return(0)); | 169 .WillRepeatedly(Return(0)); |
169 | 170 |
170 oas->Start(&source); | 171 oas->Start(&source); |
171 usleep(500000); | 172 usleep(500000); |
172 oas->Stop(); | 173 oas->Stop(); |
173 oas->Close(); | 174 oas->Close(); |
174 } | 175 } |
OLD | NEW |