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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 } | 55 } |
56 | 56 |
57 void MockDemuxerStream::set_liveness(DemuxerStream::Liveness liveness) { | 57 void MockDemuxerStream::set_liveness(DemuxerStream::Liveness liveness) { |
58 liveness_ = liveness; | 58 liveness_ = liveness; |
59 } | 59 } |
60 | 60 |
61 VideoRotation MockDemuxerStream::video_rotation() { | 61 VideoRotation MockDemuxerStream::video_rotation() { |
62 return VIDEO_ROTATION_0; | 62 return VIDEO_ROTATION_0; |
63 } | 63 } |
64 | 64 |
| 65 int MockDemuxerStream::GetMemoryLimit() const { |
| 66 NOTIMPLEMENTED(); |
| 67 return 0; |
| 68 } |
| 69 |
| 70 void MockDemuxerStream::SetMemoryLimit(int memory_limit) { |
| 71 NOTIMPLEMENTED(); |
| 72 } |
| 73 |
65 std::string MockVideoDecoder::GetDisplayName() const { | 74 std::string MockVideoDecoder::GetDisplayName() const { |
66 return "MockVideoDecoder"; | 75 return "MockVideoDecoder"; |
67 } | 76 } |
68 | 77 |
69 MockVideoDecoder::MockVideoDecoder() { | 78 MockVideoDecoder::MockVideoDecoder() { |
70 EXPECT_CALL(*this, HasAlpha()).WillRepeatedly(Return(false)); | 79 EXPECT_CALL(*this, HasAlpha()).WillRepeatedly(Return(false)); |
71 } | 80 } |
72 | 81 |
73 std::string MockAudioDecoder::GetDisplayName() const { | 82 std::string MockAudioDecoder::GetDisplayName() const { |
74 return "MockAudioDecoder"; | 83 return "MockAudioDecoder"; |
(...skipping 23 matching lines...) Expand all Loading... |
98 | 107 |
99 MockTextTrack::MockTextTrack() {} | 108 MockTextTrack::MockTextTrack() {} |
100 | 109 |
101 MockTextTrack::~MockTextTrack() {} | 110 MockTextTrack::~MockTextTrack() {} |
102 | 111 |
103 MockDecryptor::MockDecryptor() {} | 112 MockDecryptor::MockDecryptor() {} |
104 | 113 |
105 MockDecryptor::~MockDecryptor() {} | 114 MockDecryptor::~MockDecryptor() {} |
106 | 115 |
107 } // namespace media | 116 } // namespace media |
OLD | NEW |