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 |
11 #ifndef WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVIDEOCAPTUREMODULE_H_ | 11 #ifndef WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVIDEOCAPTUREMODULE_H_ |
12 #define WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVIDEOCAPTUREMODULE_H_ | 12 #define WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVIDEOCAPTUREMODULE_H_ |
13 | 13 |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "webrtc/media/base/testutils.h" | 16 #include "webrtc/media/base/testutils.h" |
17 #include "webrtc/media/engine/fakewebrtcdeviceinfo.h" | |
18 #include "webrtc/media/engine/webrtcvideocapturer.h" | 17 #include "webrtc/media/engine/webrtcvideocapturer.h" |
19 | 18 |
20 class FakeWebRtcVcmFactory; | 19 class FakeWebRtcVcmFactory; |
21 | 20 |
22 // Fake class for mocking out webrtc::VideoCaptureModule. | 21 // Fake class for mocking out webrtc::VideoCaptureModule. |
23 class FakeWebRtcVideoCaptureModule : public webrtc::VideoCaptureModule { | 22 class FakeWebRtcVideoCaptureModule : public webrtc::VideoCaptureModule { |
24 public: | 23 public: |
25 FakeWebRtcVideoCaptureModule(FakeWebRtcVcmFactory* factory, int32_t id) | 24 FakeWebRtcVideoCaptureModule(FakeWebRtcVcmFactory* factory, int32_t id) |
26 : factory_(factory), | 25 : factory_(factory), |
27 id_(id), | 26 id_(id), |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 | 112 |
114 FakeWebRtcVcmFactory* factory_; | 113 FakeWebRtcVcmFactory* factory_; |
115 int id_; | 114 int id_; |
116 webrtc::VideoCaptureDataCallback* callback_; | 115 webrtc::VideoCaptureDataCallback* callback_; |
117 bool running_; | 116 bool running_; |
118 webrtc::VideoCaptureCapability cap_; | 117 webrtc::VideoCaptureCapability cap_; |
119 int delay_; | 118 int delay_; |
120 }; | 119 }; |
121 | 120 |
122 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVIDEOCAPTUREMODULE_H_ | 121 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVIDEOCAPTUREMODULE_H_ |
OLD | NEW |