Commit: 53da9df4da192d5dfcd6ccd905cbe0fd4cd2bac1
Parent: cc291810aab621012df19bf947d4bcd04249d269
Author: Anderson Lizardo <anderson.lizardo@openbossa.org>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2013-01-16 14:35:07
Tree: b675753225047c2361e0ff6e51c250ad1565e100

unit: Add tests for SDP integer Data Elements SDP_DATA_NIL does not have a value, but its sdp_data_t val field is zeroed by memset(), so just treat it as UINT8 with zero value to simplify checking (and not require a separate macro.) SDP_BOOL is handled by SDP library as a INT8. SDP_UINT128/SDP_INT128 are just byte arrays converted to host order, so use memcmp() to compare them (converting from host to network order first.)

Diffstat

M unit/test-sdp.c | 84 ++++++++++++++++++++++++++++++++++++++++

1 files changed, 84 insertions(+), 0 deletions(-)

View Full Diff | Patch