diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-02-02 10:23:58 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-02-02 10:23:58 -0800 |
commit | f3823b2a59d8edf33db552959ad781cfc874811c (patch) | |
tree | 9deda251c6e4d5a542b905596a10d6fe1e30b9e6 /fpdfsdk/src/fpdfview_embeddertest.cpp | |
parent | b3a788e5e37955620b26be5b6e3048d37b605e00 (diff) | |
download | pdfium-f3823b2a59d8edf33db552959ad781cfc874811c.tar.xz |
Add embedder test for fix to bug_452455.
BUG=452455
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/887063003
Diffstat (limited to 'fpdfsdk/src/fpdfview_embeddertest.cpp')
-rw-r--r-- | fpdfsdk/src/fpdfview_embeddertest.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/fpdfsdk/src/fpdfview_embeddertest.cpp b/fpdfsdk/src/fpdfview_embeddertest.cpp index d0fc40d417..f9b611bbf6 100644 --- a/fpdfsdk/src/fpdfview_embeddertest.cpp +++ b/fpdfsdk/src/fpdfview_embeddertest.cpp @@ -177,6 +177,12 @@ TEST_F(FPDFViewEmbeddertest, NamedDestsByName) { } // The following tests pass if the document opens without crashing. -TEST_F(FPDFViewEmbeddertest, Crashers) { +TEST_F(FPDFViewEmbeddertest, Crasher1) { EXPECT_TRUE(OpenDocument("testing/resources/bug_451830.pdf")); } + +TEST_F(FPDFViewEmbeddertest, Crasher2) { + EXPECT_TRUE(OpenDocument("testing/resources/bug_452455.pdf")); + FPDF_PAGE page = LoadPage(0); + EXPECT_NE(nullptr, page); +} |