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

Issue 2578893004: Gold support in PDFium (Closed)

Created:
4 years ago by stephana
Modified:
3 years, 11 months ago
CC:
pdfium-reviews_googlegroups.com, caryclark
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Gold support in PDFium Extends the PDFium tests to collect images and meta data to be uploaded to Gold. This feature is triggered by adding the --gold_* flags. It extends pdfium_test to output the MD5 hash of the underlying pixel buffer for each page it renders. That output is then processed by test_runner.py to generate the gold meta data. This behavior is modeled after the 'dm' tool in skia. See https://skia.googlesource.com/skia/+/master/dm/DM.cpp#1090 This should not cause any change in the current behavior of the tests, it will be trigger once we update the buildbot recipe. BUG=skia:5973 Review-Url: https://codereview.chromium.org/2578893004 Committed: https://pdfium.googlesource.com/pdfium/+/fa05e97fc4d796bd12e21c32634d9614f8edf607

Patch Set 1 #

Patch Set 2 #

Patch Set 3 #

Patch Set 4 #

Patch Set 5 #

Patch Set 6 : WIP #

Patch Set 7 : Cleanup #

Patch Set 8 : Cleanup and added to DEPS #

Total comments: 4

Patch Set 9 : Added flags to pdfium_test #

Patch Set 10 : Fixed formatting error #

Total comments: 16

Patch Set 11 : Incorporated feedback #

Patch Set 12 : Incorporated feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+262 lines, -34 lines) Patch
M samples/DEPS View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M samples/pdfium_test.cc View 1 2 3 4 5 6 7 8 9 15 chunks +65 lines, -22 lines 0 comments Download
M testing/tools/common.py View 1 2 3 4 5 6 7 1 chunk +18 lines, -0 lines 0 comments Download
A testing/tools/gold.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +126 lines, -0 lines 0 comments Download
M testing/tools/test_runner.py View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +52 lines, -12 lines 0 comments Download

Messages

Total messages: 32 (23 generated)
stephana
PTAL This is the first of probably 3 CLs that will enable Gold for PDFium. ...
4 years ago (2016-12-20 22:21:18 UTC) #20
caryclark
looks good with nits I'll defer to dsinclair (or anyone else, for that matter) on ...
4 years ago (2016-12-20 22:42:59 UTC) #21
stephana
https://codereview.chromium.org/2578893004/diff/140001/samples/pdfium_test.cc File samples/pdfium_test.cc (right): https://codereview.chromium.org/2578893004/diff/140001/samples/pdfium_test.cc#newcode119 samples/pdfium_test.cc:119: printf("%02x", digest[i]); On 2016/12/20 22:42:59, caryclark wrote: > pdfium ...
4 years ago (2016-12-21 16:12:06 UTC) #22
stephana
Adding borenet@ to take a look at the Python part of the CL.
4 years ago (2016-12-21 19:17:55 UTC) #24
borenet
Mostly just style nits. https://codereview.chromium.org/2578893004/diff/180001/testing/tools/common.py File testing/tools/common.py (right): https://codereview.chromium.org/2578893004/diff/180001/testing/tools/common.py#newcode28 testing/tools/common.py:28: # RunCommandExtractHashedFiles returns a tuple: ...
4 years ago (2016-12-21 19:47:29 UTC) #25
stephana
https://codereview.chromium.org/2578893004/diff/180001/testing/tools/common.py File testing/tools/common.py (right): https://codereview.chromium.org/2578893004/diff/180001/testing/tools/common.py#newcode28 testing/tools/common.py:28: # RunCommandExtractHashedFiles returns a tuple: (raised_exception, hashed_files) On 2016/12/21 ...
4 years ago (2016-12-21 21:47:58 UTC) #26
dsinclair
lgtm
3 years, 11 months ago (2017-01-02 14:04:57 UTC) #28
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/2578893004/220001
3 years, 11 months ago (2017-01-02 14:05:05 UTC) #29
commit-bot: I haz the power
3 years, 11 months ago (2017-01-02 14:19:46 UTC) #32
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://pdfium.googlesource.com/pdfium/+/fa05e97fc4d796bd12e21c32634d9614f8ed...

Powered by Google App Engine
This is Rietveld 408576698