Move size() method to EncodedImage base class

Deleted from subclass video_coding::EncodedFrame. Also delete Length
and SetLength methods on the intermediate class
video_coding::VCMEncodedFrame.

Bug: webrtc:9378
Change-Id: I3c90b14735f622f50b2f403f79072e22fc025d11
Reviewed-on: https://webrtc-review.googlesource.com/c/112131
Reviewed-by: Philip Eliasson <philipel@webrtc.org>
Reviewed-by: Erik Språng <sprang@webrtc.org>
Commit-Queue: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25838}
This commit is contained in:
Niels Möller
2018-11-28 16:31:29 +01:00
committed by Commit Bot
parent 2f25ade901
commit f0eee0087f
11 changed files with 20 additions and 22 deletions

View File

@ -283,7 +283,7 @@ class TestBasicJitterBuffer : public ::testing::TestWithParam<std::string>,
i += 4;
}
EXPECT_EQ(size, frame_out->Length());
EXPECT_EQ(size, frame_out->size());
int count = 3;
for (; i < size; i++) {
if (outData[i] == 0 && outData[i + 1] == 0 && outData[i + 2] == 0x80) {