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

Unified Diff: webrtc/api/rtpsenderreceiver_unittest.cc

Issue 1758223002: Change webrtc::VideoSourceInterface to inherit rtc::VideoSourceInterface. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/api/videosource.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/rtpsenderreceiver_unittest.cc
diff --git a/webrtc/api/rtpsenderreceiver_unittest.cc b/webrtc/api/rtpsenderreceiver_unittest.cc
index 60960fb5f043addb2ef32df4388e412fb6580460..ca88a3bc72eff274490540de2c05cd23883568a6 100644
--- a/webrtc/api/rtpsenderreceiver_unittest.cc
+++ b/webrtc/api/rtpsenderreceiver_unittest.cc
@@ -83,16 +83,17 @@ class FakeVideoSource : public Notifier<VideoSourceInterface> {
static rtc::scoped_refptr<FakeVideoSource> Create(bool remote) {
return new rtc::RefCountedObject<FakeVideoSource>(remote);
}
- virtual cricket::VideoCapturer* GetVideoCapturer() { return &fake_capturer_; }
- virtual void Stop() {}
- virtual void Restart() {}
- virtual void AddSink(rtc::VideoSinkInterface<cricket::VideoFrame>* output) {}
- virtual void RemoveSink(
- rtc::VideoSinkInterface<cricket::VideoFrame>* output) {}
- virtual SourceState state() const { return state_; }
- virtual bool remote() const { return remote_; }
- virtual const cricket::VideoOptions* options() const { return &options_; }
- virtual cricket::VideoRenderer* FrameInput() { return NULL; }
+ cricket::VideoCapturer* GetVideoCapturer() { return &fake_capturer_; }
+ void Stop() override {}
+ void Restart() override {}
+ void AddOrUpdateSink(
+ rtc::VideoSinkInterface<cricket::VideoFrame>* sink,
+ const rtc::VideoSinkWants& wants) override {}
+ void RemoveSink(
+ rtc::VideoSinkInterface<cricket::VideoFrame>* output) override {}
+ SourceState state() const override { return state_; }
+ bool remote() const override { return remote_; }
+ const cricket::VideoOptions* options() const override { return &options_; }
protected:
explicit FakeVideoSource(bool remote) : state_(kLive), remote_(remote) {}
« no previous file with comments | « no previous file | webrtc/api/videosource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698