OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 PDFium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "public/fpdf_ppo.h" | |
6 | |
7 #include "core/fxcrt/fx_basic.h" | |
8 #include "public/fpdf_edit.h" | |
9 #include "public/fpdfview.h" | |
10 #include "testing/embedder_test.h" | |
11 #include "testing/gtest/include/gtest/gtest.h" | |
12 #include "testing/test_support.h" | |
13 | |
14 namespace { | |
15 | |
16 class FPDFPPOEmbeddertest : public EmbedderTest {}; | |
17 | |
18 } // namespace | |
19 | |
20 TEST_F(FPDFPPOEmbeddertest, ImportPages) { | |
21 EXPECT_TRUE(OpenDocument("hello_world.pdf")); | |
22 | |
23 FPDF_PAGE page = LoadPage(0); | |
24 EXPECT_TRUE(page); | |
25 | |
26 FPDF_DOCUMENT output_doc = FPDF_CreateNewDocument(); | |
27 EXPECT_TRUE(output_doc); | |
28 | |
29 FPDF_CopyViewerPreferences(output_doc, document()); | |
30 FPDF_ImportPages(output_doc, document(), "0", 0); | |
Lei Zhang
2016/11/11 23:56:48
Check FPDF_GetPageCount(output_doc) returns 1?
Lei Zhang
2016/11/11 23:56:48
Check return result?
Tom Sepez
2016/11/12 00:35:46
Done.
Tom Sepez
2016/11/12 00:35:46
Done.
| |
31 | |
32 UnloadPage(page); | |
33 FPDF_CloseDocument(output_doc); | |
34 } | |
OLD | NEW |