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

Unified 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: Created 4 years, 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « BUILD.gn ('k') | pdfium.gyp » ('j') | testing/embedder_test.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/src/fpdfedit_embeddertest.cpp
diff --git a/fpdfsdk/src/fpdfedit_embeddertest.cpp b/fpdfsdk/src/fpdfedit_embeddertest.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..3131f772a33eaaae944f41fd9e754949cb0c0ad5
--- /dev/null
+++ b/fpdfsdk/src/fpdfedit_embeddertest.cpp
@@ -0,0 +1,20 @@
+// 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 "core/include/fxcrt/fx_string.h"
Lei Zhang 2016/01/06 02:05:06 Again, not needed. Also fx_string_testhelpers.h.
Tom Sepez 2016/01/06 17:57:10 Done.
+#include "public/fpdf_edit.h"
+#include "public/fpdfview.h"
+#include "testing/embedder_test.h"
+#include "testing/fx_string_testhelpers.h"
+#include "testing/gtest/include/gtest/gtest.h"
+
+class FPDFEditEmbeddertest : public EmbedderTest {};
+
+TEST_F(FPDFEditEmbeddertest, EmptyCreation) {
+ EXPECT_TRUE(CreateDocument());
+ FPDF_PAGE page = FPDFPage_New(document(), 1, 640.0, 480.0);
+ EXPECT_NE(nullptr, page);
+ EXPECT_TRUE(FPDFPage_GenerateContent(page));
+ FPDFPage_Delete(document(), 1);
+}
« no previous file with comments | « BUILD.gn ('k') | pdfium.gyp » ('j') | testing/embedder_test.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698