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

Side by Side Diff: content/renderer/media/mock_media_stream_video_sink.h

Issue 633303002: Replace FINAL and OVERRIDE with their C++11 counterparts in content/renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_VIDEO_SINK_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_VIDEO_SINK_H_
6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_VIDEO_SINK_H_ 6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_VIDEO_SINK_H_
7 7
8 #include "content/public/renderer/media_stream_video_sink.h" 8 #include "content/public/renderer/media_stream_video_sink.h"
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "content/common/media/video_capture.h" 11 #include "content/common/media/video_capture.h"
12 #include "media/base/video_frame.h" 12 #include "media/base/video_frame.h"
13 #include "testing/gmock/include/gmock/gmock.h" 13 #include "testing/gmock/include/gmock/gmock.h"
14 14
15 namespace content { 15 namespace content {
16 16
17 class MockMediaStreamVideoSink : public MediaStreamVideoSink { 17 class MockMediaStreamVideoSink : public MediaStreamVideoSink {
18 public: 18 public:
19 MockMediaStreamVideoSink(); 19 MockMediaStreamVideoSink();
20 virtual ~MockMediaStreamVideoSink(); 20 virtual ~MockMediaStreamVideoSink();
21 21
22 virtual void OnReadyStateChanged( 22 virtual void OnReadyStateChanged(
23 blink::WebMediaStreamSource::ReadyState state) OVERRIDE; 23 blink::WebMediaStreamSource::ReadyState state) override;
24 virtual void OnEnabledChanged(bool enabled) OVERRIDE; 24 virtual void OnEnabledChanged(bool enabled) override;
25 25
26 // Triggered when OnVideoFrame(const scoped_refptr<media::VideoFrame>& frame) 26 // Triggered when OnVideoFrame(const scoped_refptr<media::VideoFrame>& frame)
27 // is called. 27 // is called.
28 MOCK_METHOD0(OnVideoFrame, void()); 28 MOCK_METHOD0(OnVideoFrame, void());
29 29
30 VideoCaptureDeliverFrameCB GetDeliverFrameCB(); 30 VideoCaptureDeliverFrameCB GetDeliverFrameCB();
31 31
32 int number_of_frames() const { return number_of_frames_; } 32 int number_of_frames() const { return number_of_frames_; }
33 media::VideoFrame::Format format() const { return format_; } 33 media::VideoFrame::Format format() const { return format_; }
34 gfx::Size frame_size() const { return frame_size_; } 34 gfx::Size frame_size() const { return frame_size_; }
(...skipping 13 matching lines...) Expand all
48 media::VideoFrame::Format format_; 48 media::VideoFrame::Format format_;
49 blink::WebMediaStreamSource::ReadyState state_; 49 blink::WebMediaStreamSource::ReadyState state_;
50 gfx::Size frame_size_; 50 gfx::Size frame_size_;
51 scoped_refptr<media::VideoFrame> last_frame_; 51 scoped_refptr<media::VideoFrame> last_frame_;
52 base::WeakPtrFactory<MockMediaStreamVideoSink> weak_factory_; 52 base::WeakPtrFactory<MockMediaStreamVideoSink> weak_factory_;
53 }; 53 };
54 54
55 } // namespace content 55 } // namespace content
56 56
57 #endif 57 #endif
OLDNEW
« no previous file with comments | « content/renderer/media/mock_media_stream_registry.h ('k') | content/renderer/media/mock_media_stream_video_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698