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

Side by Side Diff: components/test_runner/renderer/mock_video_capturer_source.h

Issue 1371373002: Extend components/test_runner's generated WebMediaStream to have a ChromeMock VideoTrack and Source (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698