Home
last modified time | relevance | path

Searched refs:assetJsonsStr (Results 1 - 6 of 6) sorted by relevance

/foundation/bundlemanager/app_domain_verify/test/unittest/verifier/
H A Ddomain_json_util_test.cpp65 std::string assetJsonsStr = R"({})"; in HWTEST_F() local
66 ASSERT_FALSE(JsonUtil::Parse(assetJsonsStr, assetJsonObj)); in HWTEST_F()
69 assetJsonsStr = R"({"applinking":1})"; in HWTEST_F()
70 ASSERT_FALSE(JsonUtil::Parse(assetJsonsStr, assetJsonObj)); in HWTEST_F()
73 assetJsonsStr = R"({"applinkings":1})"; in HWTEST_F()
74 ASSERT_FALSE(JsonUtil::Parse(assetJsonsStr, assetJsonObj)); in HWTEST_F()
77 assetJsonsStr = R"({"applinking":1})"; in HWTEST_F()
78 ASSERT_FALSE(JsonUtil::Parse(assetJsonsStr, assetJsonObj)); in HWTEST_F()
81 assetJsonsStr = R"({"applinking":{})"; in HWTEST_F()
82 ASSERT_FALSE(JsonUtil::Parse(assetJsonsStr, assetJsonOb in HWTEST_F()
[all...]
H A Ddomain_verifier_test.cpp57 std::string assetJsonsStr = ""; in HWTEST_F() local
58 ASSERT_TRUE(DomainVerifier::VerifyHost(OHOS::NetStack::HttpClient::ResponseCode::OK, assetJsonsStr, in HWTEST_F()
/foundation/bundlemanager/app_domain_verify/frameworks/verifier/src/
H A Ddomain_json_util.cpp24 bool JsonUtil::Parse(const std::string &assetJsonsStr, AssetJsonObj &assetJsonObj) in Parse() argument
26 if (!assetJsonsStr.empty()) { in Parse()
29 if (!json::accept(assetJsonsStr)) { in Parse()
30 APP_DOMAIN_VERIFY_HILOGE(APP_DOMAIN_VERIFY_AGENT_MODULE_SERVICE, "assetJsonsStr can not be accept."); in Parse()
33 jsonObj = json::parse(assetJsonsStr); in Parse()
35 APP_DOMAIN_VERIFY_HILOGE(APP_DOMAIN_VERIFY_AGENT_MODULE_SERVICE, "assetJsonsStr can not be parsed."); in Parse()
H A Ddomain_verifier.cpp23 const std::string &assetJsonsStr, const AppVerifyBaseInfo &appVerifyBaseInfo) in VerifyHost()
30 if (JsonUtil::Parse(assetJsonsStr, assetJsonObj)) { in VerifyHost()
22 VerifyHost(OHOS::NetStack::HttpClient::ResponseCode responseCode, const std::string &assetJsonsStr, const AppVerifyBaseInfo &appVerifyBaseInfo) VerifyHost() argument
/foundation/bundlemanager/app_domain_verify/frameworks/verifier/include/
H A Ddomain_json_util.h25 static bool Parse(const std::string &assetJsonsStr, AssetJsonObj &assetJsonObj);
H A Ddomain_verifier.h29 const std::string &assetJsonsStr, const AppVerifyBaseInfo &appVerifyBaseInfo);

Completed in 3 milliseconds