Added unit tests for StackResource
authorRavi Nanjundappa <nravi.n@samsung.com>
Tue, 23 Jun 2015 04:52:05 +0000 (10:22 +0530)
committerErich Keane <erich.keane@intel.com>
Tue, 23 Jun 2015 16:44:10 +0000 (16:44 +0000)
commit073e992491cd89336b8483dabb62ece53570a13f
tree84ea2eb1749a190019521d5479ea41935525e6b5
parentca458b3779afc8e11a9911d6a39e70480006f9e7
Added unit tests for StackResource

Unit test exercise code paths to check OCCreateResource() for
OC_LIENT mode and also to check if resource type name is invalid
i.e., null terminated or not.
This also includes the bug fix related to checking if resource type
name is invalid i.e., null terminated or not.

Change-Id: I7f8767a4e8b9586de9cb0926dd8a4afcd03b792c
Signed-off-by: Ravi Nanjundappa <nravi.n@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1391
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Joseph Morrow <joseph.l.morrow@intel.com>
Reviewed-by: Erich Keane <erich.keane@intel.com>
resource/csdk/stack/src/ocstack.c
resource/csdk/stack/test/stacktests.cpp