Home
last modified time | relevance | path

Searched refs:jsonComponent (Results 1 – 19 of 19) sorted by relevance

/ohos5.0/base/security/security_component_manager/interfaces/inner_api/security_component/test/unittest/src/
H A Dlocation_button_test.cpp54 nlohmann::json jsonComponent; variable
69 nlohmann::json jsonComponent; variable
82 nlohmann::json jsonComponent; variable
102 nlohmann::json jsonComponent; variable
137 nlohmann::json jsonComponent; variable
172 nlohmann::json jsonComponent; variable
198 nlohmann::json jsonComponent; variable
221 nlohmann::json jsonComponent; variable
244 nlohmann::json jsonComponent; variable
269 nlohmann::json jsonComponent; variable
[all …]
H A Dtest_common.cpp22 jsonComponent[JsonTagConstants::JSON_SC_TYPE] = LOCATION_COMPONENT; in BuildLocationComponentInfo()
23 jsonComponent[JsonTagConstants::JSON_RECT] = nlohmann::json { in BuildLocationComponentInfo()
29 jsonComponent[JsonTagConstants::JSON_NODE_ID] = 0; in BuildLocationComponentInfo()
73 jsonComponent[JsonTagConstants::JSON_WINDOW_ID] = 0; in BuildLocationComponentInfo()
78 jsonComponent[JsonTagConstants::JSON_SC_TYPE] = SAVE_COMPONENT; in BuildSaveComponentInfo()
79 jsonComponent[JsonTagConstants::JSON_NODE_ID] = 0; in BuildSaveComponentInfo()
80 jsonComponent[JsonTagConstants::JSON_RECT] = nlohmann::json { in BuildSaveComponentInfo()
129 jsonComponent[JsonTagConstants::JSON_WINDOW_ID] = 0; in BuildSaveComponentInfo()
135 jsonComponent[JsonTagConstants::JSON_NODE_ID] = 0; in BuildPasteComponentInfo()
136 jsonComponent[JsonTagConstants::JSON_RECT] = nlohmann::json { in BuildPasteComponentInfo()
[all …]
H A Dpaste_button_test.cpp53 nlohmann::json jsonComponent; variable
57 ASSERT_TRUE(button.FromJson(jsonComponent));
61 ASSERT_FALSE(button.FromJson(jsonComponent));
65 ASSERT_FALSE(button.FromJson(jsonComponent));
69 ASSERT_FALSE(button.FromJson(jsonComponent));
73 ASSERT_FALSE(button.FromJson(jsonComponent));
77 ASSERT_FALSE(button.FromJson(jsonComponent));
95 nlohmann::json jsonComponent; variable
125 nlohmann::json jsonComponent; variable
128 ASSERT_TRUE(comp1.FromJson(jsonComponent));
[all …]
H A Dsave_button_test.cpp53 nlohmann::json jsonComponent; variable
57 ASSERT_TRUE(button.FromJson(jsonComponent));
61 ASSERT_FALSE(button.FromJson(jsonComponent));
65 ASSERT_FALSE(button.FromJson(jsonComponent));
69 ASSERT_FALSE(button.FromJson(jsonComponent));
73 ASSERT_FALSE(button.FromJson(jsonComponent));
77 ASSERT_FALSE(button.FromJson(jsonComponent));
95 nlohmann::json jsonComponent; variable
125 nlohmann::json jsonComponent; variable
128 ASSERT_TRUE(comp1.FromJson(jsonComponent));
[all …]
H A Dtest_common.h39 static void BuildLocationComponentInfo(nlohmann::json& jsonComponent);
40 static void BuildSaveComponentInfo(nlohmann::json& jsonComponent);
41 static void BuildPasteComponentInfo(nlohmann::json& jsonComponent);
/ohos5.0/base/security/security_component_manager/services/security_component_service/sa/test/unittest/src/
H A Dsec_comp_info_helper_test.cpp89 nlohmann::json jsonComponent; variable
104 nlohmann::json jsonComponent; variable
120 nlohmann::json jsonComponent; variable
230 nlohmann::json jsonComponent; variable
257 nlohmann::json jsonComponent; variable
287 nlohmann::json jsonComponent; variable
312 nlohmann::json jsonComponent; variable
337 nlohmann::json jsonComponent; variable
361 nlohmann::json jsonComponent; variable
383 nlohmann::json jsonComponent; variable
[all …]
H A Dservice_test_common.cpp22 jsonComponent[JsonTagConstants::JSON_SC_TYPE] = LOCATION_COMPONENT; in BuildLocationComponentJson()
23 jsonComponent[JsonTagConstants::JSON_NODE_ID] = 0; in BuildLocationComponentJson()
24 jsonComponent[JsonTagConstants::JSON_RECT] = nlohmann::json { in BuildLocationComponentJson()
73 jsonComponent[JsonTagConstants::JSON_WINDOW_ID] = 0; in BuildLocationComponentJson()
78 jsonComponent[JsonTagConstants::JSON_SC_TYPE] = SAVE_COMPONENT; in BuildSaveComponentJson()
79 jsonComponent[JsonTagConstants::JSON_NODE_ID] = 0; in BuildSaveComponentJson()
80 jsonComponent[JsonTagConstants::JSON_RECT] = nlohmann::json { in BuildSaveComponentJson()
129 jsonComponent[JsonTagConstants::JSON_WINDOW_ID] = 0; in BuildSaveComponentJson()
135 jsonComponent[JsonTagConstants::JSON_NODE_ID] = 0; in BuildPasteComponentJson()
136 jsonComponent[JsonTagConstants::JSON_RECT] = nlohmann::json { in BuildPasteComponentJson()
[all …]
H A Dservice_test_common.h58 static void BuildLocationComponentJson(nlohmann::json& jsonComponent);
59 static void BuildSaveComponentJson(nlohmann::json& jsonComponent);
60 static void BuildPasteComponentJson(nlohmann::json& jsonComponent);
H A Dsec_comp_entity_test.cpp177 nlohmann::json jsonComponent; variable
178 ServiceTestCommon::BuildLocationComponentJson(jsonComponent);
179 SecCompBase* other = SecCompInfoHelper::ParseComponent(LOCATION_COMPONENT, jsonComponent);
/ohos5.0/base/security/security_component_manager/test/fuzztest/security_component/common/
H A Dfuzz_common.cpp76 nlohmann::json jsonComponent; in ConstructLocationJson() local
78 jsonComponent[JsonTagConstants::JSON_NODE_ID] = 0; in ConstructLocationJson()
111 jsonComponent[JsonTagConstants::JSON_WINDOW_ID] = 0; in ConstructLocationJson()
112 return jsonComponent.dump(); in ConstructLocationJson()
118 nlohmann::json jsonComponent; in ConstructSaveJson() local
120 jsonComponent[JsonTagConstants::JSON_NODE_ID] = 0; in ConstructSaveJson()
153 jsonComponent[JsonTagConstants::JSON_WINDOW_ID] = 0; in ConstructSaveJson()
154 return jsonComponent.dump(); in ConstructSaveJson()
159 nlohmann::json jsonComponent; in ConstructPasteJson() local
161 jsonComponent[JsonTagConstants::JSON_NODE_ID] = 0; in ConstructPasteJson()
[all …]
H A Dfuzz_common.h56 void ConstructWindowJson(nlohmann::json &jsonComponent,
/ohos5.0/base/security/security_component_manager/services/security_component_service/sa/sa_main/
H A Dsec_comp_manager.h54 int32_t RegisterSecurityComponent(SecCompType type, const nlohmann::json& jsonComponent,
56 int32_t UpdateSecurityComponent(int32_t scId, const nlohmann::json& jsonComponent,
59 int32_t ReportSecurityComponentClickEvent(int32_t scId, const nlohmann::json& jsonComponent,
80 const nlohmann::json& jsonComponent, const SecCompCallerInfo& caller);
H A Dsec_comp_info_helper.h28 T* ConstructComponent(const nlohmann::json& jsonComponent) in ConstructComponent() argument
31 if ((componentPtr != nullptr) && !componentPtr->FromJson(jsonComponent)) { in ConstructComponent()
40 static SecCompBase* ParseComponent(SecCompType type, const nlohmann::json& jsonComponent);
H A Dsec_comp_manager.cpp342 const nlohmann::json& jsonComponent, const SecCompCallerInfo& caller, int32_t& scId) in RegisterSecurityComponent() argument
350 SecCompBase* componentPtr = SecCompInfoHelper::ParseComponent(type, jsonComponent); in RegisterSecurityComponent()
365 SecCompEnhanceAdapter::CheckComponentInfoEnhance(caller.pid, component, jsonComponent); in RegisterSecurityComponent()
386 int32_t SecCompManager::UpdateSecurityComponent(int32_t scId, const nlohmann::json& jsonComponent, in UpdateSecurityComponent() argument
401 SecCompBase* report = SecCompInfoHelper::ParseComponent(sc->GetType(), jsonComponent); in UpdateSecurityComponent()
417 … SecCompEnhanceAdapter::CheckComponentInfoEnhance(caller.pid, reportComponentInfo, jsonComponent); in UpdateSecurityComponent()
440 const nlohmann::json& jsonComponent, const SecCompCallerInfo& caller) in CheckClickSecurityComponentInfo() argument
443 SecCompBase* report = SecCompInfoHelper::ParseComponent(sc->GetType(), jsonComponent); in CheckClickSecurityComponentInfo()
460 "CALLER_BUNDLE_NAME", bundleName, "COMPONENT_INFO", jsonComponent.dump().c_str()); in CheckClickSecurityComponentInfo()
497 const nlohmann::json& jsonComponent, const SecCompCallerInfo& caller, in ReportSecurityComponentClickEvent() argument
[all …]
H A Dsec_comp_info_helper.cpp51 …cCompBase* SecCompInfoHelper::ParseComponent(SecCompType type, const nlohmann::json& jsonComponent) in ParseComponent() argument
56 comp = ConstructComponent<LocationButton>(jsonComponent); in ParseComponent()
59 comp = ConstructComponent<PasteButton>(jsonComponent); in ParseComponent()
62 comp = ConstructComponent<SaveButton>(jsonComponent); in ParseComponent()
/ohos5.0/base/security/security_component_manager/frameworks/enhance_adapter/test/unittest/src/
H A Dsec_comp_enhance_adapter_test.cpp113 const nlohmann::json jsonComponent; variable
114 ASSERT_EQ(SC_OK, SecCompEnhanceAdapter::CheckComponentInfoEnhance(0, compInfo, jsonComponent));
/ohos5.0/base/security/security_component_manager/frameworks/enhance_adapter/include/
H A Dsec_comp_enhance_adapter.h58 const nlohmann::json& jsonComponent) = 0;
109 const nlohmann::json& jsonComponent);
/ohos5.0/base/security/security_component_manager/frameworks/enhance_adapter/src/
H A Dsec_comp_enhance_adapter.cpp341 std::shared_ptr<SecCompBase>& compInfo, const nlohmann::json& jsonComponent) in CheckComponentInfoEnhance() argument
347 return srvHandler->CheckComponentInfoEnhance(pid, compInfo, jsonComponent); in CheckComponentInfoEnhance()
/ohos5.0/base/security/security_component_manager/services/security_component_service/sa/test/mock/src/
H A Dsec_comp_enhance_adapter.cpp221 std::shared_ptr<SecCompBase>& compInfo, const nlohmann::json& jsonComponent) in CheckComponentInfoEnhance() argument