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

Issue 1409013005: Add base test for RebuildCrossRef function. (Closed)

Created:
5 years, 1 month ago by Wei Li
Modified:
5 years, 1 month ago
Reviewers:
Lei Zhang, dsinclair
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add base test for RebuildCrossRef function. This tests whether RebuildCrossRef could handle well-formatted pdf file. R=thestig@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/4544797e8998a31e7bc3f5439a5982f7f66dff26

Patch Set 1 #

Total comments: 16

Patch Set 2 : address comments #

Total comments: 2

Patch Set 3 : fix file detection #

Total comments: 2

Patch Set 4 : pdf format #

Patch Set 5 : one more comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -0 lines) Patch
M core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp View 1 2 3 4 2 chunks +41 lines, -0 lines 0 comments Download
A testing/resources/parser_rebuildxref_correct.pdf View 1 2 3 4 1 chunk +55 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (2 generated)
Wei Li
Pls take a look, thanks.
5 years, 1 month ago (2015-11-04 01:57:53 UTC) #2
dsinclair
https://codereview.chromium.org/1409013005/diff/1/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittests.cpp File core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittests.cpp (right): https://codereview.chromium.org/1409013005/diff/1/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittests.cpp#newcode1 core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittests.cpp:1: // Copyright 2015 PDFium Authors. All rights reserved. There ...
5 years, 1 month ago (2015-11-04 02:07:14 UTC) #4
Lei Zhang
https://codereview.chromium.org/1409013005/diff/1/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittests.cpp File core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittests.cpp (right): https://codereview.chromium.org/1409013005/diff/1/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittests.cpp#newcode1 core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittests.cpp:1: // Copyright 2015 PDFium Authors. All rights reserved. On ...
5 years, 1 month ago (2015-11-04 02:12:39 UTC) #5
Wei Li
PTAL, thanks. https://codereview.chromium.org/1409013005/diff/1/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittests.cpp File core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittests.cpp (right): https://codereview.chromium.org/1409013005/diff/1/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittests.cpp#newcode1 core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittests.cpp:1: // Copyright 2015 PDFium Authors. All rights ...
5 years, 1 month ago (2015-11-04 17:55:41 UTC) #6
Lei Zhang
The diff for the PDF test file looks funny. Can you try upload with a ...
5 years, 1 month ago (2015-11-04 18:01:41 UTC) #7
Lei Zhang
https://codereview.chromium.org/1409013005/diff/20001/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp File core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp (right): https://codereview.chromium.org/1409013005/diff/20001/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp#newcode26 core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp:26: FRIEND_TEST(fpdf_parser_parser, RebuildCrossRefCorrectly); If you provide public CPDF_TestParser getter methods ...
5 years, 1 month ago (2015-11-04 18:04:27 UTC) #8
Wei Li
On 2015/11/04 18:01:41, Lei Zhang wrote: > The diff for the PDF test file looks ...
5 years, 1 month ago (2015-11-04 18:40:43 UTC) #9
Lei Zhang
On 2015/11/04 18:40:43, Wei wrote: > On 2015/11/04 18:01:41, Lei Zhang wrote: > > The ...
5 years, 1 month ago (2015-11-04 18:45:04 UTC) #10
Wei Li
https://codereview.chromium.org/1409013005/diff/20001/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp File core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp (right): https://codereview.chromium.org/1409013005/diff/20001/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp#newcode26 core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp:26: FRIEND_TEST(fpdf_parser_parser, RebuildCrossRefCorrectly); On 2015/11/04 18:04:26, Lei Zhang wrote: > ...
5 years, 1 month ago (2015-11-04 18:47:03 UTC) #11
Lei Zhang
On 2015/11/04 18:47:03, Wei wrote: > Yes, I also need to provide a public wrapper ...
5 years, 1 month ago (2015-11-04 18:50:58 UTC) #12
dsinclair
lg to me. https://codereview.chromium.org/1409013005/diff/40001/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp File core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp (right): https://codereview.chromium.org/1409013005/diff/40001/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp#newcode26 core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp:26: FRIEND_TEST(fpdf_parser_parser, RebuildCrossRefCorrectly); Can you add a ...
5 years, 1 month ago (2015-11-04 20:19:36 UTC) #13
Wei Li
Turned out windows git decided to do smart diff for PDFs. :p Now fixed. https://codereview.chromium.org/1409013005/diff/40001/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp ...
5 years, 1 month ago (2015-11-04 20:36:54 UTC) #14
Lei Zhang
lgtm
5 years, 1 month ago (2015-11-04 21:36:47 UTC) #15
Wei Li
5 years, 1 month ago (2015-11-05 00:57:41 UTC) #16
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
4544797e8998a31e7bc3f5439a5982f7f66dff26 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698