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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/callback_helpers.h" | 6 #include "base/callback_helpers.h" |
7 #include "base/gtest_prod_util.h" | 7 #include "base/gtest_prod_util.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
10 #include "media/base/data_buffer.h" | 10 #include "media/base/data_buffer.h" |
11 #include "media/base/gmock_callback_support.h" | 11 #include "media/base/gmock_callback_support.h" |
12 #include "media/base/mock_audio_renderer_sink.h" | 12 #include "media/base/mock_audio_renderer_sink.h" |
13 #include "media/base/mock_callback.h" | |
14 #include "media/base/mock_filters.h" | 13 #include "media/base/mock_filters.h" |
| 14 #include "media/base/test_helpers.h" |
15 #include "media/filters/audio_renderer_impl.h" | 15 #include "media/filters/audio_renderer_impl.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 | 17 |
18 using ::testing::_; | 18 using ::testing::_; |
19 using ::testing::AnyNumber; | 19 using ::testing::AnyNumber; |
20 using ::testing::Invoke; | 20 using ::testing::Invoke; |
21 using ::testing::Return; | 21 using ::testing::Return; |
22 using ::testing::NiceMock; | 22 using ::testing::NiceMock; |
23 using ::testing::StrictMock; | 23 using ::testing::StrictMock; |
24 | 24 |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 EXPECT_TRUE(ConsumeBufferedData(bytes_buffered() / 2, NULL)); | 469 EXPECT_TRUE(ConsumeBufferedData(bytes_buffered() / 2, NULL)); |
470 | 470 |
471 renderer_->Pause(NewExpectedClosure()); | 471 renderer_->Pause(NewExpectedClosure()); |
472 | 472 |
473 AbortPendingRead(); | 473 AbortPendingRead(); |
474 | 474 |
475 Preroll(base::TimeDelta::FromSeconds(1)); | 475 Preroll(base::TimeDelta::FromSeconds(1)); |
476 } | 476 } |
477 | 477 |
478 } // namespace media | 478 } // namespace media |
OLD | NEW |