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

Unified Diff: core/fpdfapi/fpdf_parser/cpdf_parser_embeddertest.cpp

Issue 1946693002: Revert of Relax a couple checks to allow certain non-standard PDF files. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/fpdfapi/fpdf_parser/cpdf_parser.cpp ('k') | testing/resources/bug_596947.pdf » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfapi/fpdf_parser/cpdf_parser_embeddertest.cpp
diff --git a/core/fpdfapi/fpdf_parser/cpdf_parser_embeddertest.cpp b/core/fpdfapi/fpdf_parser/cpdf_parser_embeddertest.cpp
index d070bd6a4c7d126f85dfa9dc2da8993be6809b52..042b221554fecfad98c082bd6043e0dc94766d9d 100644
--- a/core/fpdfapi/fpdf_parser/cpdf_parser_embeddertest.cpp
+++ b/core/fpdfapi/fpdf_parser/cpdf_parser_embeddertest.cpp
@@ -54,19 +54,3 @@
FPDFText_ClosePage(text_page);
UnloadPage(page);
}
-
-TEST_F(CPDFParserEmbeddertest, Bug_596947) {
- // Test the case that the size of cross reference entries doesn't match with
- // what is defined, and a certain case of reuse object number for cross
- // reference object.
- EXPECT_TRUE(OpenDocument("bug_596947.pdf"));
- FPDF_PAGE page = LoadPage(0);
- EXPECT_NE(nullptr, page);
- FPDF_TEXTPAGE text_page = FPDFText_LoadPage(page);
- EXPECT_NE(nullptr, text_page);
- // The page should not be blank.
- EXPECT_LT(0, FPDFText_CountChars(text_page));
-
- FPDFText_ClosePage(text_page);
- UnloadPage(page);
-}
« no previous file with comments | « core/fpdfapi/fpdf_parser/cpdf_parser.cpp ('k') | testing/resources/bug_596947.pdf » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698