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

Unified Diff: core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp

Issue 1353093003: Support linearized loading (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Change pdfium_test and add the third return value to indicate an error Created 5 years, 2 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
Index: core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp
diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp
index 96ea766d4dfc437bff2a5fac01a6eb71c7715ca6..4a88e07201191f6ccb1721cc9ada7a2a43c34325 100644
--- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp
+++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp
@@ -8,8 +8,8 @@
class FPDFParserEmbeddertest : public EmbedderTest {};
TEST_F(FPDFParserEmbeddertest, LoadError_454695) {
- // Test trailer dictionary with $$ze instead of Size.
- EXPECT_TRUE(OpenDocument("testing/resources/bug_454695.pdf"));
+ // Test a dictionary with Hex string rather than expected.
+ EXPECT_FALSE(OpenDocument("testing/resources/bug_454695.pdf"));
}
TEST_F(FPDFParserEmbeddertest, Bug_481363) {
@@ -19,3 +19,7 @@ TEST_F(FPDFParserEmbeddertest, Bug_481363) {
EXPECT_NE(nullptr, page);
UnloadPage(page);
}
+
+TEST_F(FPDFParserEmbeddertest, Feature_Linearized_Loading) {
+ EXPECT_TRUE(OpenDocument("testing/resources/feature_linearized_loading.pdf"));
+}

Powered by Google App Engine
This is Rietveld 408576698