Index: webrtc/test/frame_generator_unittest.cc |
diff --git a/webrtc/test/frame_generator_unittest.cc b/webrtc/test/frame_generator_unittest.cc |
index 6376e2c221c9a6c38e7d9c33a1971a7851de1cf7..3d897f8b4969b5018449f13161f767f79fb93d30 100644 |
--- a/webrtc/test/frame_generator_unittest.cc |
+++ b/webrtc/test/frame_generator_unittest.cc |
@@ -58,17 +58,17 @@ class FrameGeneratorTest : public ::testing::Test { |
void CheckFrameAndMutate(VideoFrame* frame, uint8_t y, uint8_t u, uint8_t v) { |
// Check that frame is valid, has the correct color and timestamp are clean. |
ASSERT_NE(nullptr, frame); |
- uint8_t* buffer; |
+ const uint8_t* buffer; |
ASSERT_EQ(y_size, frame->allocated_size(PlaneType::kYPlane)); |
- buffer = frame->buffer(PlaneType::kYPlane); |
+ buffer = frame->video_frame_buffer()->DataY(); |
for (int i = 0; i < y_size; ++i) |
ASSERT_EQ(y, buffer[i]); |
ASSERT_EQ(uv_size, frame->allocated_size(PlaneType::kUPlane)); |
- buffer = frame->buffer(PlaneType::kUPlane); |
+ buffer = frame->video_frame_buffer()->DataU(); |
for (int i = 0; i < uv_size; ++i) |
ASSERT_EQ(u, buffer[i]); |
ASSERT_EQ(uv_size, frame->allocated_size(PlaneType::kVPlane)); |
- buffer = frame->buffer(PlaneType::kVPlane); |
+ buffer = frame->video_frame_buffer()->DataV(); |
for (int i = 0; i < uv_size; ++i) |
ASSERT_EQ(v, buffer[i]); |
EXPECT_EQ(0, frame->ntp_time_ms()); |