|
Add RunCallback to invoke a callback parameter in unittests.
In gmock, ::testing::InvokeArgument doesn't support chromium base::Callback. Adding customized templated action RunCallback to support this.
Also added new matchers for base::callback.
BUG=none
TEST=Added unittests to test the new matchers and actions. Updated media_unittests to use the new matchers and actions.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=167309
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+345 lines, -197 lines) |
Patch |
|
A |
media/base/gmock_callback_support.h
|
View
|
1
2
3
4
5
|
1 chunk |
+107 lines, -0 lines |
0 comments
|
Download
|
|
A |
media/base/gmock_callback_support_unittest.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+84 lines, -0 lines |
0 comments
|
Download
|
|
M |
media/base/mock_filters.h
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
|
M |
media/base/pipeline_unittest.cc
|
View
|
1
2
3
4
5
|
19 chunks |
+90 lines, -98 lines |
0 comments
|
Download
|
|
M |
media/filters/audio_renderer_impl_unittest.cc
|
View
|
1
2
3
4
5
|
6 chunks |
+6 lines, -9 lines |
0 comments
|
Download
|
|
M |
media/filters/decrypting_audio_decoder_unittest.cc
|
View
|
1
2
3
4
5
|
12 chunks |
+22 lines, -37 lines |
0 comments
|
Download
|
|
M |
media/filters/decrypting_video_decoder_unittest.cc
|
View
|
1
2
3
4
5
|
12 chunks |
+20 lines, -31 lines |
0 comments
|
Download
|
|
M |
media/filters/ffmpeg_video_decoder_unittest.cc
|
View
|
1
2
3
4
5
|
6 chunks |
+8 lines, -11 lines |
0 comments
|
Download
|
|
M |
media/filters/video_renderer_base_unittest.cc
|
View
|
1
2
3
4
5
|
6 chunks |
+6 lines, -7 lines |
0 comments
|
Download
|
|
M |
media/media.gyp
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 15 (0 generated)
|