Modified unit test to pass mutable string to CHPGetOCContentType().
Change-Id: Ic0ea5704ddff20dc67086296e54775ef8d677d69
Signed-off-by: Veeraj Khokale <veeraj.sk@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13013
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
{
HttpResponse_t httpResponse;
//char *httpContentType = "OC_FORMAT_CBOR";
- char *httpContentType = "CBOR_CONTENT_TYPE";
+ char httpContentType[64];
+ strcpy(httpContentType, "application/cbor");
EXPECT_EQ(OC_FORMAT_CBOR, (CHPGetOCContentType(httpContentType)));
}