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

Unified Diff: media/base/mock_filters.h

Issue 2718483003: Use base::Optional for selected video track. (Closed)
Patch Set: rebase Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/media_url_demuxer.cc ('k') | media/base/pipeline.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/mock_filters.h
diff --git a/media/base/mock_filters.h b/media/base/mock_filters.h
index 1aac779f27f916043dda6198dcafd6da28d9da9b..841ca0b9f3d65a9d80fd4f68ad0f2a6d086835dd 100644
--- a/media/base/mock_filters.h
+++ b/media/base/mock_filters.h
@@ -85,7 +85,7 @@ class MockPipeline : public Pipeline {
MOCK_METHOD1(OnEnabledAudioTracksChanged,
void(const std::vector<MediaTrack::Id>&));
MOCK_METHOD1(OnSelectedVideoTrackChanged,
- void(const std::vector<MediaTrack::Id>&));
+ void(base::Optional<MediaTrack::Id>));
// TODO(sandersd): This should automatically return true between Start() and
// Stop(). (Or better, remove it from the interface entirely.)
@@ -142,7 +142,7 @@ class MockDemuxer : public Demuxer {
MOCK_METHOD2(OnEnabledAudioTracksChanged,
void(const std::vector<MediaTrack::Id>&, base::TimeDelta));
MOCK_METHOD2(OnSelectedVideoTrackChanged,
- void(const std::vector<MediaTrack::Id>&, base::TimeDelta));
+ void(base::Optional<MediaTrack::Id>, base::TimeDelta));
private:
DISALLOW_COPY_AND_ASSIGN(MockDemuxer);
« no previous file with comments | « media/base/media_url_demuxer.cc ('k') | media/base/pipeline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698