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 82 matching lines...) Loading... |
110 | 109 |
111 FakeWebRtcVcmFactory* factory_; | 110 FakeWebRtcVcmFactory* factory_; |
112 int id_; | 111 int id_; |
113 webrtc::VideoCaptureDataCallback* callback_; | 112 webrtc::VideoCaptureDataCallback* callback_; |
114 bool running_; | 113 bool running_; |
115 webrtc::VideoCaptureCapability cap_; | 114 webrtc::VideoCaptureCapability cap_; |
116 int delay_; | 115 int delay_; |
117 }; | 116 }; |
118 | 117 |
119 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVIDEOCAPTUREMODULE_H_ | 118 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVIDEOCAPTUREMODULE_H_ |
OLD | NEW |