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

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

Issue 2738503005: Created battor.tough_energy_cases (without dcurtis's change)
Patch Set: Reupload Created 3 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
« no previous file with comments | « media/test/pipeline_integration_test.cc ('k') | media/test/pipeline_integration_test_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
11 #include "base/md5.h" 11 #include "base/md5.h"
12 #include "base/memory/scoped_vector.h" 12 #include "base/memory/scoped_vector.h"
13 #include "base/message_loop/message_loop.h" 13 #include "base/message_loop/message_loop.h"
14 #include "base/test/scoped_task_scheduler.h"
15 #include "media/audio/clockless_audio_sink.h" 14 #include "media/audio/clockless_audio_sink.h"
16 #include "media/audio/null_audio_sink.h" 15 #include "media/audio/null_audio_sink.h"
17 #include "media/base/demuxer.h" 16 #include "media/base/demuxer.h"
18 #include "media/base/null_video_sink.h" 17 #include "media/base/null_video_sink.h"
19 #include "media/base/pipeline_impl.h" 18 #include "media/base/pipeline_impl.h"
20 #include "media/base/pipeline_status.h" 19 #include "media/base/pipeline_status.h"
21 #include "media/base/text_track.h" 20 #include "media/base/text_track.h"
22 #include "media/base/text_track_config.h" 21 #include "media/base/text_track_config.h"
23 #include "media/base/video_frame.h" 22 #include "media/base/video_frame.h"
24 #include "media/renderers/video_renderer_impl.h" 23 #include "media/renderers/video_renderer_impl.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 void set_encrypted_media_init_data_cb( 126 void set_encrypted_media_init_data_cb(
128 const Demuxer::EncryptedMediaInitDataCB& encrypted_media_init_data_cb) { 127 const Demuxer::EncryptedMediaInitDataCB& encrypted_media_init_data_cb) {
129 encrypted_media_init_data_cb_ = encrypted_media_init_data_cb; 128 encrypted_media_init_data_cb_ = encrypted_media_init_data_cb;
130 } 129 }
131 130
132 protected: 131 protected:
133 base::MessageLoop message_loop_; 132 base::MessageLoop message_loop_;
134 base::MD5Context md5_context_; 133 base::MD5Context md5_context_;
135 bool hashing_enabled_; 134 bool hashing_enabled_;
136 bool clockless_playback_; 135 bool clockless_playback_;
137
138 // TaskScheduler is used only for FFmpegDemuxer.
139 std::unique_ptr<base::test::ScopedTaskScheduler> task_scheduler_;
140 std::unique_ptr<Demuxer> demuxer_; 136 std::unique_ptr<Demuxer> demuxer_;
141 std::unique_ptr<DataSource> data_source_; 137 std::unique_ptr<DataSource> data_source_;
142 std::unique_ptr<PipelineImpl> pipeline_; 138 std::unique_ptr<PipelineImpl> pipeline_;
143 scoped_refptr<NullAudioSink> audio_sink_; 139 scoped_refptr<NullAudioSink> audio_sink_;
144 scoped_refptr<ClocklessAudioSink> clockless_audio_sink_; 140 scoped_refptr<ClocklessAudioSink> clockless_audio_sink_;
145 std::unique_ptr<NullVideoSink> video_sink_; 141 std::unique_ptr<NullVideoSink> video_sink_;
146 bool ended_; 142 bool ended_;
147 PipelineStatus pipeline_status_; 143 PipelineStatus pipeline_status_;
148 Demuxer::EncryptedMediaInitDataCB encrypted_media_init_data_cb_; 144 Demuxer::EncryptedMediaInitDataCB encrypted_media_init_data_cb_;
149 VideoPixelFormat last_video_frame_format_; 145 VideoPixelFormat last_video_frame_format_;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 const AddTextTrackDoneCB& done_cb)); 205 const AddTextTrackDoneCB& done_cb));
210 MOCK_METHOD0(OnWaitingForDecryptionKey, void(void)); 206 MOCK_METHOD0(OnWaitingForDecryptionKey, void(void));
211 MOCK_METHOD1(OnVideoNaturalSizeChange, void(const gfx::Size&)); 207 MOCK_METHOD1(OnVideoNaturalSizeChange, void(const gfx::Size&));
212 MOCK_METHOD1(OnVideoOpacityChange, void(bool)); 208 MOCK_METHOD1(OnVideoOpacityChange, void(bool));
213 MOCK_METHOD0(OnVideoAverageKeyframeDistanceUpdate, void()); 209 MOCK_METHOD0(OnVideoAverageKeyframeDistanceUpdate, void());
214 }; 210 };
215 211
216 } // namespace media 212 } // namespace media
217 213
218 #endif // MEDIA_TEST_PIPELINE_INTEGRATION_TEST_BASE_H_ 214 #endif // MEDIA_TEST_PIPELINE_INTEGRATION_TEST_BASE_H_
OLDNEW
« no previous file with comments | « media/test/pipeline_integration_test.cc ('k') | media/test/pipeline_integration_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698