Index: talk/app/webrtc/fakemediacontroller.h |
diff --git a/talk/media/devices/linuxdevicemanager.h b/talk/app/webrtc/fakemediacontroller.h |
similarity index 69% |
copy from talk/media/devices/linuxdevicemanager.h |
copy to talk/app/webrtc/fakemediacontroller.h |
index 1eb648f395865d71daaaf7a950862ebd60cb6372..4f76b3fc023a0118d682fd9aa3c1e7e0d6f30802 100644 |
--- a/talk/media/devices/linuxdevicemanager.h |
+++ b/talk/app/webrtc/fakemediacontroller.h |
@@ -1,6 +1,6 @@ |
/* |
* libjingle |
- * Copyright 2004 Google Inc. |
+ * Copyright 2015 Google Inc. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions are met: |
@@ -25,31 +25,28 @@ |
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#ifndef TALK_MEDIA_DEVICES_LINUXDEVICEMANAGER_H_ |
-#define TALK_MEDIA_DEVICES_LINUXDEVICEMANAGER_H_ |
+#ifndef TALK_APP_WEBRTC_FAKEMEDIACONTROLLER_H_ |
+#define TALK_APP_WEBRTC_FAKEMEDIACONTROLLER_H_ |
-#include <string> |
-#include <vector> |
- |
-#include "talk/media/devices/devicemanager.h" |
-#include "webrtc/sound/soundsystemfactory.h" |
-#include "webrtc/base/sigslot.h" |
-#include "webrtc/base/stringencode.h" |
+#include "talk/app/webrtc/mediacontroller.h" |
+#include "webrtc/base/checks.h" |
+#include "webrtc/call.h" |
namespace cricket { |
-class LinuxDeviceManager : public DeviceManager { |
+class FakeMediaController : public webrtc::MediaControllerInterface { |
public: |
- LinuxDeviceManager(); |
- virtual ~LinuxDeviceManager(); |
- |
- virtual bool GetVideoCaptureDevices(std::vector<Device>* devs); |
+ explicit FakeMediaController(webrtc::Call* call) : call_(call) { |
+ RTC_DCHECK(nullptr != call_); |
+ } |
+ ~FakeMediaController() override {} |
+ webrtc::Call* call_w() override { return call_; } |
+ void OnPacketSent(const webrtc::SentPacket& sent_packet) { |
+ call_->OnPacketSent(sent_packet); |
+ } |
private: |
- virtual bool GetAudioDevices(bool input, std::vector<Device>* devs); |
- rtc::SoundSystemHandle sound_system_; |
+ webrtc::Call* call_; |
}; |
- |
} // namespace cricket |
- |
-#endif // TALK_MEDIA_DEVICES_LINUXDEVICEMANAGER_H_ |
+#endif // TALK_APP_WEBRTC_FAKEMEDIACONTROLLER_H_ |