Index: webrtc/pc/mediacontroller.h |
diff --git a/webrtc/pc/mediacontroller.h b/webrtc/pc/mediacontroller.h |
index 85617aff0acba778dc5efa2ef0dc395a1986f290..f5a9034918b1df58ab55115a11d91d10168da5b1 100644 |
--- a/webrtc/pc/mediacontroller.h |
+++ b/webrtc/pc/mediacontroller.h |
@@ -23,10 +23,12 @@ class Call; |
class VoiceEngine; |
class RtcEventLog; |
-// The MediaController currently owns shared state between media channels, but |
-// in the future will create and own RtpSenders and RtpReceivers. |
+// The MediaController currently owns shared state between media channels. |
+// Abstract interface is defined here such that it can be faked/mocked for |
+// tests, but no other real reason. |
class MediaControllerInterface { |
public: |
+ // Will never return nullptr. |
static MediaControllerInterface* Create( |
const cricket::MediaConfig& config, |
rtc::Thread* worker_thread, |