From 970c11e2225d73234009ccdc6f656abd01ae4026 Mon Sep 17 00:00:00 2001 From: Wei Li Date: Tue, 16 Feb 2016 14:26:22 -0800 Subject: 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 . --- testing/test_support.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'testing') 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, \ -- cgit v1.2.3