summaryrefslogtreecommitdiff
path: root/testing/embedder_test.h
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/embedder_test.h
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/embedder_test.h')
-rw-r--r--testing/embedder_test.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/testing/embedder_test.h b/testing/embedder_test.h
index b127eadbde..48ea415e19 100644
--- a/testing/embedder_test.h
+++ b/testing/embedder_test.h
@@ -14,6 +14,8 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "v8/include/v8.h"
+class TestLoader;
+
// This class is used to load a PDF document, and then run programatic
// API tests against it.
class EmbedderTest : public ::testing::Test {
@@ -21,6 +23,7 @@ class EmbedderTest : public ::testing::Test {
EmbedderTest() :
document_(nullptr),
avail_(nullptr),
+ loader_(nullptr),
file_length_(0),
file_contents_(nullptr) {
memset(&hints_, 0, sizeof(hints_));
@@ -70,6 +73,7 @@ class EmbedderTest : public ::testing::Test {
FX_FILEAVAIL file_avail_;
v8::StartupData natives_;
v8::StartupData snapshot_;
+ TestLoader* loader_;
size_t file_length_;
char* file_contents_;
};