Home
last modified time | relevance | path

Searched refs:eventJsonStr (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/base/hiviewdfx/hiview/base/event_store/test/unittest/common/
H A Dsys_event_store_utility_test.cpp126 std::string eventJsonStr = event.AsJsonStr(); in CheckEvent() local
127 HIVIEW_LOGI("event=%{public}s", eventJsonStr.c_str()); in CheckEvent()
128 ASSERT_FALSE(eventJsonStr.empty()); in CheckEvent()
130 ASSERT_TRUE(eventJsonStr.find(EventCol::NAME) != std::string::npos); in CheckEvent()
131 ASSERT_TRUE(eventJsonStr.find(EventCol::TYPE) != std::string::npos); in CheckEvent()
132 ASSERT_TRUE(eventJsonStr.find(EventCol::TS) != std::string::npos); in CheckEvent()
133 ASSERT_TRUE(eventJsonStr.find(EventCol::TZ) != std::string::npos); in CheckEvent()
134 ASSERT_TRUE(eventJsonStr.find(EventCol::PID) != std::string::npos); in CheckEvent()
135 ASSERT_TRUE(eventJsonStr.find(EventCol::TID) != std::string::npos); in CheckEvent()
136 ASSERT_TRUE(eventJsonStr.find(EventCol::UID) != std::string::npos); in CheckEvent()
[all …]
/ohos5.0/base/hiviewdfx/hisysevent/test/moduletest/common/
H A Dhisysevent_wrote_result_check_test.cpp211 std::string eventJsonStr = sysEvent->AsJson(); in __anon1cb05ef20502() local
212 return IsContains(eventJsonStr, "\"" + std::string(PARAM_KEY) + "\":30949.4,"); in __anon1cb05ef20502()
334 std::string eventJsonStr = sysEvent->AsJson(); in __anon1cb05ef20a02() local
380 std::string eventJsonStr = sysEvent->AsJson(); in __anon1cb05ef20c02() local
381 return IsContains(eventJsonStr, "\"" + std::string(PARAM_KEY) + "\":230.47,"); in __anon1cb05ef20c02()
405 std::string eventJsonStr = sysEvent->AsJson(); in __anon1cb05ef20d02() local
406 return IsContains(eventJsonStr, "\"" + std::string(PARAM_KEY) + "\":[1.1,2.2,3.5,4],"); in __anon1cb05ef20d02()
448 std::string eventJsonStr = sysEvent->AsJson(); in __anon1cb05ef20f02() local
449 return IsContains(eventJsonStr, "\"" + std::string(PARAM_KEY) + "\":-3.5,"); in __anon1cb05ef20f02()
468 std::string eventJsonStr = sysEvent->AsJson(); in __anon1cb05ef21002() local
[all …]
/ohos5.0/base/security/security_guard/services/data_collect/collect/hiview/
H A Dhiview_listener.cpp67 std::string eventJsonStr = sysEvent->AsJson(); in GetSecEvent() local
68 if (eventJsonStr.empty() || !nlohmann::json::accept(eventJsonStr)) { in GetSecEvent()
72 nlohmann::json eventJson = nlohmann::json::parse(eventJsonStr); in GetSecEvent()
/ohos5.0/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/
H A Devent_query_wrapper_builder.cpp256 auto eventJsonStr = iter->AsJsonStr(); in TransportSysEvent() local
257 if (eventJsonStr.empty()) { in TransportSysEvent()
260 std::u16string curJson = Str8ToStr16(eventJsonStr); in TransportSysEvent()
/ohos5.0/base/hiviewdfx/hiview/base/test/unittest/common/
H A Dsys_event_test.cpp115 auto eventJsonStr = sysEvent->AsJsonStr(); variable
116 bool isMatch = std::regex_match(eventJsonStr, baseMatch, expValue);
140 auto eventJsonStr = sysEvent->AsJsonStr(); variable
141 bool isMatch = std::regex_match(eventJsonStr, baseMatch, expValue);