summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorWei Li <weili@chromium.org>2016-02-18 14:04:57 -0800
committerWei Li <weili@chromium.org>2016-02-18 14:04:57 -0800
commit65b3655fc3f858180122399654bf29dc5d11a4ba (patch)
tree6716bbab3ac319ae7677c0c52e6a8839decd6316 /testing
parent4422dbd49b949a7019294e91edac96c761430e71 (diff)
downloadpdfium-65b3655fc3f858180122399654bf29dc5d11a4ba.tar.xz
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 .
Diffstat (limited to 'testing')
-rw-r--r--testing/test_support.h5
1 files changed, 5 insertions, 0 deletions
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); }