| Index: webrtc/api/test/fakevideotracksource.h
|
| diff --git a/webrtc/api/test/fakevideotracksource.h b/webrtc/api/test/fakevideotracksource.h
|
| index 1cb264b736db4aea4f2fa0738dc0c7b0dfb9db57..0638a1f16c9dd6bcd566192c612e8a1cd7096568 100644
|
| --- a/webrtc/api/test/fakevideotracksource.h
|
| +++ b/webrtc/api/test/fakevideotracksource.h
|
| @@ -19,22 +19,29 @@ namespace webrtc {
|
|
|
| class FakeVideoTrackSource : public VideoTrackSource {
|
| public:
|
| + static rtc::scoped_refptr<FakeVideoTrackSource> Create(bool is_screencast) {
|
| + return new rtc::RefCountedObject<FakeVideoTrackSource>(is_screencast);
|
| + }
|
| +
|
| static rtc::scoped_refptr<FakeVideoTrackSource> Create() {
|
| - return new rtc::RefCountedObject<FakeVideoTrackSource>();
|
| + return Create(false);
|
| }
|
|
|
| cricket::FakeVideoCapturer* fake_video_capturer() {
|
| return &fake_video_capturer_;
|
| }
|
|
|
| + bool is_screencast() const override { return is_screencast_; }
|
| +
|
| protected:
|
| - FakeVideoTrackSource()
|
| - : VideoTrackSource(&fake_video_capturer_,
|
| - false /* remote */) {}
|
| + explicit FakeVideoTrackSource(bool is_screencast)
|
| + : VideoTrackSource(&fake_video_capturer_, false /* remote */),
|
| + is_screencast_(is_screencast) {}
|
| virtual ~FakeVideoTrackSource() {}
|
|
|
| private:
|
| cricket::FakeVideoCapturer fake_video_capturer_;
|
| + const bool is_screencast_;
|
| };
|
|
|
| } // namespace webrtc
|
|
|