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

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

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/fake_text_track_stream.cc ('k') | media/base/mock_filters.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 <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 AudioDecoderConfig audio_decoder_config() override; 59 AudioDecoderConfig audio_decoder_config() override;
60 VideoDecoderConfig video_decoder_config() override; 60 VideoDecoderConfig video_decoder_config() override;
61 MOCK_METHOD0(EnableBitstreamConverter, void()); 61 MOCK_METHOD0(EnableBitstreamConverter, void());
62 MOCK_METHOD0(SupportsConfigChanges, bool()); 62 MOCK_METHOD0(SupportsConfigChanges, bool());
63 63
64 void set_audio_decoder_config(const AudioDecoderConfig& config); 64 void set_audio_decoder_config(const AudioDecoderConfig& config);
65 void set_video_decoder_config(const VideoDecoderConfig& config); 65 void set_video_decoder_config(const VideoDecoderConfig& config);
66 void set_liveness(Liveness liveness); 66 void set_liveness(Liveness liveness);
67 67
68 VideoRotation video_rotation() override; 68 VideoRotation video_rotation() override;
69 size_t GetMemoryLimit() const override;
70 void SetMemoryLimit(size_t memory_limit) override;
69 71
70 private: 72 private:
71 Type type_; 73 Type type_;
72 Liveness liveness_; 74 Liveness liveness_;
73 AudioDecoderConfig audio_decoder_config_; 75 AudioDecoderConfig audio_decoder_config_;
74 VideoDecoderConfig video_decoder_config_; 76 VideoDecoderConfig video_decoder_config_;
75 77
76 DISALLOW_COPY_AND_ASSIGN(MockDemuxerStream); 78 DISALLOW_COPY_AND_ASSIGN(MockDemuxerStream);
77 }; 79 };
78 80
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 MOCK_METHOD1(ResetDecoder, void(StreamType stream_type)); 256 MOCK_METHOD1(ResetDecoder, void(StreamType stream_type));
255 MOCK_METHOD1(DeinitializeDecoder, void(StreamType stream_type)); 257 MOCK_METHOD1(DeinitializeDecoder, void(StreamType stream_type));
256 258
257 private: 259 private:
258 DISALLOW_COPY_AND_ASSIGN(MockDecryptor); 260 DISALLOW_COPY_AND_ASSIGN(MockDecryptor);
259 }; 261 };
260 262
261 } // namespace media 263 } // namespace media
262 264
263 #endif // MEDIA_BASE_MOCK_FILTERS_H_ 265 #endif // MEDIA_BASE_MOCK_FILTERS_H_
OLDNEW
« no previous file with comments | « media/base/fake_text_track_stream.cc ('k') | media/base/mock_filters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698