From f09bdfa90d6324813309e987a07b28c1b75aec72 Mon Sep 17 00:00:00 2001 From: tsepez Date: Mon, 18 Apr 2016 16:08:26 -0700 Subject: Allow pdfium_test to send simple events to each page. We add the --send-events flag, which causes pdfium_test to look for a .evt file with the same base name as the .pdf file being rendered, and to use its contents to drive calls to FORM_* APIs. The .evt file syntax is crude, roughly: # comments keycode,65 mousedown,right,300,300 # more comments mouseup,right,300,300 mousemove,300,300 Review URL: https://codereview.chromium.org/1898993002 --- testing/test_support.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'testing/test_support.h') diff --git a/testing/test_support.h b/testing/test_support.h index 4b716ae772..fdb24fe61b 100644 --- a/testing/test_support.h +++ b/testing/test_support.h @@ -8,6 +8,7 @@ #include #include #include +#include #include "public/fpdf_save.h" #include "public/fpdfview.h" @@ -63,6 +64,8 @@ struct FreeDeleter { std::unique_ptr GetFileContents(const char* filename, size_t* retlen); +std::vector StringSplit(const std::string& str, char delimiter); + // Converts a FPDF_WIDESTRING to a std::wstring. // Deals with differences between UTF16LE and wchar_t. std::wstring GetPlatformWString(const FPDF_WIDESTRING wstr); -- cgit v1.2.3