Showing the changes to test/decode_encode_test.cpp (1 of 4 files). Show all
Unified · Split
| @@ -20,7 +20,7 @@ static void UpdateHashFromFrame(const SFrameBSInfo& info, SHA_CTX* ctx) { · 19 unmodified lines | |||
| 20 | static void WritePlaneBuffer(BufferedData* buf, const uint8_t* plane, | 20 | static void WritePlaneBuffer(BufferedData* buf, const uint8_t* plane, |
| 21 | int width, int height, int stride) { | 21 | int width, int height, int stride) { |
| 22 | for (int i = 0; i < height; i++) { | 22 | for (int i = 0; i < height; i++) { |
| 23 | if (!buf->Push(plane, width)) { | 23 | if (!buf->PushBack(plane, width)) { |
| 24 | FAIL() << "unable to allocate memory"; | 24 | FAIL() << "unable to allocate memory"; |
| 25 | } | 25 | } |
| 26 | plane += stride; | 26 | plane += stride; |
| @@ -83,7 +83,7 @@ class DecodeEncodeTest : public ::testing::TestWithParam<DecodeEncodeFileParam>, · 56 unmodified lines | |||
| 83 | break; | 83 | break; |
| 84 | } | 84 | } |
| 85 | } | 85 | } |
| 86 | return buf_.Pop(static_cast<uint8_t*>(ptr), len); | 86 | return buf_.PopFront(static_cast<uint8_t*>(ptr), len); |
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | protected: | 89 | protected: |