OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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 COMPONENTS_TEST_RUNNER_CONTENT_RENDERER_MOCK_VIDEO_CAPTURER_SOURCE_H_ |
| 6 #define COMPONENTS_TEST_RUNNER_CONTENT_RENDERER_MOCK_VIDEO_CAPTURER_SOURCE_H_ |
| 7 |
| 8 #include "content/public/renderer/media_stream_api.h" |
| 9 |
| 10 namespace test_runner { |
| 11 |
| 12 class MockVideoCapturerSource : public media::VideoCapturerSource { |
| 13 public: |
| 14 MockVideoCapturerSource() = default; |
| 15 ~MockVideoCapturerSource() override {} |
| 16 |
| 17 void GetCurrentSupportedFormats( |
| 18 int max_requested_width, |
| 19 int max_requested_height, |
| 20 double max_requested_frame_rate, |
| 21 const VideoCaptureDeviceFormatsCB& callback) override {} |
| 22 void StartCapture( |
| 23 const media::VideoCaptureParams& params, |
| 24 const VideoCaptureDeliverFrameCB& new_frame_callback, |
| 25 const RunningCallback& running_callback) override {} |
| 26 void StopCapture() override {} |
| 27 }; |
| 28 |
| 29 } // namespace test_runner |
| 30 |
| 31 #endif // COMPONENTS_TEST_RUNNER_CONTENT_RENDERER_MOCK_VIDEO_CAPTURER_SOURCE_H_ |
OLD | NEW |