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

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

Issue 10829200: Fix VideoRendererBase end of stream logic. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: time_cb_ -> max_time_cb_ Created 8 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/filters/video_renderer_base.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 // A new breed of mock media filters, this time using gmock! Feel free to add 5 // A new breed of mock media filters, this time using gmock! Feel free to add
6 // actions if you need interesting side-effects. 6 // actions if you need interesting side-effects.
7 // 7 //
8 // Don't forget you can use StrictMock<> and NiceMock<> if you want the mock 8 // Don't forget you can use StrictMock<> and NiceMock<> if you want the mock
9 // filters to fail the test or do nothing when an unexpected method is called. 9 // filters to fail the test or do nothing when an unexpected method is called.
10 // http://code.google.com/p/googlemock/wiki/CookBook#Nice_Mocks_and_Strict_Mocks 10 // http://code.google.com/p/googlemock/wiki/CookBook#Nice_Mocks_and_Strict_Mocks
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 public: 95 public:
96 MockVideoDecoder(); 96 MockVideoDecoder();
97 97
98 // VideoDecoder implementation. 98 // VideoDecoder implementation.
99 MOCK_METHOD3(Initialize, void(const scoped_refptr<DemuxerStream>&, 99 MOCK_METHOD3(Initialize, void(const scoped_refptr<DemuxerStream>&,
100 const PipelineStatusCB&, 100 const PipelineStatusCB&,
101 const StatisticsCB&)); 101 const StatisticsCB&));
102 MOCK_METHOD1(Read, void(const ReadCB&)); 102 MOCK_METHOD1(Read, void(const ReadCB&));
103 MOCK_METHOD1(Reset, void(const base::Closure&)); 103 MOCK_METHOD1(Reset, void(const base::Closure&));
104 MOCK_METHOD1(Stop, void(const base::Closure&)); 104 MOCK_METHOD1(Stop, void(const base::Closure&));
105 MOCK_METHOD0(natural_size, const gfx::Size&());
106 MOCK_CONST_METHOD0(HasAlpha, bool()); 105 MOCK_CONST_METHOD0(HasAlpha, bool());
107 106
108 protected: 107 protected:
109 virtual ~MockVideoDecoder(); 108 virtual ~MockVideoDecoder();
110 109
111 private: 110 private:
112 DISALLOW_COPY_AND_ASSIGN(MockVideoDecoder); 111 DISALLOW_COPY_AND_ASSIGN(MockVideoDecoder);
113 }; 112 };
114 113
115 class MockAudioDecoder : public AudioDecoder { 114 class MockAudioDecoder : public AudioDecoder {
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 public: 290 public:
292 MockStatisticsCB(); 291 MockStatisticsCB();
293 ~MockStatisticsCB(); 292 ~MockStatisticsCB();
294 293
295 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); 294 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics));
296 }; 295 };
297 296
298 } // namespace media 297 } // namespace media
299 298
300 #endif // MEDIA_BASE_MOCK_FILTERS_H_ 299 #endif // MEDIA_BASE_MOCK_FILTERS_H_
OLDNEW
« no previous file with comments | « no previous file | media/filters/video_renderer_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698