Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1036)

Issue 2517513003: Add unit test for CXFA_FileRead. (Closed)

Created:
4 years, 1 month ago by Tom Sepez
Modified:
4 years, 1 month ago
Reviewers:
dsinclair, npm
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Add unit test for CXFA_FileRead. The FileRead's return convention is being modified at https://codereview.chromium.org/2430743003/, so first provide a test of the old behaviour. Fix some issues with null dictionaries as provided by the CPDF_Stream default ctor along the way. Committed: https://pdfium.googlesource.com/pdfium/+/430ab8363e77c48b2c2435af4d289f85e2be1b96

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -30 lines) Patch
M BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M core/fpdfapi/edit/fpdf_edit_create.cpp View 1 chunk +16 lines, -18 lines 0 comments Download
M core/fpdfapi/parser/cpdf_stream.h View 1 chunk +1 line, -0 lines 0 comments Download
M core/fpdfapi/parser/cpdf_stream.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M core/fpdfapi/parser/cpdf_stream_acc.cpp View 2 chunks +8 lines, -12 lines 0 comments Download
A xfa/fxfa/app/xfa_ffapp_unittest.cpp View 1 chunk +86 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (10 generated)
Tom Sepez
Dan, ready for review.
4 years, 1 month ago (2016-11-18 21:53:59 UTC) #5
Tom Sepez
Or npm, if you get to it first.
4 years, 1 month ago (2016-11-18 22:01:29 UTC) #7
npm
lgtm What happens when we try to ReadBlock something longer than the stream length?
4 years, 1 month ago (2016-11-18 22:37:28 UTC) #11
Tom Sepez
On 2016/11/18 22:37:28, npm wrote: > lgtm > What happens when we try to ReadBlock ...
4 years, 1 month ago (2016-11-18 22:47:56 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2517513003/1
4 years, 1 month ago (2016-11-18 22:48:06 UTC) #14
commit-bot: I haz the power
4 years, 1 month ago (2016-11-18 22:48:24 UTC) #16
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://pdfium.googlesource.com/pdfium/+/430ab8363e77c48b2c2435af4d289f85e2be...

Powered by Google App Engine
This is Rietveld 408576698