Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: media/test/pipeline_integration_test_base.h

Issue 1727243002: Unify media track info reporting on a demuxer level (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tracks-impl-in-media
Patch Set: rebase Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/md5.h" 10 #include "base/md5.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 135
136 void OnSeeked(base::TimeDelta seek_time, PipelineStatus status); 136 void OnSeeked(base::TimeDelta seek_time, PipelineStatus status);
137 void OnStatusCallback(PipelineStatus status); 137 void OnStatusCallback(PipelineStatus status);
138 void DemuxerEncryptedMediaInitDataCB(EmeInitDataType type, 138 void DemuxerEncryptedMediaInitDataCB(EmeInitDataType type,
139 const std::vector<uint8_t>& init_data); 139 const std::vector<uint8_t>& init_data);
140 void set_encrypted_media_init_data_cb( 140 void set_encrypted_media_init_data_cb(
141 const Demuxer::EncryptedMediaInitDataCB& encrypted_media_init_data_cb) { 141 const Demuxer::EncryptedMediaInitDataCB& encrypted_media_init_data_cb) {
142 encrypted_media_init_data_cb_ = encrypted_media_init_data_cb; 142 encrypted_media_init_data_cb_ = encrypted_media_init_data_cb;
143 } 143 }
144 144
145 void DemuxerMediaTracksUpdatedCB(scoped_ptr<MediaTracks> tracks);
146
145 void OnEnded(); 147 void OnEnded();
146 void OnError(PipelineStatus status); 148 void OnError(PipelineStatus status);
147 void QuitAfterCurrentTimeTask(const base::TimeDelta& quit_time); 149 void QuitAfterCurrentTimeTask(const base::TimeDelta& quit_time);
148 150
149 // Creates Demuxer and sets |demuxer_|. 151 // Creates Demuxer and sets |demuxer_|.
150 void CreateDemuxer(scoped_ptr<DataSource> data_source); 152 void CreateDemuxer(scoped_ptr<DataSource> data_source);
151 153
152 // Creates and returns a Renderer. 154 // Creates and returns a Renderer.
153 virtual scoped_ptr<Renderer> CreateRenderer(); 155 virtual scoped_ptr<Renderer> CreateRenderer();
154 156
155 void OnVideoFramePaint(const scoped_refptr<VideoFrame>& frame); 157 void OnVideoFramePaint(const scoped_refptr<VideoFrame>& frame);
156 158
157 MOCK_METHOD1(OnMetadata, void(PipelineMetadata)); 159 MOCK_METHOD1(OnMetadata, void(PipelineMetadata));
158 MOCK_METHOD1(OnBufferingStateChanged, void(BufferingState)); 160 MOCK_METHOD1(OnBufferingStateChanged, void(BufferingState));
159 MOCK_METHOD1(DecryptorAttached, void(bool)); 161 MOCK_METHOD1(DecryptorAttached, void(bool));
160 MOCK_METHOD2(OnAddTextTrack, 162 MOCK_METHOD2(OnAddTextTrack,
161 void(const TextTrackConfig& config, 163 void(const TextTrackConfig& config,
162 const AddTextTrackDoneCB& done_cb)); 164 const AddTextTrackDoneCB& done_cb));
163 MOCK_METHOD0(OnWaitingForDecryptionKey, void(void)); 165 MOCK_METHOD0(OnWaitingForDecryptionKey, void(void));
164 }; 166 };
165 167
166 } // namespace media 168 } // namespace media
167 169
168 #endif // MEDIA_TEST_PIPELINE_INTEGRATION_TEST_BASE_H_ 170 #endif // MEDIA_TEST_PIPELINE_INTEGRATION_TEST_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698