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

Unified Diff: media/base/mock_filters.h

Issue 165180: Merge 22087 - Missing buffered attribute for <video>/<audio>... (Closed) Base URL: svn://chrome-svn/chrome/branches/195/src/
Patch Set: Created 11 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/base/pipeline_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/mock_filters.h
===================================================================
--- media/base/mock_filters.h (revision 22821)
+++ media/base/mock_filters.h (working copy)
@@ -342,6 +342,18 @@
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_
Property changes on: media\base\mock_filters.h
___________________________________________________________________
Modified: svn:mergeinfo
Merged /trunk/src/media/base/mock_filters.h:r22087
« no previous file with comments | « no previous file | media/base/pipeline_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698