OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/base_paths.h" | 8 #include "base/base_paths.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/path_service.h" |
10 #include "media/audio/audio_output.h" | 11 #include "media/audio/audio_output.h" |
11 #include "media/audio/simple_sources.h" | 12 #include "media/audio/simple_sources.h" |
12 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
14 | 15 |
15 using ::testing::_; | 16 using ::testing::_; |
16 using ::testing::AnyNumber; | 17 using ::testing::AnyNumber; |
17 using ::testing::DoAll; | 18 using ::testing::DoAll; |
18 using ::testing::InSequence; | 19 using ::testing::InSequence; |
19 using ::testing::NiceMock; | 20 using ::testing::NiceMock; |
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 .WillOnce(Return(0)); | 557 .WillOnce(Return(0)); |
557 EXPECT_CALL(source, OnMoreData(oas, NotNull(), bytes_100_ms, 0)) | 558 EXPECT_CALL(source, OnMoreData(oas, NotNull(), bytes_100_ms, 0)) |
558 .Times(AnyNumber()) | 559 .Times(AnyNumber()) |
559 .WillRepeatedly(Return(0)); | 560 .WillRepeatedly(Return(0)); |
560 | 561 |
561 oas->Start(&source); | 562 oas->Start(&source); |
562 ::Sleep(500); | 563 ::Sleep(500); |
563 oas->Stop(); | 564 oas->Stop(); |
564 oas->Close(); | 565 oas->Close(); |
565 } | 566 } |
OLD | NEW |