| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 class FakeWebRtcVideoCaptureModule : public webrtc::VideoCaptureModule { | 23 class FakeWebRtcVideoCaptureModule : public webrtc::VideoCaptureModule { |
| 24 public: | 24 public: |
| 25 FakeWebRtcVideoCaptureModule(FakeWebRtcVcmFactory* factory, int32_t id) | 25 FakeWebRtcVideoCaptureModule(FakeWebRtcVcmFactory* factory, int32_t id) |
| 26 : factory_(factory), | 26 : factory_(factory), |
| 27 id_(id), | 27 id_(id), |
| 28 callback_(NULL), | 28 callback_(NULL), |
| 29 running_(false), | 29 running_(false), |
| 30 delay_(0) { | 30 delay_(0) { |
| 31 } | 31 } |
| 32 int64_t TimeUntilNextProcess() override { return 0; } | 32 int64_t TimeUntilNextProcess() override { return 0; } |
| 33 int32_t Process() override { return 0; } | 33 void Process() override {} |
| 34 void RegisterCaptureDataCallback( | 34 void RegisterCaptureDataCallback( |
| 35 webrtc::VideoCaptureDataCallback& callback) override { | 35 webrtc::VideoCaptureDataCallback& callback) override { |
| 36 callback_ = &callback; | 36 callback_ = &callback; |
| 37 } | 37 } |
| 38 void DeRegisterCaptureDataCallback() override { callback_ = NULL; } | 38 void DeRegisterCaptureDataCallback() override { callback_ = NULL; } |
| 39 void RegisterCaptureCallback( | 39 void RegisterCaptureCallback( |
| 40 webrtc::VideoCaptureFeedBack& callback) override { | 40 webrtc::VideoCaptureFeedBack& callback) override { |
| 41 // Not implemented. | 41 // Not implemented. |
| 42 } | 42 } |
| 43 void DeRegisterCaptureCallback() override { | 43 void DeRegisterCaptureCallback() override { |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 113 |
| 114 FakeWebRtcVcmFactory* factory_; | 114 FakeWebRtcVcmFactory* factory_; |
| 115 int id_; | 115 int id_; |
| 116 webrtc::VideoCaptureDataCallback* callback_; | 116 webrtc::VideoCaptureDataCallback* callback_; |
| 117 bool running_; | 117 bool running_; |
| 118 webrtc::VideoCaptureCapability cap_; | 118 webrtc::VideoCaptureCapability cap_; |
| 119 int delay_; | 119 int delay_; |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVIDEOCAPTUREMODULE_H_ | 122 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVIDEOCAPTUREMODULE_H_ |
| OLD | NEW |