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

Issue 149356: Wrote gmock-based mock filters and a mock filter factory. (Closed)

Created:
11 years, 5 months ago by scherkus (not reviewing)
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Wrote gmock-based mock filters and a mock filter factory. Next up is actually refactoring tests to use these and not the old_mocks version. The biggest user is the PipelineImpl tests, which I'm currently refactoring anyway hence sending this out for review. BUG=16008 TEST=FFmpegVideoDecoderTest should still pass

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+188 lines, -9 lines) Patch
M media/base/filters.h View 1 chunk +1 line, -1 line 0 comments Download
M media/base/mock_filters.h View 1 chunk +175 lines, -0 lines 2 comments Download
M media/filters/ffmpeg_video_decoder_unittest.cc View 4 chunks +12 lines, -8 lines 1 comment Download

Messages

Total messages: 5 (0 generated)
scherkus (not reviewing)
More gmock goodness
11 years, 5 months ago (2009-07-08 22:01:16 UTC) #1
awong
LGTM http://codereview.chromium.org/149356/diff/1/3 File media/base/mock_filters.h (right): http://codereview.chromium.org/149356/diff/1/3#newcode168 Line 168: class MockFilterFactory : public FilterFactory { Hmm...having ...
11 years, 5 months ago (2009-07-08 22:06:02 UTC) #2
scherkus (not reviewing)
http://codereview.chromium.org/149356/diff/1/3 File media/base/mock_filters.h (right): http://codereview.chromium.org/149356/diff/1/3#newcode168 Line 168: class MockFilterFactory : public FilterFactory { On 2009/07/08 ...
11 years, 5 months ago (2009-07-08 22:14:51 UTC) #3
Alpha Left Google
LGTM except for one minor doubt about making dtor of MockFFmpegDemuxerStream private. http://codereview.chromium.org/149356/diff/1/4 File media/filters/ffmpeg_video_decoder_unittest.cc ...
11 years, 5 months ago (2009-07-08 22:15:05 UTC) #4
scherkus (not reviewing)
11 years, 5 months ago (2009-07-08 22:19:07 UTC) #5
On 2009/07/08 22:15:05, Alpha wrote:
> LGTM except for one minor doubt about making dtor of MockFFmpegDemuxerStream
> private.
> 
> http://codereview.chromium.org/149356/diff/1/4
> File media/filters/ffmpeg_video_decoder_unittest.cc (right):
> 
> http://codereview.chromium.org/149356/diff/1/4#newcode36
> Line 36: virtual ~MockFFmpegDemuxerStream() {}
> you need to make scoped_refptr a friend in order for the dtor to be accessed?

I'm not sure why it doesn't break, but I think having the friend declared in the
base class makes everything work.

Powered by Google App Engine
This is Rietveld 408576698