| Index: media/base/mock_filters.h
|
| diff --git a/media/base/mock_filters.h b/media/base/mock_filters.h
|
| index 7954aa91cf8927ab2fa7e7b37ea90207cbe38b8d..29ac9d9782eea85a2957a3463e50d2b18ce99726 100644
|
| --- a/media/base/mock_filters.h
|
| +++ b/media/base/mock_filters.h
|
| @@ -342,6 +342,18 @@ ACTION_P2(SetDuration, filter, duration) {
|
| filter->host()->SetDuration(duration);
|
| }
|
|
|
| +// Helper gmock action that calls SetTotalBytes() on behalf of the provided
|
| +// filter.
|
| +ACTION_P2(SetTotalBytes, filter, bytes) {
|
| + filter->host()->SetTotalBytes(bytes);
|
| +}
|
| +
|
| +// Helper gmock action that calls SetBufferedBytes() on behalf of the provided
|
| +// filter.
|
| +ACTION_P2(SetBufferedBytes, filter, bytes) {
|
| + filter->host()->SetBufferedBytes(bytes);
|
| +}
|
| +
|
| } // namespace media
|
|
|
| #endif // MEDIA_BASE_MOCK_FILTERS_H_
|
|
|