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

Side by Side Diff: media/filters/decoder_base_unittest.cc

Issue 5527003: Rename MediaFilter and MediaFilterCollection to Filter and FilterCollection, respectively. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: Missed a few more Created 10 years 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 | « media/filters/decoder_base.h ('k') | media/filters/ffmpeg_demuxer.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <vector> 5 #include <vector>
6 6
7 #include "media/base/mock_filters.h" 7 #include "media/base/mock_filters.h"
8 #include "media/base/mock_task.h" 8 #include "media/base/mock_task.h"
9 #include "media/filters/decoder_base.h" 9 #include "media/filters/decoder_base.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
(...skipping 21 matching lines...) Expand all
32 public: 32 public:
33 MockBuffer() {} 33 MockBuffer() {}
34 virtual ~MockBuffer() {} 34 virtual ~MockBuffer() {}
35 MOCK_CONST_METHOD0(GetData, const uint8*()); 35 MOCK_CONST_METHOD0(GetData, const uint8*());
36 MOCK_CONST_METHOD0(GetDataSize, size_t()); 36 MOCK_CONST_METHOD0(GetDataSize, size_t());
37 37
38 private: 38 private:
39 DISALLOW_COPY_AND_ASSIGN(MockBuffer); 39 DISALLOW_COPY_AND_ASSIGN(MockBuffer);
40 }; 40 };
41 41
42 class MockDecoder : public media::MediaFilter { 42 class MockDecoder : public media::Filter {
43 public: 43 public:
44 typedef Callback1<scoped_refptr<MockDecoderOutput> >::Type 44 typedef Callback1<scoped_refptr<MockDecoderOutput> >::Type
45 ConsumeAudioSamplesCallback; 45 ConsumeAudioSamplesCallback;
46 void set_consume_audio_samples_callback( 46 void set_consume_audio_samples_callback(
47 ConsumeAudioSamplesCallback* callback) { 47 ConsumeAudioSamplesCallback* callback) {
48 consume_audio_samples_callback_.reset(callback); 48 consume_audio_samples_callback_.reset(callback);
49 } 49 }
50 ConsumeAudioSamplesCallback* consume_audio_samples_callback() { 50 ConsumeAudioSamplesCallback* consume_audio_samples_callback() {
51 return consume_audio_samples_callback_.get(); 51 return consume_audio_samples_callback_.get();
52 } 52 }
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // Stop. 157 // Stop.
158 EXPECT_CALL(*decoder, DoStop(_)) 158 EXPECT_CALL(*decoder, DoStop(_))
159 .WillOnce(WithArg<0>(InvokeRunnable())); 159 .WillOnce(WithArg<0>(InvokeRunnable()));
160 EXPECT_CALL(callback, OnFilterCallback()); 160 EXPECT_CALL(callback, OnFilterCallback());
161 EXPECT_CALL(callback, OnCallbackDestroyed()); 161 EXPECT_CALL(callback, OnCallbackDestroyed());
162 decoder->Stop(callback.NewCallback()); 162 decoder->Stop(callback.NewCallback());
163 message_loop.RunAllPending(); 163 message_loop.RunAllPending();
164 } 164 }
165 165
166 } // namespace media 166 } // namespace media
OLDNEW
« no previous file with comments | « media/filters/decoder_base.h ('k') | media/filters/ffmpeg_demuxer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698