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

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

Issue 1171263004: Allow setting memory limits on media::DemuxerStream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merged CL that adds get/set buffer size on WMP Created 5 years, 6 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/mock_filters.h ('k') | media/blink/webmediaplayer_impl.h » ('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 #include "media/base/mock_filters.h" 5 #include "media/base/mock_filters.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 9
10 using ::testing::_; 10 using ::testing::_;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 } 59 }
60 60
61 void MockDemuxerStream::set_liveness(DemuxerStream::Liveness liveness) { 61 void MockDemuxerStream::set_liveness(DemuxerStream::Liveness liveness) {
62 liveness_ = liveness; 62 liveness_ = liveness;
63 } 63 }
64 64
65 VideoRotation MockDemuxerStream::video_rotation() { 65 VideoRotation MockDemuxerStream::video_rotation() {
66 return VIDEO_ROTATION_0; 66 return VIDEO_ROTATION_0;
67 } 67 }
68 68
69 size_t MockDemuxerStream::GetMemoryLimit() const {
70 NOTIMPLEMENTED();
71 return 0;
72 }
73
74 void MockDemuxerStream::SetMemoryLimit(size_t memory_limit) {
75 NOTIMPLEMENTED();
76 }
77
69 std::string MockVideoDecoder::GetDisplayName() const { 78 std::string MockVideoDecoder::GetDisplayName() const {
70 return "MockVideoDecoder"; 79 return "MockVideoDecoder";
71 } 80 }
72 81
73 MockVideoDecoder::MockVideoDecoder() { 82 MockVideoDecoder::MockVideoDecoder() {
74 EXPECT_CALL(*this, HasAlpha()).WillRepeatedly(Return(false)); 83 EXPECT_CALL(*this, HasAlpha()).WillRepeatedly(Return(false));
75 } 84 }
76 85
77 std::string MockAudioDecoder::GetDisplayName() const { 86 std::string MockAudioDecoder::GetDisplayName() const {
78 return "MockAudioDecoder"; 87 return "MockAudioDecoder";
(...skipping 23 matching lines...) Expand all
102 111
103 MockTextTrack::MockTextTrack() {} 112 MockTextTrack::MockTextTrack() {}
104 113
105 MockTextTrack::~MockTextTrack() {} 114 MockTextTrack::~MockTextTrack() {}
106 115
107 MockDecryptor::MockDecryptor() {} 116 MockDecryptor::MockDecryptor() {}
108 117
109 MockDecryptor::~MockDecryptor() {} 118 MockDecryptor::~MockDecryptor() {}
110 119
111 } // namespace media 120 } // namespace media
OLDNEW
« no previous file with comments | « media/base/mock_filters.h ('k') | media/blink/webmediaplayer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698