/foundation/distributedhardware/distributed_screen/common/test/unittest/src/ |
H A D | screen_common_test.cpp | 117 nlohmann::json testJson; in HWTEST_F() local 119 EXPECT_FALSE(IsInt64(testJson, key)); in HWTEST_F() 121 testJson[key] = "test"; in HWTEST_F() 122 EXPECT_FALSE(IsInt64(testJson, key)); in HWTEST_F() 124 testJson[key] = 1; in HWTEST_F() 125 EXPECT_TRUE(IsInt64(testJson, key)); in HWTEST_F() 136 nlohmann::json testJson; in HWTEST_F() local 138 EXPECT_FALSE(IsArray(testJson, key)); in HWTEST_F() 140 testJson[key] = "test"; in HWTEST_F() 141 EXPECT_FALSE(IsArray(testJson, ke in HWTEST_F() [all...] |
/foundation/distributedhardware/distributed_screen/services/screenservice/test/unittest/sinkservice/screenregionmgr/1.0/src/ |
H A D | screenregionmgr_test.cpp | 234 nlohmann::json testJson; in HWTEST_F() local 235 testJson[KEY_SCREEN_ID] = "test"; in HWTEST_F() 236 EXPECT_FALSE(ScreenRegionManager::GetInstance().CheckContentJson(testJson)); in HWTEST_F() 247 nlohmann::json testJson; in HWTEST_F() local 249 testJson[KEY_SCREEN_ID] = screenId; in HWTEST_F() 250 testJson[KEY_DH_ID] = screenId; in HWTEST_F() 251 EXPECT_FALSE(ScreenRegionManager::GetInstance().CheckContentJson(testJson)); in HWTEST_F() 262 nlohmann::json testJson; in HWTEST_F() local 264 testJson[KEY_SCREEN_ID] = screenId; in HWTEST_F() 265 testJson[KEY_DH_I in HWTEST_F() 280 nlohmann::json testJson; HWTEST_F() local [all...] |
/foundation/arkui/ace_engine/test/unittest/base/ |
H A D | json_util_test.cpp | 46 std::string testJson = "true"; in HWTEST_F() local 52 std::unique_ptr<JsonValue> boolValue = JsonUtil::ParseJsonString(testJson); in HWTEST_F() 70 std::string testJson = "false"; in HWTEST_F() local 76 std::unique_ptr<JsonValue> boolValue = JsonUtil::ParseJsonString(testJson); in HWTEST_F() 94 std::string testJson = "-1"; in HWTEST_F() local 102 std::unique_ptr<JsonValue> intValue = JsonUtil::ParseJsonString(testJson); in HWTEST_F() 122 std::string testJson = "1"; in HWTEST_F() local 131 std::unique_ptr<JsonValue> uintValue = JsonUtil::ParseJsonString(testJson); in HWTEST_F() 151 std::string testJson = "6.66"; in HWTEST_F() local 160 std::unique_ptr<JsonValue> doubleValue = JsonUtil::ParseJsonString(testJson); in HWTEST_F() 180 std::string testJson = "\\"Ace Unittest\\""; HWTEST_F() local 204 std::string testJson = "\\"\\""; HWTEST_F() local 228 std::string testJson = R"({"JsonObjectTypeTest": "Ace Unittest"})"; HWTEST_F() local 255 std::string testJson = R"({"JsonObjectTypeTest": ""})"; HWTEST_F() local 280 std::string testJson = "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]"; HWTEST_F() local 308 std::string testJson = "[]"; HWTEST_F() local 332 std::string testJson; HWTEST_F() local 354 std::string testJson = "{Ace Unittest}"; HWTEST_F() local 1020 std::string testJson = "true"; HWTEST_F() local 1165 std::string testJson = "true"; HWTEST_F() local [all...] |
/foundation/distributedhardware/distributed_screen/services/screenservice/test/unittest/sinkservice/screenregionmgr/2.0/src/ |
H A D | screenregion_test.cpp | 498 nlohmann::json testJson; in HWTEST_F() local 499 testJson[KEY_SCREEN_ID] = "test"; in HWTEST_F() 500 EXPECT_FALSE(screenRegion_->CheckContentJson(testJson)); in HWTEST_F() 503 testJson[KEY_SCREEN_ID] = screenId; in HWTEST_F() 504 EXPECT_TRUE(screenRegion_->CheckContentJson(testJson)); in HWTEST_F()
|
/foundation/filemanagement/user_file_service/test/unittest/ |
H A D | medialibrary_file_access_test_info.cpp | 1416 json testJson = { in HWTEST_F() local 1423 auto testJsonString = testJson.dump(); in HWTEST_F() 1462 json testJson = { in HWTEST_F() local 1469 auto testJsonString = testJson.dump(); in HWTEST_F() 1508 json testJson = { in HWTEST_F() local 1511 auto testJsonString = testJson.dump(); in HWTEST_F() 1539 json testJson = { in HWTEST_F() local 1543 auto testJsonString = testJson.dump(); in HWTEST_F() 1574 json testJson = { in HWTEST_F() local 1580 auto testJsonString = testJson in HWTEST_F() 1613 json testJson = { HWTEST_F() local 1652 json testJson; HWTEST_F() local [all...] |
H A D | external_file_access_test_info.cpp | 919 json testJson = { in CheckJson() local 929 auto testJsonString = testJson.dump(); in CheckJson() 1080 json testJson = { in HWTEST_F() local 1083 auto testJsonString = testJson.dump(); in HWTEST_F() 1113 json testJson = { in HWTEST_F() local 1117 auto testJsonString = testJson.dump(); in HWTEST_F() 1150 json testJson = { in HWTEST_F() local 1156 auto testJsonString = testJson.dump(); in HWTEST_F() 1191 json testJson = { in HWTEST_F() local 1196 auto testJsonString = testJson in HWTEST_F() 1231 json testJson; HWTEST_F() local [all...] |
/foundation/distributedhardware/distributed_screen/services/screentransport/test/unittest/screendatachannel/src/ |
H A D | screen_data_channel_impl_test.cpp | 373 nlohmann::json testJson; in HWTEST_F() local 374 rectJson["0"] = testJson; in HWTEST_F()
|
/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/tcp_direct/unittest/ |
H A D | trans_tcp_direct_p2p_mock_test.cpp | 625 cJSON *testJson = cJSON_CreateObject(); in HWTEST_F() local 626 ret = OnVerifyP2pReply(authId, seq, testJson); in HWTEST_F() 630 cJSON_Delete(testJson); in HWTEST_F() 769 cJSON *testJson = cJSON_CreateObject(); in HWTEST_F() local 770 ASSERT_TRUE(testJson != nullptr); in HWTEST_F() 787 EXPECT_CALL(TcpP2pDirectMock, cJSON_ParseWithLength).WillRepeatedly(Return(testJson)); in HWTEST_F()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/ui_extension/ |
H A D | ui_extension_component_test_ng.cpp | 1215 std::string testJson = ""; in HWTEST_F() local 1216 std::unique_ptr<JsonValue> testValue = JsonUtil::ParseJsonString(testJson); in HWTEST_F() 1415 std::string testJson = "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]"; in HWTEST_F() local 1416 std::unique_ptr<JsonValue> arrayValue = JsonUtil::ParseJsonString(testJson); in HWTEST_F()
|