summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-11-14 21:59:31 -0800
committerJoshua Haberman <joshua@reverberate.org>2009-11-14 21:59:31 -0800
commit868f118797969cd0178d38207330e410267e6c46 (patch)
tree650c891eae81fc946e24e3a1cf0e9ee3e3c09c55 /tests
parent7cde43ea0abf2022a0c800c7af1d5f1ec2033bea (diff)
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.c22
1 files changed, 0 insertions, 22 deletions
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;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback