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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
10 #include "base/test/simple_test_tick_clock.h" | 10 #include "base/test/simple_test_tick_clock.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 filter_collection_->SetTextRenderer(text_renderer.Pass()); | 101 filter_collection_->SetTextRenderer(text_renderer.Pass()); |
102 | 102 |
103 // InitializeDemuxer() adds overriding expectations for expected non-NULL | 103 // InitializeDemuxer() adds overriding expectations for expected non-NULL |
104 // streams. | 104 // streams. |
105 DemuxerStream* null_pointer = NULL; | 105 DemuxerStream* null_pointer = NULL; |
106 EXPECT_CALL(*demuxer_, GetStream(_)) | 106 EXPECT_CALL(*demuxer_, GetStream(_)) |
107 .WillRepeatedly(Return(null_pointer)); | 107 .WillRepeatedly(Return(null_pointer)); |
108 | 108 |
109 EXPECT_CALL(*demuxer_, GetStartTime()) | 109 EXPECT_CALL(*demuxer_, GetStartTime()) |
110 .WillRepeatedly(Return(base::TimeDelta())); | 110 .WillRepeatedly(Return(base::TimeDelta())); |
| 111 |
| 112 EXPECT_CALL(*demuxer_, GetWallclockTimelineOffset()) |
| 113 .WillRepeatedly(Return(base::Time())); |
111 } | 114 } |
112 | 115 |
113 virtual ~PipelineTest() { | 116 virtual ~PipelineTest() { |
114 if (!pipeline_ || !pipeline_->IsRunning()) | 117 if (!pipeline_ || !pipeline_->IsRunning()) |
115 return; | 118 return; |
116 | 119 |
117 ExpectStop(); | 120 ExpectStop(); |
118 | 121 |
119 // The mock demuxer doesn't stop the fake text track stream, | 122 // The mock demuxer doesn't stop the fake text track stream, |
120 // so just stop it manually. | 123 // so just stop it manually. |
(...skipping 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1234 INSTANTIATE_TEARDOWN_TEST(Error, Pausing); | 1237 INSTANTIATE_TEARDOWN_TEST(Error, Pausing); |
1235 INSTANTIATE_TEARDOWN_TEST(Error, Flushing); | 1238 INSTANTIATE_TEARDOWN_TEST(Error, Flushing); |
1236 INSTANTIATE_TEARDOWN_TEST(Error, Seeking); | 1239 INSTANTIATE_TEARDOWN_TEST(Error, Seeking); |
1237 INSTANTIATE_TEARDOWN_TEST(Error, Prerolling); | 1240 INSTANTIATE_TEARDOWN_TEST(Error, Prerolling); |
1238 INSTANTIATE_TEARDOWN_TEST(Error, Starting); | 1241 INSTANTIATE_TEARDOWN_TEST(Error, Starting); |
1239 INSTANTIATE_TEARDOWN_TEST(Error, Playing); | 1242 INSTANTIATE_TEARDOWN_TEST(Error, Playing); |
1240 | 1243 |
1241 INSTANTIATE_TEARDOWN_TEST(ErrorAndStop, Playing); | 1244 INSTANTIATE_TEARDOWN_TEST(ErrorAndStop, Playing); |
1242 | 1245 |
1243 } // namespace media | 1246 } // namespace media |
OLD | NEW |