| 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 "media/base/pipeline.h" | 5 #include "media/base/pipeline.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 MOCK_METHOD1(OnError, void(PipelineStatus)); | 90 MOCK_METHOD1(OnError, void(PipelineStatus)); |
| 91 MOCK_METHOD1(OnMetadata, void(PipelineMetadata)); | 91 MOCK_METHOD1(OnMetadata, void(PipelineMetadata)); |
| 92 MOCK_METHOD1(OnBufferingStateChange, void(BufferingState)); | 92 MOCK_METHOD1(OnBufferingStateChange, void(BufferingState)); |
| 93 MOCK_METHOD0(OnDurationChange, void()); | 93 MOCK_METHOD0(OnDurationChange, void()); |
| 94 | 94 |
| 95 private: | 95 private: |
| 96 DISALLOW_COPY_AND_ASSIGN(CallbackHelper); | 96 DISALLOW_COPY_AND_ASSIGN(CallbackHelper); |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 PipelineTest() | 99 PipelineTest() |
| 100 : pipeline_(new Pipeline(message_loop_.task_runner(), | 100 : test_tick_clock_(base::TimeTicks()), |
| 101 new MediaLog())), | 101 pipeline_(new Pipeline(message_loop_.task_runner(), new MediaLog())), |
| 102 demuxer_(new StrictMock<MockDemuxer>()), | 102 demuxer_(new StrictMock<MockDemuxer>()), |
| 103 scoped_renderer_(new StrictMock<MockRenderer>()), | 103 scoped_renderer_(new StrictMock<MockRenderer>()), |
| 104 renderer_(scoped_renderer_.get()) { | 104 renderer_(scoped_renderer_.get()) { |
| 105 // SetDemuxerExpectations() adds overriding expectations for expected | 105 // SetDemuxerExpectations() adds overriding expectations for expected |
| 106 // non-NULL streams. | 106 // non-NULL streams. |
| 107 DemuxerStream* null_pointer = NULL; | 107 DemuxerStream* null_pointer = NULL; |
| 108 EXPECT_CALL(*demuxer_, GetStream(_)) | 108 EXPECT_CALL(*demuxer_, GetStream(_)) |
| 109 .WillRepeatedly(Return(null_pointer)); | 109 .WillRepeatedly(Return(null_pointer)); |
| 110 | 110 |
| 111 EXPECT_CALL(*demuxer_, GetTimelineOffset()) | 111 EXPECT_CALL(*demuxer_, GetTimelineOffset()) |
| (...skipping 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1155 INSTANTIATE_TEARDOWN_TEST(Error, Seeking); | 1155 INSTANTIATE_TEARDOWN_TEST(Error, Seeking); |
| 1156 INSTANTIATE_TEARDOWN_TEST(Error, Playing); | 1156 INSTANTIATE_TEARDOWN_TEST(Error, Playing); |
| 1157 INSTANTIATE_TEARDOWN_TEST(Error, Suspending); | 1157 INSTANTIATE_TEARDOWN_TEST(Error, Suspending); |
| 1158 INSTANTIATE_TEARDOWN_TEST(Error, Suspended); | 1158 INSTANTIATE_TEARDOWN_TEST(Error, Suspended); |
| 1159 INSTANTIATE_TEARDOWN_TEST(Error, Resuming); | 1159 INSTANTIATE_TEARDOWN_TEST(Error, Resuming); |
| 1160 | 1160 |
| 1161 INSTANTIATE_TEARDOWN_TEST(ErrorAndStop, Playing); | 1161 INSTANTIATE_TEARDOWN_TEST(ErrorAndStop, Playing); |
| 1162 INSTANTIATE_TEARDOWN_TEST(ErrorAndStop, Suspended); | 1162 INSTANTIATE_TEARDOWN_TEST(ErrorAndStop, Suspended); |
| 1163 | 1163 |
| 1164 } // namespace media | 1164 } // namespace media |
| OLD | NEW |