From 65b3655fc3f858180122399654bf29dc5d11a4ba Mon Sep 17 00:00:00 2001 From: Wei Li Date: Thu, 18 Feb 2016 14:04:57 -0800 Subject: Clean up CPDF_FileSpec and add unit tests Change implicit conversion to accessor function, remove unused function and unused parameter, add a couple checks for null pointers, and some cleanup. BUG=pdfium:247 R=thestig@chromium.org Review URL: https://codereview.chromium.org/1703183002 . --- testing/test_support.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'testing/test_support.h') diff --git a/testing/test_support.h b/testing/test_support.h index f135425b51..4b716ae772 100644 --- a/testing/test_support.h +++ b/testing/test_support.h @@ -47,6 +47,11 @@ struct DecodeTestData { unsigned int processed_size; }; +struct NullTermWstrFuncTestData { + const wchar_t* input; + const wchar_t* expected; +}; + // Used with std::unique_ptr to free() objects that can't be deleted. struct FreeDeleter { inline void operator()(void* ptr) const { free(ptr); } -- cgit v1.2.3