| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_VIDEO_SINK_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_VIDEO_SINK_H_ |
| 7 |
| 8 #include "content/public/renderer/media_stream_video_sink.h" |
| 9 |
| 10 namespace content { |
| 11 |
| 12 class MockMediaStreamVideoSink : public MediaStreamVideoSink { |
| 13 public: |
| 14 MockMediaStreamVideoSink(); |
| 15 |
| 16 virtual void OnVideoFrame( |
| 17 const scoped_refptr<media::VideoFrame>& frame) OVERRIDE; |
| 18 virtual void OnReadyStateChanged( |
| 19 blink::WebMediaStreamSource::ReadyState state) OVERRIDE; |
| 20 virtual void OnEnabledChanged(bool enabled) OVERRIDE; |
| 21 |
| 22 int number_of_frames() const { return number_of_frames_; } |
| 23 bool enabled() const { return enabled_; } |
| 24 blink::WebMediaStreamSource::ReadyState state() const { return state_; } |
| 25 |
| 26 private: |
| 27 int number_of_frames_; |
| 28 bool enabled_; |
| 29 blink::WebMediaStreamSource::ReadyState state_; |
| 30 }; |
| 31 |
| 32 } // namespace content |
| 33 |
| 34 #endif |
| OLD | NEW |