const char * OIC_JSON_OXM_SEL_NAME = "oxmsel";
const char * OIC_JSON_DEVICE_ID_FORMAT_NAME = "dvcidfrmt";
const char * OIC_JSON_ISOP_NAME = "isop";
-const char * OIC_JSON_COMMIT_HASH_NAME = "commithash";
+const char * OIC_JSON_COMMIT_HASH_NAME = "ch";
const char * OIC_JSON_DEVICE_ID_NAME = "deviceid";
const char * OIC_JSON_CM_NAME = "cm";
const char * OIC_JSON_TM_NAME = "tm";
char * BinToPstatJSON(const OicSecPstat_t * pstat);
OicSecPstat_t * JSONToPstatBin(const char * jsonStr);
char* ReadFile(const char* filename);
-extern char* JSON_FILE_NAME;
+const char* UNIT_TEST_JSON_FILE_NAME = "oic_unittest.json";
#ifdef __cplusplus
}
#endif
TEST(PstatTests, JSONMarshalliingTests)
{
- char *jsonStr1 = ReadFile(JSON_FILE_NAME);
+ char *jsonStr1 = ReadFile(UNIT_TEST_JSON_FILE_NAME);
if (NULL != jsonStr1)
{
cJSON_Minify(jsonStr1);
}
else
{
- printf("Please copy %s into unittest folder\n", JSON_FILE_NAME);
+ printf("Please copy %s into unittest folder\n", UNIT_TEST_JSON_FILE_NAME);
}
}