Lines Matching defs:properties
1064 OH_UdmfProperty *properties = OH_UdmfProperty_Create(data);
1066 EXPECT_LE(properties->properties_->timestamp,
1069 OH_UdmfProperty_Destroy(properties);
1080 OH_UdmfProperty *properties = OH_UdmfProperty_Create(data);
1082 int result = OH_UdmfProperty_SetTag(properties, tag.c_str());
1084 EXPECT_EQ(tag, OH_UdmfProperty_GetTag(properties));
1085 OH_UdmfProperty_Destroy(properties);
1091 * @tc.desc: set properties IN_APP
1097 OH_UdmfProperty *properties = OH_UdmfProperty_Create(data);
1098 int result = OH_UdmfProperty_SetShareOption(properties, Udmf_ShareOption::SHARE_OPTIONS_IN_APP);
1100 EXPECT_EQ(Udmf_ShareOption::SHARE_OPTIONS_IN_APP, OH_UdmfProperty_GetShareOption(properties));
1102 OH_UdmfProperty_Destroy(properties);
1107 * @tc.desc: set properties CROSS_APP
1113 OH_UdmfProperty *properties = OH_UdmfProperty_Create(data);
1114 int result = OH_UdmfProperty_SetShareOption(properties, Udmf_ShareOption::SHARE_OPTIONS_CROSS_APP);
1116 EXPECT_EQ(Udmf_ShareOption::SHARE_OPTIONS_CROSS_APP, OH_UdmfProperty_GetShareOption(properties));
1118 OH_UdmfProperty_Destroy(properties);
1123 * @tc.desc: set invalid properties
1140 OH_UdmfProperty *properties = OH_UdmfProperty_Create(data);
1141 int result = OH_UdmfProperty_SetExtrasIntParam(properties, "keyInt", 0);
1143 EXPECT_EQ(0, OH_UdmfProperty_GetExtrasIntParam(properties, "keyInt", -1));
1145 OH_UdmfProperty_Destroy(properties);
1156 OH_UdmfProperty *properties = OH_UdmfProperty_Create(data);
1158 int result = OH_UdmfProperty_SetExtrasStringParam(properties, "keyStr", str.c_str());
1160 std::string actualStr(OH_UdmfProperty_GetExtrasStringParam(properties, "keyStr"));
1163 OH_UdmfProperty_Destroy(properties);