diff options
author | Lei Zhang <thestig@chromium.org> | 2017-12-11 22:12:08 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-12-11 22:12:08 +0000 |
commit | 07401bae6d9f95911b144e6fabb42f19e40def49 (patch) | |
tree | 4c7aa56beadf3bc1540ecad781e62ec8b84be4e0 /core/fxcodec | |
parent | 4412f3d87441c135ef56420f18d9229fbe247c3e (diff) | |
download | pdfium-07401bae6d9f95911b144e6fabb42f19e40def49.tar.xz |
Remove default arguments to CPDF_StreamAcc::LoadAllData().
Add LoadAllDataFiltered() and LoadAllDataRaw() and update callers.
Change-Id: I9b80ee34a358db204968acdc8b1adc9db0b6b83f
Reviewed-on: https://pdfium-review.googlesource.com/20810
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fxcodec')
-rw-r--r-- | core/fxcodec/jbig2/JBig2_BitStream_unittest.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/fxcodec/jbig2/JBig2_BitStream_unittest.cpp b/core/fxcodec/jbig2/JBig2_BitStream_unittest.cpp index 7b91eff982..b66d8b0651 100644 --- a/core/fxcodec/jbig2/JBig2_BitStream_unittest.cpp +++ b/core/fxcodec/jbig2/JBig2_BitStream_unittest.cpp @@ -17,7 +17,7 @@ TEST(JBig2_BitStream, ReadNBits) { auto in_stream = pdfium::MakeUnique<CPDF_Stream>(std::move(data), 1, nullptr); auto acc = pdfium::MakeRetain<CPDF_StreamAcc>(in_stream.get()); - acc->LoadAllData(); + acc->LoadAllDataFiltered(); CJBig2_BitStream stream(acc); @@ -42,7 +42,7 @@ TEST(JBig2_BitStream, ReadNBitsLargerThenData) { auto in_stream = pdfium::MakeUnique<CPDF_Stream>(std::move(data), 1, nullptr); auto acc = pdfium::MakeRetain<CPDF_StreamAcc>(in_stream.get()); - acc->LoadAllData(); + acc->LoadAllDataFiltered(); CJBig2_BitStream stream(acc); @@ -54,7 +54,7 @@ TEST(JBig2_BitStream, ReadNBitsLargerThenData) { TEST(JBig2_BitStream, ReadNBitsNullStream) { auto in_stream = pdfium::MakeUnique<CPDF_Stream>(nullptr, 0, nullptr); auto acc = pdfium::MakeRetain<CPDF_StreamAcc>(in_stream.get()); - acc->LoadAllData(); + acc->LoadAllDataFiltered(); CJBig2_BitStream stream(acc); @@ -70,7 +70,7 @@ TEST(JBig2_BitStream, ReadNBitsEmptyStream) { auto in_stream = pdfium::MakeUnique<CPDF_Stream>(std::move(data), 0, nullptr); auto acc = pdfium::MakeRetain<CPDF_StreamAcc>(in_stream.get()); - acc->LoadAllData(); + acc->LoadAllDataFiltered(); CJBig2_BitStream stream(acc); @@ -87,7 +87,7 @@ TEST(JBig2_BitStream, ReadNBitsOutOfBounds) { auto in_stream = pdfium::MakeUnique<CPDF_Stream>(std::move(data), 1, nullptr); auto acc = pdfium::MakeRetain<CPDF_StreamAcc>(in_stream.get()); - acc->LoadAllData(); + acc->LoadAllDataFiltered(); CJBig2_BitStream stream(acc); @@ -108,7 +108,7 @@ TEST(JBig2_BitStream, ReadNBitsWhereNIs36) { auto in_stream = pdfium::MakeUnique<CPDF_Stream>(std::move(data), 5, nullptr); auto acc = pdfium::MakeRetain<CPDF_StreamAcc>(in_stream.get()); - acc->LoadAllData(); + acc->LoadAllDataFiltered(); CJBig2_BitStream stream(acc); |