diff options
author | Olaf Bergmann <bergmann@tzi.org> | 2015-05-26 19:51:35 +0200 |
---|---|---|
committer | Olaf Bergmann <bergmann@tzi.org> | 2015-05-26 20:19:12 +0200 |
commit | f74c2f00e1b1c7670eccbc7fba75b60713088f7e (patch) | |
tree | 38905eca044e0dfd1125dd33d6f26550722654ec /test | |
parent | 241bc28b22b1622b500d118f3260f8a8ba9c7d6e (diff) | |
download | platform_external_cn-cbor-f74c2f00e1b1c7670eccbc7fba75b60713088f7e.tar.gz platform_external_cn-cbor-f74c2f00e1b1c7670eccbc7fba75b60713088f7e.tar.bz2 platform_external_cn-cbor-f74c2f00e1b1c7670eccbc7fba75b60713088f7e.zip |
Rename cbor_encoder_write() to cn_cbor_encoder_write()
The public API prefixes all symbols with cn_cbor_, so it seems
reasonable to rename cbor_encoder_write() to cn_cbor_encoder_write().
Diffstat (limited to 'test')
-rw-r--r-- | test/cbor_test.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/cbor_test.c b/test/cbor_test.c index 43f73a4..ebd5edd 100644 --- a/test/cbor_test.c +++ b/test/cbor_test.c @@ -125,7 +125,7 @@ CTEST(cbor, parse) ASSERT_EQUAL(err.err, CN_CBOR_NO_ERROR); ASSERT_NOT_NULL(cb); - enc_sz = cbor_encoder_write(encoded, 0, sizeof(encoded), cb); + enc_sz = cn_cbor_encoder_write(encoded, 0, sizeof(encoded), cb); ASSERT_DATA(b.ptr, b.sz, encoded, enc_sz); free(b.ptr); cn_cbor_free(cb CONTEXT_NULL); @@ -174,7 +174,7 @@ CTEST(cbor, parse_normalize) ASSERT_EQUAL(err.err, CN_CBOR_NO_ERROR); ASSERT_NOT_NULL(cb); - enc_sz = cbor_encoder_write(encoded, 0, sizeof(encoded), cb); + enc_sz = cn_cbor_encoder_write(encoded, 0, sizeof(encoded), cb); ASSERT_DATA(b2.ptr, b2.sz, encoded, enc_sz); free(b.ptr); free(b2.ptr); @@ -195,7 +195,7 @@ CTEST(cbor, parse_normalize) ASSERT_NULL(cb); #endif /* CBOR_NO_FLOAT */ - /* enc_sz = cbor_encoder_write(encoded, 0, sizeof(encoded), cb); */ + /* enc_sz = cn_cbor_encoder_write(encoded, 0, sizeof(encoded), cb); */ /* ASSERT_DATA(b2.ptr, b2.sz, encoded, enc_sz); */ free(b.ptr); free(b2.ptr); @@ -227,7 +227,7 @@ CTEST(cbor, fail) uint8_t buf[10]; cn_cbor inv = {CN_CBOR_INVALID, 0, {0}, 0, NULL, NULL, NULL, NULL}; - ASSERT_EQUAL(-1, cbor_encoder_write(buf, 0, sizeof(buf), &inv)); + ASSERT_EQUAL(-1, cn_cbor_encoder_write(buf, 0, sizeof(buf), &inv)); for (i=0; i<sizeof(tests)/sizeof(cbor_failure); i++) { ASSERT_TRUE(parse_hex(tests[i].hex, &b)); @@ -264,7 +264,7 @@ CTEST(cbor, float) cb = cn_cbor_decode(b.ptr, b.sz CONTEXT_NULL, &err); ASSERT_NOT_NULL(cb); - enc_sz = cbor_encoder_write(encoded, 0, sizeof(encoded), cb); + enc_sz = cn_cbor_encoder_write(encoded, 0, sizeof(encoded), cb); ASSERT_DATA(b.ptr, b.sz, encoded, enc_sz); free(b.ptr); @@ -425,6 +425,6 @@ CTEST(cbor, create_encode) ASSERT_NOT_NULL(cdata); ASSERT_TRUE(cn_cbor_mapput_int(map, 0, cdata, CONTEXT_NULL_COMMA NULL)); - enc_sz = cbor_encoder_write(encoded, 0, sizeof(encoded), map); + enc_sz = cn_cbor_encoder_write(encoded, 0, sizeof(encoded), map); ASSERT_EQUAL(7, enc_sz); } |