Propagate MediaStreamSource state to video tracks the same way as audio.
Also removes unused track states kLive and kFailed.
Since this also required a Video source to exist in all unit tests that create a track, a FakeVideoTrackSource is added and used in tests.
BUG=webrtc:5426
Review URL: https://codereview.webrtc.org/1790633002
Cr-Commit-Position: refs/heads/master@{#12098}
diff --git a/webrtc/api/mediastreaminterface.h b/webrtc/api/mediastreaminterface.h
index 69a50c9..a1ab675 100644
--- a/webrtc/api/mediastreaminterface.h
+++ b/webrtc/api/mediastreaminterface.h
@@ -80,10 +80,8 @@
public NotifierInterface {
public:
enum TrackState {
- kInitializing, // Track is beeing negotiated.
- kLive = 1, // Track alive
- kEnded = 2, // Track have ended
- kFailed = 3, // Track negotiation failed.
+ kLive,
+ kEnded,
};
static const char kAudioKind[];