diff options
author | Tom Sepez <tsepez@chromium.org> | 2016-01-06 10:03:59 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2016-01-06 10:03:59 -0800 |
commit | d483eb46d8920547d1b47351e65fa0299eaba191 (patch) | |
tree | 9b86db31f9f858c767cc58fee110839afdcdeef1 /fpdfsdk/src/fpdfedit_embeddertest.cpp | |
parent | ec32127b105fc1ff74842dc939cb6fa7d23430b0 (diff) | |
download | pdfium-d483eb46d8920547d1b47351e65fa0299eaba191.tar.xz |
Merge to XFA: Add fpdf_edit basic creation embedder test.
Original Review URL: https://codereview.chromium.org/1554133003 .
(cherry picked from commit d368261cc8d604286e29ca6358700e6bb051dcaa)
TBR=thestig@chromium.org
Review URL: https://codereview.chromium.org/1567643002 .
Diffstat (limited to 'fpdfsdk/src/fpdfedit_embeddertest.cpp')
-rw-r--r-- | fpdfsdk/src/fpdfedit_embeddertest.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/fpdfsdk/src/fpdfedit_embeddertest.cpp b/fpdfsdk/src/fpdfedit_embeddertest.cpp new file mode 100644 index 0000000000..9db948cd1f --- /dev/null +++ b/fpdfsdk/src/fpdfedit_embeddertest.cpp @@ -0,0 +1,18 @@ +// Copyright 2016 PDFium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "public/fpdf_edit.h" +#include "public/fpdfview.h" +#include "testing/embedder_test.h" +#include "testing/gtest/include/gtest/gtest.h" + +class FPDFEditEmbeddertest : public EmbedderTest {}; + +TEST_F(FPDFEditEmbeddertest, EmptyCreation) { + EXPECT_TRUE(CreateEmptyDocument()); + FPDF_PAGE page = FPDFPage_New(document(), 1, 640.0, 480.0); + EXPECT_NE(nullptr, page); + EXPECT_TRUE(FPDFPage_GenerateContent(page)); + FPDFPage_Delete(document(), 1); +} |