Home
last modified time | relevance | path

Searched refs:strObj (Results 1 – 3 of 3) sorted by relevance

/base/security/device_auth/common_lib/impl/src/
Djson_utils.c379 cJSON *strObj = cJSON_CreateString(string); in AddStringToArray() local
380 if (strObj == NULL) { in AddStringToArray()
383 bool ret = cJSON_AddItemToArray(jsonArr, strObj); in AddStringToArray()
385 cJSON_Delete(strObj); in AddStringToArray()
/base/security/device_auth/test/unittest/deviceauth/source/
Djson_utils_mock.c437 cJSON *strObj = cJSON_CreateString(string); in AddStringToArray() local
438 if (strObj == NULL) { in AddStringToArray()
441 bool ret = cJSON_AddItemToArray(jsonArr, strObj); in AddStringToArray()
443 cJSON_Delete(strObj); in AddStringToArray()
/base/security/device_auth/test/unittest/deviceauth/unit_test/source/
Dcommon_lib_test.cpp379 const char *strObj = GetStringFromJson(nullptr, "name"); variable
380 EXPECT_EQ(strObj, nullptr);
381 strObj = GetStringFromJson(validJson, "name");
382 EXPECT_NE(strObj, nullptr);