summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorWei Li <weili@chromium.org>2016-02-16 14:26:22 -0800
committerWei Li <weili@chromium.org>2016-02-16 14:26:22 -0800
commit970c11e2225d73234009ccdc6f656abd01ae4026 (patch)
treec184a4d3b62785ee5431cc2c6d7199103b78986f /testing
parent4f7f4eea92b607ca3864df63e4b277abd5e5af97 (diff)
downloadpdfium-970c11e2225d73234009ccdc6f656abd01ae4026.tar.xz
Refactor CPDF_SimpleParser and add unit tests.
Remove unused member functions and simplify calls to find tag parameters. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1681403007 .
Diffstat (limited to 'testing')
-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 ec896fdc85..16ed06f8df 100644
--- a/testing/test_support.h
+++ b/testing/test_support.h
@@ -18,6 +18,12 @@
namespace pdfium {
+#define STR_IN_TEST_CASE(input_literal, ...) \
+ { \
+ (const unsigned char*) input_literal, sizeof(input_literal) - 1, \
+ __VA_ARGS__ \
+ }
+
#define STR_IN_OUT_CASE(input_literal, expected_literal, ...) \
{ \
(const unsigned char*) input_literal, sizeof(input_literal) - 1, \