Index: media/base/video_frame_unittest.cc |
diff --git a/media/base/video_frame_unittest.cc b/media/base/video_frame_unittest.cc |
index 05465d9b09dc1ec28751511bf97d205a71635378..243056b3558d5d2fdacee57b6abcee07ffe722f7 100644 |
--- a/media/base/video_frame_unittest.cc |
+++ b/media/base/video_frame_unittest.cc |
@@ -265,8 +265,14 @@ TEST(VideoFrame, TextureNoLongerNeededCallbackAfterTakingAndReleasingMailbox) { |
EXPECT_EQ(sync_point, mailbox_holder->sync_point); |
// Finish using the mailbox_holder and drop our reference. |
+ uint32 previous_sync_point = 0; |
+ sync_point = 1; |
+ EXPECT_EQ(previous_sync_point, frame->SwapReleaseSyncPoint(sync_point)); |
+ // The last sync point will be used. |
+ previous_sync_point = sync_point; |
sync_point = 10; |
- mailbox_holder->sync_point = sync_point; |
+ EXPECT_EQ(previous_sync_point, frame->SwapReleaseSyncPoint(sync_point)); |
+ |
} |
EXPECT_EQ(sync_point, called_sync_point); |
} |