| 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_FAKEWEBRTCDEVICEINFO_H_ | 11 #ifndef WEBRTC_MEDIA_ENGINE_FAKEWEBRTCDEVICEINFO_H_ |
| 12 #define WEBRTC_MEDIA_ENGINE_FAKEWEBRTCDEVICEINFO_H_ | 12 #define WEBRTC_MEDIA_ENGINE_FAKEWEBRTCDEVICEINFO_H_ |
| 13 | 13 |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "webrtc/base/stringutils.h" | |
| 17 #include "webrtc/media/engine/webrtcvideocapturer.h" | 16 #include "webrtc/media/engine/webrtcvideocapturer.h" |
| 17 #include "webrtc/rtc_base/stringutils.h" |
| 18 | 18 |
| 19 // Fake class for mocking out webrtc::VideoCaptureModule::DeviceInfo. | 19 // Fake class for mocking out webrtc::VideoCaptureModule::DeviceInfo. |
| 20 class FakeWebRtcDeviceInfo : public webrtc::VideoCaptureModule::DeviceInfo { | 20 class FakeWebRtcDeviceInfo : public webrtc::VideoCaptureModule::DeviceInfo { |
| 21 public: | 21 public: |
| 22 struct Device { | 22 struct Device { |
| 23 Device(const std::string& n, const std::string& i) : name(n), id(i) {} | 23 Device(const std::string& n, const std::string& i) : name(n), id(i) {} |
| 24 std::string name; | 24 std::string name; |
| 25 std::string id; | 25 std::string id; |
| 26 std::string product; | 26 std::string product; |
| 27 std::vector<webrtc::VideoCaptureCapability> caps; | 27 std::vector<webrtc::VideoCaptureCapability> caps; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 } | 99 } |
| 100 } | 100 } |
| 101 return NULL; | 101 return NULL; |
| 102 } | 102 } |
| 103 | 103 |
| 104 private: | 104 private: |
| 105 std::vector<Device> devices_; | 105 std::vector<Device> devices_; |
| 106 }; | 106 }; |
| 107 | 107 |
| 108 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCDEVICEINFO_H_ | 108 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCDEVICEINFO_H_ |
| OLD | NEW |