From 4f7f4eea92b607ca3864df63e4b277abd5e5af97 Mon Sep 17 00:00:00 2001 From: Wei Li Date: Tue, 16 Feb 2016 12:52:14 -0800 Subject: Simplify string function test macro R=thestig@chromium.org Review URL: https://codereview.chromium.org/1701123002 . --- testing/test_support.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'testing') diff --git a/testing/test_support.h b/testing/test_support.h index 3c7ffe5687..ec896fdc85 100644 --- a/testing/test_support.h +++ b/testing/test_support.h @@ -18,17 +18,11 @@ namespace pdfium { -#define STR_TEST_CASE(input_literal, expected_literal) \ - { \ - (const unsigned char*) input_literal, sizeof(input_literal) - 1, \ - (const unsigned char*)expected_literal, sizeof(expected_literal) - 1 \ - } - -#define DECODE_TEST_CASE(input_literal, expected_literal, processed_size) \ +#define STR_IN_OUT_CASE(input_literal, expected_literal, ...) \ { \ (const unsigned char*) input_literal, sizeof(input_literal) - 1, \ (const unsigned char*)expected_literal, sizeof(expected_literal) - 1, \ - processed_size \ + __VA_ARGS__ \ } struct StrFuncTestData { -- cgit v1.2.3