Add tests for GetNamedDests() API.
authorTom Sepez <tsepez@chromium.org>
Wed, 21 Jan 2015 22:38:33 +0000 (14:38 -0800)
committerTom Sepez <tsepez@chromium.org>
Wed, 21 Jan 2015 22:38:33 +0000 (14:38 -0800)
commit9dcd7b841a6ec11b3cfff39f8d2d1f033dea9705
treee6d363241976a3fdc85ca2f27e6035ad83e90cb8
parentdc43b322915c5256a5a9458e6b8cd28bcecf91ae
Add tests for GetNamedDests() API.

Follow-on work from patch at https://codereview.chromium.org/845643008. This
incorporates that patch, plus adds tests for it and similar conditions.  A few
changes are introduced to correct expected behaviour.

This also incoprorates Deepak's fix in https://codereview.chromium.org/845643008/

This incorporates a formerly unlanded tool to generate small valid PDF
files from template input, which is needed to cover all the error cases
here. See https://codereview.chromium.org/791993006/

BUG=450133
R=bo_xu@foxitsoftware.com

Review URL: https://codereview.chromium.org/837723009
fpdfsdk/src/fpdfview.cpp
fpdfsdk/src/fpdfview_embeddertest.cpp
testing/resources/named_dests.in [new file with mode: 0644]
testing/resources/named_dests.pdf [new file with mode: 0644]
testing/tools/fixup_pdf_template.py [new file with mode: 0755]