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

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

Issue 10910293: Add is_encrypted() in VideoDecoderConfig. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 class MockDemuxerStream : public DemuxerStream { 76 class MockDemuxerStream : public DemuxerStream {
77 public: 77 public:
78 MockDemuxerStream(); 78 MockDemuxerStream();
79 79
80 // DemuxerStream implementation. 80 // DemuxerStream implementation.
81 MOCK_METHOD0(type, Type()); 81 MOCK_METHOD0(type, Type());
82 MOCK_METHOD1(Read, void(const ReadCB& read_cb)); 82 MOCK_METHOD1(Read, void(const ReadCB& read_cb));
83 MOCK_METHOD0(audio_decoder_config, const AudioDecoderConfig&()); 83 MOCK_METHOD0(audio_decoder_config, const AudioDecoderConfig&());
84 MOCK_METHOD0(video_decoder_config, const VideoDecoderConfig&()); 84 MOCK_METHOD0(video_decoder_config, const VideoDecoderConfig&());
85 MOCK_METHOD0(is_encrypted, bool());
85 MOCK_METHOD0(EnableBitstreamConverter, void()); 86 MOCK_METHOD0(EnableBitstreamConverter, void());
86 87
87 protected: 88 protected:
88 virtual ~MockDemuxerStream(); 89 virtual ~MockDemuxerStream();
89 90
90 private: 91 private:
91 DISALLOW_COPY_AND_ASSIGN(MockDemuxerStream); 92 DISALLOW_COPY_AND_ASSIGN(MockDemuxerStream);
92 }; 93 };
93 94
94 class MockVideoDecoder : public VideoDecoder { 95 class MockVideoDecoder : public VideoDecoder {
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 public: 285 public:
285 MockStatisticsCB(); 286 MockStatisticsCB();
286 ~MockStatisticsCB(); 287 ~MockStatisticsCB();
287 288
288 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); 289 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics));
289 }; 290 };
290 291
291 } // namespace media 292 } // namespace media
292 293
293 #endif // MEDIA_BASE_MOCK_FILTERS_H_ 294 #endif // MEDIA_BASE_MOCK_FILTERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698