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

Unified Diff: content/renderer/media/mock_media_stream_video_source.h

Issue 366243003: VideoTrackAdapter: Add passing frames monitor, notify MSVCS -> MSVTrack(s) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: grunell@ comments and added a UT with 1 source muted pinging two tracks. Created 6 years, 5 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
Index: content/renderer/media/mock_media_stream_video_source.h
diff --git a/content/renderer/media/mock_media_stream_video_source.h b/content/renderer/media/mock_media_stream_video_source.h
index ad7463b6d4c74e516ecd8684ca002da2d9af2836..0786798789c042fa3f3d6ed405f4a9676bdc0e06 100644
--- a/content/renderer/media/mock_media_stream_video_source.h
+++ b/content/renderer/media/mock_media_stream_video_source.h
@@ -7,6 +7,8 @@
#include "content/renderer/media/media_stream_video_source.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
namespace content {
class MockMediaStreamVideoSource : public MediaStreamVideoSource {
@@ -14,6 +16,8 @@ class MockMediaStreamVideoSource : public MediaStreamVideoSource {
explicit MockMediaStreamVideoSource(bool manual_get_supported_formats);
virtual ~MockMediaStreamVideoSource();
+ MOCK_METHOD1(DoSetMutedState, void(bool muted_state));
+
// Simulate that the underlying source start successfully.
void StartMockedSource();
@@ -39,6 +43,11 @@ class MockMediaStreamVideoSource : public MediaStreamVideoSource {
int max_requested_height() const { return max_requested_height_; }
int max_requested_width() const { return max_requested_width_; }
+ void SetMutedState(bool muted_state) {
+ MediaStreamVideoSource::SetMutedState(muted_state);
+ DoSetMutedState(muted_state);
+ }
+
protected:
void DeliverVideoFrameOnIO(const scoped_refptr<media::VideoFrame>& frame,
media::VideoCaptureFormat format,

Powered by Google App Engine
This is Rietveld 408576698