Home
last modified time | relevance | path

Searched refs:cjson (Results 1 - 15 of 15) sorted by relevance

/foundation/filemanagement/app_file_service/tests/unittests/backup_utils/b_json/
H A Db_json_service_disposal_config_other_test.cpp93 int cjson = 0; in HWTEST_F() local
94 EXPECT_CALL(*cJsonMock, cJSON_CreateObject()).WillOnce(Return(reinterpret_cast<cJSON *>(&cjson))); in HWTEST_F()
95 EXPECT_CALL(*cJsonMock, cJSON_CreateArray()).WillOnce(Return(reinterpret_cast<cJSON *>(&cjson))); in HWTEST_F()
142 int cjson = 0; in HWTEST_F() local
143 EXPECT_CALL(*cJsonMock, cJSON_CreateObject()).WillOnce(Return(reinterpret_cast<cJSON *>(&cjson))); in HWTEST_F()
168 int cjson = 0; in HWTEST_F() local
170 EXPECT_CALL(*cJsonMock, cJSON_CreateObject()).WillOnce(Return(reinterpret_cast<cJSON *>(&cjson))); in HWTEST_F()
171 EXPECT_CALL(*cJsonMock, cJSON_CreateArray()).WillOnce(Return(reinterpret_cast<cJSON *>(&cjson))); in HWTEST_F()
178 EXPECT_CALL(*cJsonMock, cJSON_Parse(_)).WillOnce(Return(reinterpret_cast<cJSON *>(&cjson))); in HWTEST_F()
179 EXPECT_CALL(*cJsonMock, cJSON_GetObjectItem(_, _)).WillOnce(Return(reinterpret_cast<cJSON *>(&cjson))); in HWTEST_F()
209 int cjson = 0; HWTEST_F() local
243 int cjson = 0; HWTEST_F() local
294 int cjson = 0; HWTEST_F() local
337 int cjson = 0; HWTEST_F() local
380 int cjson = 0; HWTEST_F() local
[all...]
H A Db_json_clear_data_config_test.cpp111 int cjson = 0; in HWTEST_F() local
112 EXPECT_CALL(*cJsonMock, cJSON_CreateObject()).WillOnce(Return(reinterpret_cast<cJSON *>(&cjson))); in HWTEST_F()
137 int cjson = 0; in HWTEST_F() local
138 EXPECT_CALL(*cJsonMock, cJSON_CreateObject()).WillOnce(Return(reinterpret_cast<cJSON *>(&cjson))); in HWTEST_F()
139 EXPECT_CALL(*cJsonMock, cJSON_CreateArray()).WillOnce(Return(reinterpret_cast<cJSON *>(&cjson))); in HWTEST_F()
166 int cjson = 0; in HWTEST_F() local
167 EXPECT_CALL(*cJsonMock, cJSON_CreateObject()).WillOnce(Return(reinterpret_cast<cJSON *>(&cjson))); in HWTEST_F()
168 EXPECT_CALL(*cJsonMock, cJSON_CreateArray()).WillOnce(Return(reinterpret_cast<cJSON *>(&cjson))); in HWTEST_F()
179 EXPECT_CALL(*cJsonMock, cJSON_Parse(_)).WillOnce(Return(reinterpret_cast<cJSON *>(&cjson))); in HWTEST_F()
205 int cjson in HWTEST_F() local
242 int cjson = 0; HWTEST_F() local
282 int cjson = 0; HWTEST_F() local
337 int cjson = 0; HWTEST_F() local
394 int cjson = 0; HWTEST_F() local
430 int cjson = 0; HWTEST_F() local
470 int cjson = 0; HWTEST_F() local
[all...]
/foundation/filemanagement/app_file_service/tests/unittests/backup_utils/b_jsonutil/
H A Db_jsonutil_other_test.cpp79 int cjson = 0; in HWTEST_F() local
86 .WillOnce(Return(reinterpret_cast<cJSON *>(&cjson))) in HWTEST_F()
113 int cjson = 0; in HWTEST_F() local
119 EXPECT_CALL(*cJsonMock, cJSON_CreateObject()).WillOnce(Return(reinterpret_cast<cJSON *>(&cjson))); in HWTEST_F()
146 int cjson = 0; in HWTEST_F() local
153 .WillOnce(Return(reinterpret_cast<cJSON *>(&cjson))) in HWTEST_F()
160 .WillOnce(Return(reinterpret_cast<cJSON *>(&cjson))) in HWTEST_F()
161 .WillOnce(Return(reinterpret_cast<cJSON *>(&cjson))); in HWTEST_F()
192 int cjson = 0; in HWTEST_F() local
198 EXPECT_CALL(*cJsonMock, cJSON_CreateArray()).WillOnce(Return(reinterpret_cast<cJSON *>(&cjson))); in HWTEST_F()
237 int cjson = 0; HWTEST_F() local
[all...]
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/lowlatency/lowlatencylistener/src/
H A Dlow_latency_listener_test.cpp113 char* cjson = cJSON_PrintUnformatted(json); in HWTEST_F() local
114 if (cjson == nullptr) { in HWTEST_F()
118 std::string message(cjson); in HWTEST_F()
120 cJSON_free(cjson); in HWTEST_F()
164 char* cjson = cJSON_PrintUnformatted(json); in HWTEST_F() local
165 if (cjson == nullptr) { in HWTEST_F()
169 std::string message(cjson); in HWTEST_F()
171 cJSON_free(cjson); in HWTEST_F()
196 char* cjson = cJSON_PrintUnformatted(json); in HWTEST_F() local
197 if (cjson in HWTEST_F()
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/oh_adapter/src/
H A Drd_json_object.cpp124 int JsonObject::GetDeep(cJSON *cjson) in GetDeep() argument
126 if (cjson->child == nullptr) { in GetDeep()
132 cJSON *child = cjson->child; in GetDeep()
484 cJSON *GetChild(cJSON *cjson, const std::string &field, bool caseSens) in GetChild() argument
486 if (cjson->type == cJSON_Object) { in GetChild()
488 return cJSON_GetObjectItemCaseSensitive(cjson, field.c_str()); in GetChild()
490 return cJSON_GetObjectItem(cjson, field.c_str()); in GetChild()
492 } else if (cjson->type == cJSON_Array) { in GetChild()
498 return cJSON_GetArrayItem(cjson, intField); in GetChild()
505 cJSON *GetChildPowerMode(cJSON *cjson, cons argument
534 MoveToPath(cJSON *cjson, const JsonFieldPath &jsonPath, bool caseSens) MoveToPath() argument
545 MoveToPathPowerMode(cJSON *cjson, const JsonFieldPath &jsonPath, bool caseSens) MoveToPathPowerMode() argument
[all...]
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/versioninfomanager/versioninfo/src/
H A Dversion_info_test.cpp114 char* cjson = cJSON_PrintUnformatted(json); in HWTEST_F() local
115 if (cjson == nullptr) { in HWTEST_F()
119 std::string jsonStr(cjson); in HWTEST_F()
120 cJSON_free(cjson); in HWTEST_F()
150 char* cjson = cJSON_PrintUnformatted(json); in HWTEST_F() local
151 if (cjson == nullptr) { in HWTEST_F()
155 std::string jsonStr(cjson); in HWTEST_F()
156 cJSON_free(cjson); in HWTEST_F()
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/common/test/unittest/
H A Dav_sync_utils_test.cpp111 char* cjson = cJSON_PrintUnformatted(cJsonObj); in HWTEST_F() local
112 std::string jsonStr(cjson); in HWTEST_F()
115 cJSON_free(cjson); in HWTEST_F()
122 std::string jsonStr1(cjson); in HWTEST_F()
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/resourcemanager/
H A Dversion_info.cpp56 char *cjson = cJSON_PrintUnformatted(jsonObj); in ToJsonString() local
57 if (cjson == nullptr) { in ToJsonString()
61 std::string result(cjson); in ToJsonString()
62 cJSON_free(cjson); in ToJsonString()
H A Dcapability_info.cpp145 char *cjson = cJSON_PrintUnformatted(jsonObj); in ToJsonString() local
146 if (cjson == nullptr) { in ToJsonString()
150 std::string jsonString(cjson); in ToJsonString()
151 cJSON_free(cjson); in ToJsonString()
H A Dmeta_capability_info.cpp77 char *cjson = cJSON_PrintUnformatted(jsonObj); in ToJsonString() local
78 if (cjson == nullptr) { in ToJsonString()
82 std::string jsonString(cjson); in ToJsonString()
83 cJSON_free(cjson); in ToJsonString()
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/plugin/test/av_trans_input/daudio_input_test/
H A Ddaudio_input_test.cpp142 char* cjson = cJSON_PrintUnformatted(metaJson); in HWTEST_F() local
143 std::string jsonStr(cjson); in HWTEST_F()
146 cJSON_free(cjson); in HWTEST_F()
242 char* cjson = cJSON_PrintUnformatted(metaJson); in HWTEST_F() local
243 std::string jsonStr(cjson); in HWTEST_F()
246 cJSON_free(cjson); in HWTEST_F()
328 char* cjson = cJSON_PrintUnformatted(metaJson); in HWTEST_F() local
329 std::string descJsonStr(cjson); in HWTEST_F()
332 cJSON_free(cjson); in HWTEST_F()
427 char* cjson in HWTEST_F() local
[all...]
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/distributedhardwareservice/src/
H A Ddistributed_hardware_service_test.cpp288 char* cjson = cJSON_PrintUnformatted(attrJson); in HWTEST_F() local
289 if (cjson == nullptr) { in HWTEST_F()
293 std::string attrs(cjson); in HWTEST_F()
297 cJSON_free(cjson); in HWTEST_F()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/oh_adapter/include/
H A Drd_json_object.h112 int GetDeep(cJSON *cjson);
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/componentloader/src/
H A Dcomponent_loader_test.cpp313 char* cjson = cJSON_PrintUnformatted(json0bject); in HWTEST_F() local
314 if (cjson == nullptr) { in HWTEST_F()
318 std::string jsonStr(cjson); in HWTEST_F()
321 cJSON_free(cjson); in HWTEST_F()
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/resourcemanager/src/
H A Dresource_manager_test.cpp889 char* cjson = cJSON_PrintUnformatted(json); in HWTEST_F() local
890 if (cjson == nullptr) { in HWTEST_F()
894 std::string jsonStr(cjson); in HWTEST_F()
895 cJSON_free(cjson); in HWTEST_F()

Completed in 12 milliseconds