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

Side by Side Diff: media/base/mock_filters.h

Issue 2267963002: Add support for cancellation of demuxer reads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix and add tests. Created 4 years, 3 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/base/media_url_demuxer.cc ('k') | media/base/pipeline_impl.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_BASE_MOCK_FILTERS_H_ 5 #ifndef MEDIA_BASE_MOCK_FILTERS_H_
6 #define MEDIA_BASE_MOCK_FILTERS_H_ 6 #define MEDIA_BASE_MOCK_FILTERS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 virtual ~MockDemuxer(); 117 virtual ~MockDemuxer();
118 118
119 // Demuxer implementation. 119 // Demuxer implementation.
120 virtual std::string GetDisplayName() const; 120 virtual std::string GetDisplayName() const;
121 MOCK_METHOD3(Initialize, 121 MOCK_METHOD3(Initialize,
122 void(DemuxerHost* host, const PipelineStatusCB& cb, bool)); 122 void(DemuxerHost* host, const PipelineStatusCB& cb, bool));
123 MOCK_METHOD1(StartWaitingForSeek, void(base::TimeDelta)); 123 MOCK_METHOD1(StartWaitingForSeek, void(base::TimeDelta));
124 MOCK_METHOD1(CancelPendingSeek, void(base::TimeDelta)); 124 MOCK_METHOD1(CancelPendingSeek, void(base::TimeDelta));
125 MOCK_METHOD2(Seek, void(base::TimeDelta time, const PipelineStatusCB& cb)); 125 MOCK_METHOD2(Seek, void(base::TimeDelta time, const PipelineStatusCB& cb));
126 MOCK_METHOD0(Stop, void()); 126 MOCK_METHOD0(Stop, void());
127 MOCK_METHOD0(AbortPendingReads, void());
127 MOCK_METHOD1(GetStream, DemuxerStream*(DemuxerStream::Type)); 128 MOCK_METHOD1(GetStream, DemuxerStream*(DemuxerStream::Type));
128 MOCK_CONST_METHOD0(GetStartTime, base::TimeDelta()); 129 MOCK_CONST_METHOD0(GetStartTime, base::TimeDelta());
129 MOCK_CONST_METHOD0(GetTimelineOffset, base::Time()); 130 MOCK_CONST_METHOD0(GetTimelineOffset, base::Time());
130 MOCK_CONST_METHOD0(GetMemoryUsage, int64_t()); 131 MOCK_CONST_METHOD0(GetMemoryUsage, int64_t());
131 MOCK_METHOD2(OnEnabledAudioTracksChanged, 132 MOCK_METHOD2(OnEnabledAudioTracksChanged,
132 void(const std::vector<MediaTrack::Id>&, base::TimeDelta)); 133 void(const std::vector<MediaTrack::Id>&, base::TimeDelta));
133 MOCK_METHOD2(OnSelectedVideoTrackChanged, 134 MOCK_METHOD2(OnSelectedVideoTrackChanged,
134 void(const std::vector<MediaTrack::Id>&, base::TimeDelta)); 135 void(const std::vector<MediaTrack::Id>&, base::TimeDelta));
135 136
136 private: 137 private:
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 371
371 private: 372 private:
372 int cdm_id_ = CdmContext::kInvalidCdmId; 373 int cdm_id_ = CdmContext::kInvalidCdmId;
373 374
374 DISALLOW_COPY_AND_ASSIGN(MockCdmContext); 375 DISALLOW_COPY_AND_ASSIGN(MockCdmContext);
375 }; 376 };
376 377
377 } // namespace media 378 } // namespace media
378 379
379 #endif // MEDIA_BASE_MOCK_FILTERS_H_ 380 #endif // MEDIA_BASE_MOCK_FILTERS_H_
OLDNEW
« no previous file with comments | « media/base/media_url_demuxer.cc ('k') | media/base/pipeline_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698