summaryrefslogtreecommitdiff
path: root/testing/test_support.h
diff options
context:
space:
mode:
authorNicolas Pena <npm@chromium.org>2017-04-13 15:28:20 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-04-13 19:52:31 +0000
commit742977f943b30638427d1ef6532acbc3d1c36bff (patch)
treeaa6d3fccc2479002ddf2550bc6d25c14d7567737 /testing/test_support.h
parenta119340ec92412d07e60654b2b22a5a5bea979b0 (diff)
downloadpdfium-742977f943b30638427d1ef6532acbc3d1c36bff.tar.xz
Add embeddertest for form text rendering and saving
This CL adds an embeddertest that adds text to a textfield and saves it. It also adds a new 'charcode' option for .evt files in pdfium_test. Change-Id: I14fbf50e2b1d5ae0bdc68d1dd25dc4f889c49bfb Reviewed-on: https://pdfium-review.googlesource.com/4150 Commit-Queue: Nicolás Peña <npm@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'testing/test_support.h')
-rw-r--r--testing/test_support.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/testing/test_support.h b/testing/test_support.h
index b734bc31f0..f175811078 100644
--- a/testing/test_support.h
+++ b/testing/test_support.h
@@ -115,6 +115,12 @@ class TestSaver : public FPDF_FILEWRITE {
void ClearString();
const std::string& GetString() const { return m_String; }
+ protected:
+ static int GetBlockFromString(void* param,
+ unsigned long pos,
+ unsigned char* buf,
+ unsigned long size);
+
private:
static int WriteBlockCallback(FPDF_FILEWRITE* pFileWrite,
const void* data,