diff options
author | Wei Li <weili@chromium.org> | 2016-02-16 12:52:14 -0800 |
---|---|---|
committer | Wei Li <weili@chromium.org> | 2016-02-16 12:52:14 -0800 |
commit | 4f7f4eea92b607ca3864df63e4b277abd5e5af97 (patch) | |
tree | 0264c50870268b813575aaddeb8cceb25bb2edf9 /testing | |
parent | 53520a13f2c2f9f401b5cfa5fa9e1a882d08d042 (diff) | |
download | pdfium-4f7f4eea92b607ca3864df63e4b277abd5e5af97.tar.xz |
Simplify string function test macro
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1701123002 .
Diffstat (limited to 'testing')
-rw-r--r-- | testing/test_support.h | 10 |
1 files changed, 2 insertions, 8 deletions
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 { |