Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(497)

Side by Side Diff: fpdfsdk/src/fpdfedit_embeddertest.cpp

Issue 1554133003: Add fpdf_edit basic creation embedder test. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Nits Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « BUILD.gn ('k') | pdfium.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_edit.h"
6 #include "public/fpdfview.h"
7 #include "testing/embedder_test.h"
8 #include "testing/gtest/include/gtest/gtest.h"
9
10 class FPDFEditEmbeddertest : public EmbedderTest {};
11
12 TEST_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 }
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | pdfium.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698