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

Issue 2488403004: Add fpdfppo_embeddertest.cpp. (Closed)

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

Description

Add fpdfppo_embeddertest.cpp. The lack of coverage of the fpdfppo APIs was noticed while trying to diagnose another issue. Adding basic calls to these APIs then kicked out an assert in XFA, where duplicate global CFXA_TimeZoneProviders were not expected. These are cheap to create except for the global C RTL tzset() call, so keep track of that and make these on demand. Committed: https://pdfium.googlesource.com/pdfium/+/211d4edbe2f71ca62c76f36ce25090342c58e43c

Patch Set 1 #

Total comments: 11

Patch Set 2 : beefier #

Patch Set 3 : Implement suggestions #

Total comments: 5

Patch Set 4 : One last suggestion #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -65 lines) Patch
M BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A fpdfsdk/fpdfppo_embeddertest.cpp View 1 2 3 1 chunk +92 lines, -0 lines 0 comments Download
M xfa/fgas/localization/fgas_locale.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M xfa/fgas/localization/fgas_locale.cpp View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M xfa/fxfa/app/xfa_ffapp.cpp View 1 chunk +1 line, -4 lines 0 comments Download
M xfa/fxfa/fm2js/xfa_fm2jscontext.cpp View 1 2 2 chunks +14 lines, -14 lines 0 comments Download
M xfa/fxfa/parser/xfa_locale.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fxfa/parser/xfa_locale.cpp View 1 2 2 chunks +6 lines, -4 lines 0 comments Download
M xfa/fxfa/parser/xfa_localemgr.h View 1 2 1 chunk +1 line, -6 lines 0 comments Download
M xfa/fxfa/parser/xfa_localemgr.cpp View 1 2 3 chunks +13 lines, -31 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 21 (12 generated)
Tom Sepez
Lei, ready for review. Presumably a consequence of some of the XFA refactoring, but Dan's ...
4 years, 1 month ago (2016-11-11 22:15:42 UTC) #4
Tom Sepez
https://codereview.chromium.org/2488403004/diff/1/xfa/fxfa/parser/xfa_localemgr.cpp File xfa/fxfa/parser/xfa_localemgr.cpp (left): https://codereview.chromium.org/2488403004/diff/1/xfa/fxfa/parser/xfa_localemgr.cpp#oldcode1252 xfa/fxfa/parser/xfa_localemgr.cpp:1252: ASSERT(!g_pProvider); This is the assert that trips when trying ...
4 years, 1 month ago (2016-11-11 22:19:50 UTC) #5
Lei Zhang
lgtm with a bunch of suggestions. https://codereview.chromium.org/2488403004/diff/1/fpdfsdk/fpdfppo_embeddertest.cpp File fpdfsdk/fpdfppo_embeddertest.cpp (right): https://codereview.chromium.org/2488403004/diff/1/fpdfsdk/fpdfppo_embeddertest.cpp#newcode30 fpdfsdk/fpdfppo_embeddertest.cpp:30: FPDF_ImportPages(output_doc, document(), "0", ...
4 years, 1 month ago (2016-11-11 23:56:48 UTC) #12
Tom Sepez
Ok, ready for another quick look, having implemented suggestions plus a bunch of my own. ...
4 years, 1 month ago (2016-11-12 00:35:46 UTC) #13
Lei Zhang
still lgtm https://codereview.chromium.org/2488403004/diff/40001/fpdfsdk/fpdfppo_embeddertest.cpp File fpdfsdk/fpdfppo_embeddertest.cpp (right): https://codereview.chromium.org/2488403004/diff/40001/fpdfsdk/fpdfppo_embeddertest.cpp#newcode78 fpdfsdk/fpdfppo_embeddertest.cpp:78: EXPECT_TRUE(OpenDocument("viewer_ref.pdf")); Maybe add another test with a ...
4 years, 1 month ago (2016-11-12 00:44:07 UTC) #14
Tom Sepez
https://codereview.chromium.org/2488403004/diff/40001/fpdfsdk/fpdfppo_embeddertest.cpp File fpdfsdk/fpdfppo_embeddertest.cpp (right): https://codereview.chromium.org/2488403004/diff/40001/fpdfsdk/fpdfppo_embeddertest.cpp#newcode78 fpdfsdk/fpdfppo_embeddertest.cpp:78: EXPECT_TRUE(OpenDocument("viewer_ref.pdf")); On 2016/11/12 00:44:07, Lei Zhang (slow) wrote: > ...
4 years, 1 month ago (2016-11-12 00:50:10 UTC) #15
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/2488403004/60001
4 years, 1 month ago (2016-11-12 00:50:54 UTC) #18
Lei Zhang
https://codereview.chromium.org/2488403004/diff/40001/fpdfsdk/fpdfppo_embeddertest.cpp File fpdfsdk/fpdfppo_embeddertest.cpp (right): https://codereview.chromium.org/2488403004/diff/40001/fpdfsdk/fpdfppo_embeddertest.cpp#newcode86 fpdfsdk/fpdfppo_embeddertest.cpp:86: EXPECT_TRUE(FPDF_ImportPages(output_doc, document(), "1,1,1,1", 0)); On 2016/11/12 00:50:09, Tom Sepez ...
4 years, 1 month ago (2016-11-12 00:57:45 UTC) #19
commit-bot: I haz the power
4 years, 1 month ago (2016-11-12 01:23:52 UTC) #21
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://pdfium.googlesource.com/pdfium/+/211d4edbe2f71ca62c76f36ce25090342c58...

Powered by Google App Engine
This is Rietveld 408576698