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

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

Issue 20136002: Reland r212023 "Rename VideoDecoder::ReadCB to VideoDecoder::DecodeCB." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix content_browsertests failure. Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | media/base/video_decoder.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 #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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 class MockVideoDecoder : public VideoDecoder { 68 class MockVideoDecoder : public VideoDecoder {
69 public: 69 public:
70 MockVideoDecoder(); 70 MockVideoDecoder();
71 virtual ~MockVideoDecoder(); 71 virtual ~MockVideoDecoder();
72 72
73 // VideoDecoder implementation. 73 // VideoDecoder implementation.
74 MOCK_METHOD2(Initialize, void(const VideoDecoderConfig& config, 74 MOCK_METHOD2(Initialize, void(const VideoDecoderConfig& config,
75 const PipelineStatusCB&)); 75 const PipelineStatusCB&));
76 MOCK_METHOD2(Decode, void(const scoped_refptr<DecoderBuffer>& buffer, 76 MOCK_METHOD2(Decode, void(const scoped_refptr<DecoderBuffer>& buffer,
77 const ReadCB&)); 77 const DecodeCB&));
78 MOCK_METHOD1(Reset, void(const base::Closure&)); 78 MOCK_METHOD1(Reset, void(const base::Closure&));
79 MOCK_METHOD1(Stop, void(const base::Closure&)); 79 MOCK_METHOD1(Stop, void(const base::Closure&));
80 MOCK_CONST_METHOD0(HasAlpha, bool()); 80 MOCK_CONST_METHOD0(HasAlpha, bool());
81 81
82 private: 82 private:
83 DISALLOW_COPY_AND_ASSIGN(MockVideoDecoder); 83 DISALLOW_COPY_AND_ASSIGN(MockVideoDecoder);
84 }; 84 };
85 85
86 class MockAudioDecoder : public AudioDecoder { 86 class MockAudioDecoder : public AudioDecoder {
87 public: 87 public:
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 public: 190 public:
191 MockStatisticsCB(); 191 MockStatisticsCB();
192 ~MockStatisticsCB(); 192 ~MockStatisticsCB();
193 193
194 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); 194 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics));
195 }; 195 };
196 196
197 } // namespace media 197 } // namespace media
198 198
199 #endif // MEDIA_BASE_MOCK_FILTERS_H_ 199 #endif // MEDIA_BASE_MOCK_FILTERS_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/video_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698