Lines Matching defs:hyperlink

205     auto hyperlink = OH_UdsHyperlink_Create();

206 EXPECT_EQ(UDMF_META_HYPERLINK, *(std::get_if<std::string>(&(hyperlink->obj)->value_[UNIFORM_DATA_TYPE])));
207 OH_UdsHyperlink_Destroy(hyperlink);
219 auto hyperlink = OH_UdsHyperlink_Create();
220 EXPECT_EQ(UDMF_META_HYPERLINK, std::string(OH_UdsHyperlink_GetType(hyperlink)));
221 OH_UdsHyperlink_Destroy(hyperlink);
240 auto hyperlink = OH_UdsHyperlink_Create();
241 hyperlink->obj->value_[URL] = "www.xxx.com";
242 EXPECT_EQ("www.xxx.com", std::string(OH_UdsHyperlink_GetUrl(hyperlink)));
243 OH_UdsHyperlink_Destroy(hyperlink);
262 auto hyperlink = OH_UdsHyperlink_Create();
263 hyperlink->obj->value_[DESCRIPTION] = "do something";
264 EXPECT_EQ("do something", std::string(OH_UdsHyperlink_GetDescription(hyperlink)));
265 OH_UdsHyperlink_Destroy(hyperlink);
284 auto hyperlink = OH_UdsHyperlink_Create();
285 int result = OH_UdsHyperlink_SetUrl(hyperlink, "www.xxx.com");
287 EXPECT_EQ("www.xxx.com", std::string(OH_UdsHyperlink_GetUrl(hyperlink)));
292 result = OH_UdsHyperlink_SetUrl(hyperlink, nullptr);
295 hyperlink->obj = nullptr;
296 result = OH_UdsHyperlink_SetUrl(hyperlink, "www.xxx.com");
298 OH_UdsHyperlink_Destroy(hyperlink);
310 auto hyperlink = OH_UdsHyperlink_Create();
311 int result = OH_UdsHyperlink_SetDescription(hyperlink, "doing something");
313 EXPECT_EQ("doing something", std::string(OH_UdsHyperlink_GetDescription(hyperlink)));
318 result = OH_UdsHyperlink_SetDescription(hyperlink, nullptr);
321 hyperlink->obj = nullptr;
322 result = OH_UdsHyperlink_SetDescription(hyperlink, "doing something");
324 OH_UdsHyperlink_Destroy(hyperlink);