Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: webrtc/api/mediastream_unittest.cc

Issue 1790633002: Propagate MediaStreamSource state to video tracks the same way as audio. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@refactor_track
Patch Set: Fix bug with wrong enum values. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/api/java/src/org/webrtc/MediaStreamTrack.java ('k') | webrtc/api/mediastreaminterface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/mediastream_unittest.cc
diff --git a/webrtc/api/mediastream_unittest.cc b/webrtc/api/mediastream_unittest.cc
index f017466ea227622b0de4a15e9f0f1a9232064e93..7d9c60de65117ff975b816ed33f1d2ea7d94183a 100644
--- a/webrtc/api/mediastream_unittest.cc
+++ b/webrtc/api/mediastream_unittest.cc
@@ -60,12 +60,12 @@ class MediaStreamTest: public testing::Test {
video_track_ =
VideoTrack::Create(kVideoTrackId, FakeVideoTrackSource::Create());
ASSERT_TRUE(video_track_.get() != NULL);
- EXPECT_EQ(MediaStreamTrackInterface::kInitializing, video_track_->state());
+ EXPECT_EQ(MediaStreamTrackInterface::kLive, video_track_->state());
audio_track_ = AudioTrack::Create(kAudioTrackId, NULL);
ASSERT_TRUE(audio_track_.get() != NULL);
- EXPECT_EQ(MediaStreamTrackInterface::kInitializing, audio_track_->state());
+ EXPECT_EQ(MediaStreamTrackInterface::kLive, audio_track_->state());
EXPECT_TRUE(stream_->AddTrack(video_track_));
EXPECT_FALSE(stream_->AddTrack(video_track_));
@@ -83,8 +83,8 @@ class MediaStreamTest: public testing::Test {
EXPECT_CALL(observer, OnChanged())
.Times(Exactly(1));
- track->set_state(MediaStreamTrackInterface::kLive);
- EXPECT_EQ(MediaStreamTrackInterface::kLive, track->state());
+ track->set_state(MediaStreamTrackInterface::kEnded);
+ EXPECT_EQ(MediaStreamTrackInterface::kEnded, track->state());
}
scoped_refptr<MediaStreamInterface> stream_;
« no previous file with comments | « webrtc/api/java/src/org/webrtc/MediaStreamTrack.java ('k') | webrtc/api/mediastreaminterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698