| OLD | NEW |
| 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_SOURCE_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_VIDEO_SOURCE_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_VIDEO_SOURCE_H_ | 6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_VIDEO_SOURCE_H_ |
| 7 | 7 |
| 8 #include "content/renderer/media/media_stream_video_source.h" | 8 #include "content/renderer/media/media_stream_video_source.h" |
| 9 | 9 |
| 10 #include "base/macros.h" |
| 10 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
| 11 | 12 |
| 12 namespace content { | 13 namespace content { |
| 13 | 14 |
| 14 class MockMediaStreamVideoSource : public MediaStreamVideoSource { | 15 class MockMediaStreamVideoSource : public MediaStreamVideoSource { |
| 15 public: | 16 public: |
| 16 explicit MockMediaStreamVideoSource(bool manual_get_supported_formats); | 17 explicit MockMediaStreamVideoSource(bool manual_get_supported_formats); |
| 17 virtual ~MockMediaStreamVideoSource(); | 18 virtual ~MockMediaStreamVideoSource(); |
| 18 | 19 |
| 19 MOCK_METHOD1(DoSetMutedState, void(bool muted_state)); | 20 MOCK_METHOD1(DoSetMutedState, void(bool muted_state)); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 bool attempted_to_start_; | 73 bool attempted_to_start_; |
| 73 VideoCaptureDeviceFormatsCB formats_callback_; | 74 VideoCaptureDeviceFormatsCB formats_callback_; |
| 74 VideoCaptureDeliverFrameCB frame_callback_; | 75 VideoCaptureDeliverFrameCB frame_callback_; |
| 75 | 76 |
| 76 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamVideoSource); | 77 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamVideoSource); |
| 77 }; | 78 }; |
| 78 | 79 |
| 79 } // namespace content | 80 } // namespace content |
| 80 | 81 |
| 81 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_VIDEO_SOURCE_H_ | 82 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_VIDEO_SOURCE_H_ |
| OLD | NEW |