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

Unified Diff: testing/pdfium_embeddertest.cpp

Issue 827733006: Create first pdfium embedder test. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Add second simple test. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: testing/pdfium_embeddertest.cpp
diff --git a/testing/pdfium_embeddertest.cpp b/testing/pdfium_embeddertest.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..467ecc347ace0597345e171c104145973fead0c5
--- /dev/null
+++ b/testing/pdfium_embeddertest.cpp
@@ -0,0 +1,19 @@
+// Copyright (c) 2015 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 "pdfium_test_embedder.h"
+#include "testing/gtest/include/gtest/gtest.h"
+
+class PDFiumEmbeddertest : public PDFiumTestEmbedder {
jam 2015/01/13 19:21:18 it's confusing having both PDFiumEmbeddertest and
+};
+
+TEST_F(PDFiumEmbeddertest, GetPageCount) {
+ EXPECT_TRUE(OpenDocument("testing/resources/about_blank.pdf"));
+ EXPECT_EQ(1, GetPageCount());
+}
+
+TEST_F(PDFiumEmbeddertest, GetFirstPageNum) {
+ EXPECT_TRUE(OpenDocument("testing/resources/about_blank.pdf"));
+ EXPECT_EQ(0, GetFirstPageNum());
+}
« no previous file with comments | « pdfium.gyp ('k') | testing/pdfium_test_embedder.h » ('j') | testing/pdfium_test_embedder.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698