OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |