Delete Start and Stop methods from TestVideoCapturer.

Preparation for replacing use of TestVideoCapturer as an interface,
instead using VideoSourceInterface.

Methods kept as non-virtual on the subclass FrameGeneratorCapturer,
but it's changed to be started on creation.

Bug: webrtc:6353
Change-Id: Iae1c9a0ee55d730d4992204f62227ef2f057d58e
Reviewed-on: https://webrtc-review.googlesource.com/c/114425
Reviewed-by: Sebastian Jansson <srte@webrtc.org>
Reviewed-by: Erik Språng <sprang@webrtc.org>
Reviewed-by: Steve Anton <steveanton@webrtc.org>
Reviewed-by: Per Kjellander <perkj@webrtc.org>
Commit-Queue: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#26037}
This commit is contained in:
Niels Möller
2018-12-14 13:35:32 +01:00
committed by Commit Bot
parent 41f3a43c74
commit 8eeccbe6a6
16 changed files with 5 additions and 66 deletions

View File

@ -49,12 +49,10 @@ class FrameGeneratorCapturerVideoTrackSource : public VideoTrackSource {
~FrameGeneratorCapturerVideoTrackSource() = default;
void Start() {
video_capturer_->Start();
SetState(kLive);
}
void Stop() {
video_capturer_->Stop();
SetState(kMuted);
}