| 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 #ifndef MEDIA_TEST_PIPELINE_INTEGRATION_TEST_BASE_H_ | 5 #ifndef MEDIA_TEST_PIPELINE_INTEGRATION_TEST_BASE_H_ |
| 6 #define MEDIA_TEST_PIPELINE_INTEGRATION_TEST_BASE_H_ | 6 #define MEDIA_TEST_PIPELINE_INTEGRATION_TEST_BASE_H_ |
| 7 | 7 |
| 8 #include "base/md5.h" | 8 #include "base/md5.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "media/audio/clockless_audio_sink.h" | 10 #include "media/audio/clockless_audio_sink.h" |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 } | 123 } |
| 124 | 124 |
| 125 void OnEnded(); | 125 void OnEnded(); |
| 126 void OnError(PipelineStatus status); | 126 void OnError(PipelineStatus status); |
| 127 void QuitAfterCurrentTimeTask(const base::TimeDelta& quit_time); | 127 void QuitAfterCurrentTimeTask(const base::TimeDelta& quit_time); |
| 128 | 128 |
| 129 // Creates Demuxer and sets |demuxer_|. | 129 // Creates Demuxer and sets |demuxer_|. |
| 130 void CreateDemuxer(const std::string& filename); | 130 void CreateDemuxer(const std::string& filename); |
| 131 | 131 |
| 132 // Creates and returns a Renderer. | 132 // Creates and returns a Renderer. |
| 133 scoped_ptr<Renderer> CreateRenderer(); | 133 virtual scoped_ptr<Renderer> CreateRenderer(); |
| 134 | 134 |
| 135 void OnVideoFramePaint(const scoped_refptr<VideoFrame>& frame); | 135 void OnVideoFramePaint(const scoped_refptr<VideoFrame>& frame); |
| 136 | 136 |
| 137 MOCK_METHOD1(OnMetadata, void(PipelineMetadata)); | 137 MOCK_METHOD1(OnMetadata, void(PipelineMetadata)); |
| 138 MOCK_METHOD1(OnBufferingStateChanged, void(BufferingState)); | 138 MOCK_METHOD1(OnBufferingStateChanged, void(BufferingState)); |
| 139 MOCK_METHOD1(DecryptorAttached, void(bool)); | 139 MOCK_METHOD1(DecryptorAttached, void(bool)); |
| 140 MOCK_METHOD2(OnAddTextTrack, | 140 MOCK_METHOD2(OnAddTextTrack, |
| 141 void(const TextTrackConfig& config, | 141 void(const TextTrackConfig& config, |
| 142 const AddTextTrackDoneCB& done_cb)); | 142 const AddTextTrackDoneCB& done_cb)); |
| 143 }; | 143 }; |
| 144 | 144 |
| 145 } // namespace media | 145 } // namespace media |
| 146 | 146 |
| 147 #endif // MEDIA_TEST_PIPELINE_INTEGRATION_TEST_BASE_H_ | 147 #endif // MEDIA_TEST_PIPELINE_INTEGRATION_TEST_BASE_H_ |
| OLD | NEW |