summaryrefslogtreecommitdiff
path: root/testing/embedder_test.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2016-01-06 10:03:59 -0800
committerTom Sepez <tsepez@chromium.org>2016-01-06 10:03:59 -0800
commitd483eb46d8920547d1b47351e65fa0299eaba191 (patch)
tree9b86db31f9f858c767cc58fee110839afdcdeef1 /testing/embedder_test.h
parentec32127b105fc1ff74842dc939cb6fa7d23430b0 (diff)
downloadpdfium-d483eb46d8920547d1b47351e65fa0299eaba191.tar.xz
Merge to XFA: Add fpdf_edit basic creation embedder test.
Original Review URL: https://codereview.chromium.org/1554133003 . (cherry picked from commit d368261cc8d604286e29ca6358700e6bb051dcaa) TBR=thestig@chromium.org Review URL: https://codereview.chromium.org/1567643002 .
Diffstat (limited to 'testing/embedder_test.h')
-rw-r--r--testing/embedder_test.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/testing/embedder_test.h b/testing/embedder_test.h
index a544f26543..c780cca74b 100644
--- a/testing/embedder_test.h
+++ b/testing/embedder_test.h
@@ -78,6 +78,10 @@ class EmbedderTest : public ::testing::Test,
FPDF_DOCUMENT document() { return document_; }
FPDF_FORMHANDLE form_handle() { return form_handle_; }
+ // Create an empty document, and its form fill environment. Returns true
+ // on success or false on failure.
+ virtual bool CreateEmptyDocument();
+
// Open the document specified by |filename|, and create its form fill
// environment, or return false on failure.
// The filename is relative to the test data directory where we store all the
@@ -107,6 +111,8 @@ class EmbedderTest : public ::testing::Test,
virtual void UnloadPage(FPDF_PAGE page);
protected:
+ void SetupFormFillEnvironment();
+
Delegate* delegate_;
std::unique_ptr<Delegate> default_delegate_;
FPDF_DOCUMENT document_;