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

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

Issue 1996763002: Make painting a single frame a permanent API on VideoRendererSink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments. Created 4 years, 7 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 #include <memory> 9 #include <memory>
10 10
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 scoped_refptr<ClocklessAudioSink> clockless_audio_sink_; 128 scoped_refptr<ClocklessAudioSink> clockless_audio_sink_;
129 std::unique_ptr<NullVideoSink> video_sink_; 129 std::unique_ptr<NullVideoSink> video_sink_;
130 bool ended_; 130 bool ended_;
131 PipelineStatus pipeline_status_; 131 PipelineStatus pipeline_status_;
132 Demuxer::EncryptedMediaInitDataCB encrypted_media_init_data_cb_; 132 Demuxer::EncryptedMediaInitDataCB encrypted_media_init_data_cb_;
133 VideoPixelFormat last_video_frame_format_; 133 VideoPixelFormat last_video_frame_format_;
134 ColorSpace last_video_frame_color_space_; 134 ColorSpace last_video_frame_color_space_;
135 DummyTickClock dummy_clock_; 135 DummyTickClock dummy_clock_;
136 AudioHardwareConfig hardware_config_; 136 AudioHardwareConfig hardware_config_;
137 PipelineMetadata metadata_; 137 PipelineMetadata metadata_;
138 scoped_refptr<VideoFrame> last_frame_;
138 139
139 PipelineStatus StartInternal(std::unique_ptr<DataSource> data_source, 140 PipelineStatus StartInternal(std::unique_ptr<DataSource> data_source,
140 CdmContext* cdm_context, 141 CdmContext* cdm_context,
141 uint8_t test_type); 142 uint8_t test_type);
142 143
143 PipelineStatus StartWithFile(const std::string& filename, 144 PipelineStatus StartWithFile(const std::string& filename,
144 CdmContext* cdm_context, 145 CdmContext* cdm_context,
145 uint8_t test_type); 146 uint8_t test_type);
146 147
147 void OnSeeked(base::TimeDelta seek_time, PipelineStatus status); 148 void OnSeeked(base::TimeDelta seek_time, PipelineStatus status);
(...skipping 24 matching lines...) Expand all
172 void(const TextTrackConfig& config, 173 void(const TextTrackConfig& config,
173 const AddTextTrackDoneCB& done_cb)); 174 const AddTextTrackDoneCB& done_cb));
174 MOCK_METHOD0(OnWaitingForDecryptionKey, void(void)); 175 MOCK_METHOD0(OnWaitingForDecryptionKey, void(void));
175 MOCK_METHOD1(OnVideoNaturalSizeChange, void(const gfx::Size&)); 176 MOCK_METHOD1(OnVideoNaturalSizeChange, void(const gfx::Size&));
176 MOCK_METHOD1(OnVideoOpacityChange, void(bool)); 177 MOCK_METHOD1(OnVideoOpacityChange, void(bool));
177 }; 178 };
178 179
179 } // namespace media 180 } // namespace media
180 181
181 #endif // MEDIA_TEST_PIPELINE_INTEGRATION_TEST_BASE_H_ 182 #endif // MEDIA_TEST_PIPELINE_INTEGRATION_TEST_BASE_H_
OLDNEW
« no previous file with comments | « media/renderers/video_renderer_impl_unittest.cc ('k') | media/test/pipeline_integration_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698