From 7d3e2bd2c4cfd1296d1d6f996d7548de26540d41 Mon Sep 17 00:00:00 2001 From: Josh Haberman Date: Fri, 15 Feb 2013 16:27:18 -0800 Subject: Sync with 8 months of Google-internal development. Many things have changed and been simplified. The memory-management story for upb_def and upb_handlers is much more robust; upb_def and upb_handlers should be fairly stable interfaces now. There is still much work to do for the runtime component (upb_sink). --- tests/test_varint.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'tests/test_varint.c') diff --git a/tests/test_varint.c b/tests/test_varint.c index 0fc93f0..bdbc573 100644 --- a/tests/test_varint.c +++ b/tests/test_varint.c @@ -86,16 +86,19 @@ static void test_varint_decoder(upb_decoderet (*decoder)(const char*)) { printf("ok.\n"); \ } \ -TEST_VARINT_DECODER(branch32); -TEST_VARINT_DECODER(branch64); +TEST_VARINT_DECODER(check2_branch32); +TEST_VARINT_DECODER(check2_branch64); TEST_VARINT_DECODER(check2_wright); TEST_VARINT_DECODER(check2_massimino); -int main() { - test_branch32(); - test_branch64(); +int run_tests(int argc, char *argv[]) { + UPB_UNUSED(argc); + UPB_UNUSED(argv); + test_check2_branch32(); + test_check2_branch64(); test_check2_wright(); test_check2_massimino(); + return 0; } #if 0 -- cgit v1.2.3