Index: webrtc/video/video_send_stream_tests.cc |
diff --git a/webrtc/video/video_send_stream_tests.cc b/webrtc/video/video_send_stream_tests.cc |
index e24cb41aac3ac07ce895cd33acaaaee45cbf7aca..c8790640f84e1223642caa31dcbe69ba3c74f6e8 100644 |
--- a/webrtc/video/video_send_stream_tests.cc |
+++ b/webrtc/video/video_send_stream_tests.cc |
@@ -263,6 +263,9 @@ TEST_F(VideoSendStreamTest, SupportsVideoRotation) { |
Action OnSendRtp(const uint8_t* packet, size_t length) override { |
RTPHeader header; |
EXPECT_TRUE(parser_->Parse(packet, length, &header)); |
+ // Wait for last packet of the frame. |
+ if (!header.markerBit) |
+ return SEND_PACKET; |
EXPECT_TRUE(header.extension.hasVideoRotation); |
EXPECT_EQ(kVideoRotation_90, header.extension.videoRotation); |
observation_complete_.Set(); |
@@ -302,6 +305,9 @@ TEST_F(VideoSendStreamTest, SupportsVideoContentType) { |
Action OnSendRtp(const uint8_t* packet, size_t length) override { |
RTPHeader header; |
EXPECT_TRUE(parser_->Parse(packet, length, &header)); |
+ // Wait for last packet of the frame. |
+ if (!header.markerBit) |
+ return SEND_PACKET; |
EXPECT_TRUE(header.extension.hasVideoContentType); |
EXPECT_EQ(VideoContentType::SCREENSHARE, |
header.extension.videoContentType); |