Added unit tests for OCRepresentation to CBOR and back
authorErich Keane <erich.keane@intel.com>
Fri, 11 Sep 2015 16:30:09 +0000 (09:30 -0700)
committerPatrick Lankswert <patrick.lankswert@intel.com>
Wed, 16 Sep 2015 19:37:13 +0000 (19:37 +0000)
commit970f4d4aa24fe9519366dfbb9346d37cf03ce0e8
tree22f707e72a5ad3fce8de7faeb61b8435b967bbcf
parentfd6ab37e8e2b1da6017177760cb786f4bf3989a3
Added unit tests for OCRepresentation to CBOR and back

These unit tests validate the conversion of OCRepresentation objects
through OCRepPayload and into CBOR, then brings them back.  This
validates all data types, including jagged arrays.

Change-Id: I6c74a29f51febcff8553ac194c5ae57eaa50a460
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2483
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
resource/csdk/stack/include/internal/ocpayloadcbor.h
resource/csdk/stack/src/ocpayloadconvert.c
resource/include/OCRepresentation.h
resource/unittests/OCRepresentationEncodingTest.cpp [new file with mode: 0644]
resource/unittests/SConscript