blob: 9db948cd1f23b5f3628c6755f8da45c2473527f3 [file] [log] [blame]
Tom Sepezd483eb42016-01-06 10:03:59 -08001// 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_edit.h"
6#include "public/fpdfview.h"
7#include "testing/embedder_test.h"
8#include "testing/gtest/include/gtest/gtest.h"
9
10class FPDFEditEmbeddertest : public EmbedderTest {};
11
12TEST_F(FPDFEditEmbeddertest, EmptyCreation) {
13 EXPECT_TRUE(CreateEmptyDocument());
14 FPDF_PAGE page = FPDFPage_New(document(), 1, 640.0, 480.0);
15 EXPECT_NE(nullptr, page);
16 EXPECT_TRUE(FPDFPage_GenerateContent(page));
17 FPDFPage_Delete(document(), 1);
18}