summaryrefslogtreecommitdiff
path: root/testing/test_support.h
diff options
context:
space:
mode:
Diffstat (limited to 'testing/test_support.h')
-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, \