| OLD | NEW |
| 1 // Copyright 2015 PDFium Authors. All rights reserved. | 1 // Copyright 2015 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <limits> | 5 #include <limits> |
| 6 #include <string> | 6 #include <string> |
| 7 | 7 |
| 8 #include "../../public/fpdfview.h" | 8 #include "../../public/fpdfview.h" |
| 9 #include "../../testing/embedder_test.h" | 9 #include "../../testing/embedder_test.h" |
| 10 #include "fpdfview_c_api_test.h" | 10 #include "fpdfview_c_api_test.h" |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 | 188 |
| 189 TEST_F(FPDFViewEmbeddertest, Crasher_451830) { | 189 TEST_F(FPDFViewEmbeddertest, Crasher_451830) { |
| 190 // XFA branch detects this document as bad. | 190 // XFA branch detects this document as bad. |
| 191 EXPECT_FALSE(OpenDocument("testing/resources/bug_451830.pdf")); | 191 EXPECT_FALSE(OpenDocument("testing/resources/bug_451830.pdf")); |
| 192 } | 192 } |
| 193 | 193 |
| 194 TEST_F(FPDFViewEmbeddertest, Crasher_452455) { | 194 TEST_F(FPDFViewEmbeddertest, Crasher_452455) { |
| 195 EXPECT_TRUE(OpenDocument("testing/resources/bug_452455.pdf")); | 195 EXPECT_TRUE(OpenDocument("testing/resources/bug_452455.pdf")); |
| 196 FPDF_PAGE page = LoadPage(0); | 196 FPDF_PAGE page = LoadPage(0); |
| 197 EXPECT_NE(nullptr, page); | 197 EXPECT_NE(nullptr, page); |
| 198 UnloadPage(page); |
| 198 } | 199 } |
| 199 | 200 |
| 200 TEST_F(FPDFViewEmbeddertest, Crasher_454695) { | 201 TEST_F(FPDFViewEmbeddertest, Crasher_454695) { |
| 201 // XFA branch detects this document as bad. | 202 // XFA branch detects this document as bad. |
| 202 EXPECT_FALSE(OpenDocument("testing/resources/bug_454695.pdf")); | 203 EXPECT_FALSE(OpenDocument("testing/resources/bug_454695.pdf")); |
| 203 } | 204 } |
| OLD | NEW |