summaryrefslogtreecommitdiff
path: root/testing/basic_embeddertest.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-01-16 08:55:17 -0800
committerTom Sepez <tsepez@chromium.org>2015-01-16 08:55:17 -0800
commit74b91b279d0dee175c2e461ffa4fcc7fe5002a6e (patch)
tree7291f9199291a54fe4649627ccb5b7ad44a65b30 /testing/basic_embeddertest.cpp
parent624b166d4f50874f93c6d0824e91cd5b955c0487 (diff)
downloadpdfium-74b91b279d0dee175c2e461ffa4fcc7fe5002a6e.tar.xz
Follow-on to pdfium_embeddertests.
This includes: - Fix TestLoader lifetime. - Rename test file to match the equivalent .cpp under test - Re-organize a few tests to avoid duplicate loading - add tests for a few additional functions. R=jam@chromium.org Review URL: https://codereview.chromium.org/857483005
Diffstat (limited to 'testing/basic_embeddertest.cpp')
-rw-r--r--testing/basic_embeddertest.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/testing/basic_embeddertest.cpp b/testing/basic_embeddertest.cpp
deleted file mode 100644
index 210fabd71a..0000000000
--- a/testing/basic_embeddertest.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// 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 "embedder_test.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-class BasicEmbeddertest : public EmbedderTest {
-};
-
-TEST_F(BasicEmbeddertest, GetPageCount) {
- EXPECT_TRUE(OpenDocument("testing/resources/about_blank.pdf"));
- EXPECT_EQ(1, GetPageCount());
-}
-
-TEST_F(BasicEmbeddertest, GetFirstPageNum) {
- EXPECT_TRUE(OpenDocument("testing/resources/about_blank.pdf"));
- EXPECT_EQ(0, GetFirstPageNum());
-}