Lines Matching refs:contentForm
1092 auto contentForm = OH_UdsContentForm_Create();
1093 EXPECT_EQ(UDMF_METE_GENERAL_CONTENT_FORM, std::string(OH_UdsContentForm_GetType(contentForm)));
1096 auto result = OH_UdsContentForm_SetThumbData(contentForm, thumbData, 5);
1097 result = (result == UDMF_E_OK) && OH_UdsContentForm_SetDescription(contentForm, "description");
1098 result = (result == UDMF_E_OK) && OH_UdsContentForm_SetTitle(contentForm, "title");
1099 result = (result == UDMF_E_OK) && OH_UdsContentForm_SetAppIcon(contentForm, appIcon, 5);
1100 result = (result == UDMF_E_OK) && OH_UdsContentForm_SetAppName(contentForm, "appName");
1101 result = (result == UDMF_E_OK) && OH_UdsContentForm_SetLinkUri(contentForm, "link url");
1103 EXPECT_EQ("description", std::string(OH_UdsContentForm_GetDescription(contentForm)));
1104 EXPECT_EQ("title", std::string(OH_UdsContentForm_GetTitle(contentForm)));
1105 EXPECT_EQ("appName", std::string(OH_UdsContentForm_GetAppName(contentForm)));
1106 EXPECT_EQ("link url", std::string(OH_UdsContentForm_GetLinkUri(contentForm)));
1110 result = OH_UdsContentForm_GetThumbData(contentForm, &readThumbData, &thumbDataLen);
1116 result = OH_UdsContentForm_GetAppIcon(contentForm, &readAppIcon, &appIconLen);
1120 OH_UdsContentForm_Destroy(contentForm);