From 868f118797969cd0178d38207330e410267e6c46 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sat, 14 Nov 2009 21:59:31 -0800 Subject: Changed parse API to know about msgdefs. This should make it both easier to use and easier to optimize, in exchange for a small amount of generality. In practice, any remotely normal case is still very natural. --- tests/tests.c | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'tests') diff --git a/tests/tests.c b/tests/tests.c index 39690ab..ddf6d6f 100644 --- a/tests/tests.c +++ b/tests/tests.c @@ -234,27 +234,6 @@ static void test_upb_context() { } -static upb_field_type_t tag_cb(void *udata, struct upb_tag *tag, - void **user_field_desc) -{ - (void)udata; - (void)tag; - (void)user_field_desc; - return 0; -} - -static void test_cbparser() -{ - struct upb_cbparser *p = upb_cbparser_new(); - ASSERT(p); - upb_cbparser_reset(p, NULL, tag_cb, NULL, NULL, NULL, NULL); - size_t read; - struct upb_status status = UPB_STATUS_INIT; - read = upb_cbparser_parse(p, NULL, 0, &status); - ASSERT(upb_ok(&status)); - ASSERT(read == 0); -} - int main() { #define TEST(func) do { \ @@ -269,7 +248,6 @@ int main() TEST(test_skip_v_uint64_t); TEST(test_get_f_uint32_t); TEST(test_upb_context); - TEST(test_cbparser); printf("All tests passed (%d assertions).\n", num_assertions); return 0; } -- cgit v1.2.3