From 742977f943b30638427d1ef6532acbc3d1c36bff Mon Sep 17 00:00:00 2001 From: Nicolas Pena Date: Thu, 13 Apr 2017 15:28:20 -0400 Subject: Add embeddertest for form text rendering and saving MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Commit-Queue: dsinclair Reviewed-by: Tom Sepez Reviewed-by: dsinclair --- fpdfsdk/fpdfedit_embeddertest.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'fpdfsdk/fpdfedit_embeddertest.cpp') diff --git a/fpdfsdk/fpdfedit_embeddertest.cpp b/fpdfsdk/fpdfedit_embeddertest.cpp index 6454c34df1..952564db49 100644 --- a/fpdfsdk/fpdfedit_embeddertest.cpp +++ b/fpdfsdk/fpdfedit_embeddertest.cpp @@ -164,22 +164,6 @@ const char kExpectedPDF[] = "379\r\n" "%%EOF\r\n"; -int GetBlockFromString(void* param, - unsigned long pos, - unsigned char* buf, - unsigned long size) { - std::string* new_file = static_cast(param); - if (!new_file || pos + size < pos) - return 0; - - unsigned long file_size = new_file->size(); - if (pos + size > file_size) - return 0; - - memcpy(buf, new_file->data() + pos, size); - return 1; -} - } // namespace TEST_F(FPDFEditEmbeddertest, EmptyCreation) { -- cgit v1.2.3