| 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 "../../testing/embedder_test.h" | 9 #include "../../testing/embedder_test.h" |
| 9 #include "../../fpdfsdk/include/fpdfview.h" | |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 11 | 11 |
| 12 class FPDFViewEmbeddertest : public EmbedderTest { | 12 class FPDFViewEmbeddertest : public EmbedderTest { |
| 13 }; | 13 }; |
| 14 | 14 |
| 15 TEST_F(FPDFViewEmbeddertest, Document) { | 15 TEST_F(FPDFViewEmbeddertest, Document) { |
| 16 EXPECT_TRUE(OpenDocument("testing/resources/about_blank.pdf")); | 16 EXPECT_TRUE(OpenDocument("testing/resources/about_blank.pdf")); |
| 17 EXPECT_EQ(1, GetPageCount()); | 17 EXPECT_EQ(1, GetPageCount()); |
| 18 EXPECT_EQ(0, GetFirstPageNum()); | 18 EXPECT_EQ(0, GetFirstPageNum()); |
| 19 | 19 |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 | 187 |
| 188 TEST_F(FPDFViewEmbeddertest, Crasher_452455) { | 188 TEST_F(FPDFViewEmbeddertest, Crasher_452455) { |
| 189 EXPECT_TRUE(OpenDocument("testing/resources/bug_452455.pdf")); | 189 EXPECT_TRUE(OpenDocument("testing/resources/bug_452455.pdf")); |
| 190 FPDF_PAGE page = LoadPage(0); | 190 FPDF_PAGE page = LoadPage(0); |
| 191 EXPECT_NE(nullptr, page); | 191 EXPECT_NE(nullptr, page); |
| 192 } | 192 } |
| 193 | 193 |
| 194 TEST_F(FPDFViewEmbeddertest, Crasher3) { | 194 TEST_F(FPDFViewEmbeddertest, Crasher3) { |
| 195 EXPECT_TRUE(OpenDocument("testing/resources/bug_454695.pdf")); | 195 EXPECT_TRUE(OpenDocument("testing/resources/bug_454695.pdf")); |
| 196 } | 196 } |
| OLD | NEW |