/base/update/updater/test/unittest/updater_ui_test/view/ |
H A D | ui_layout_unittest.cpp | 174 UxViewInfo expected { UxViewCommonInfo { 1280, 0, 800, 200, "Label_RebootToNormalSystem", "UILabel", true }, in HWTEST_F() 182 expected.commonInfo.visible = false; in HWTEST_F() 183 EXPECT_EQ(expected.commonInfo, pageInfo.viewInfos[0].commonInfo); in HWTEST_F() 184 EXPECT_EQ(expected.specificInfo, pageInfo.viewInfos[0].specificInfo); in HWTEST_F() 185 EXPECT_EQ(expected, pageInfo.viewInfos[0]); in HWTEST_F() 187 expected.commonInfo = { 1280, 200, 800, 200, "Label_UserdataReset", "UILabel", true }; in HWTEST_F() 188 std::get<UxLabelInfo>(expected.specificInfo).text = "Userdata reset"; in HWTEST_F() 189 EXPECT_EQ(expected, pageInfo.viewInfos[1]); in HWTEST_F() 191 expected.commonInfo = { 1280, 400, 800, 200, "Label_UpdateFromSDCard", "UILabel", true }; in HWTEST_F() 192 std::get<UxLabelInfo>(expected in HWTEST_F() [all...] |
H A D | ui_page_manager_unittest.cpp | 116 inline bool CheckResult(const std::vector<std::string> &expected, std::vector<std::string> &&checked)
in CheckResult() argument 119 EXPECT_TRUE(expected == checked) << ToString(expected) << "!=" << ToString(checked);
in CheckResult() 120 return expected == checked;
in CheckResult()
|
/base/security/security_guard/services/security_collector/src/ |
H A D | security_collector_manager_stub.cpp | 59 uint32_t expected = sizeof(uint64_t); in HandleSubscribeCmd() local 61 if (actual <= expected) { in HandleSubscribeCmd() 85 uint32_t expected = sizeof(uint64_t); in HandleUnsubscribeCmd() local 87 if (actual <= expected) { in HandleUnsubscribeCmd() 106 uint32_t expected = sizeof(uint64_t); in HandleStartCmd() local 108 if (actual <= expected) { in HandleStartCmd() 132 uint32_t expected = sizeof(uint64_t); in HandleStopCmd() local 134 if (actual <= expected) { in HandleStopCmd() 158 uint32_t expected = sizeof(uint32_t); in HandleSecurityEventQueryCmd() local 160 if (actual <= expected) { in HandleSecurityEventQueryCmd() [all...] |
/base/msdp/device_status/test/unittest/intention/common/src/ |
H A D | channel_test.cpp | 60 for (size_t expected = 0; expected < count;) { in HWTEST_F() 62 EXPECT_EQ(received, expected); in HWTEST_F() 63 if ((++expected % 10) == 0) { in HWTEST_F() 92 for (size_t expected = 0; expected < count; ++expected) { in HWTEST_F() 94 ASSERT_EQ(received, expected); in HWTEST_F()
|
/base/security/security_guard/services/data_collect/sa/ |
H A D | data_collect_manager_stub.cpp | 73 uint32_t expected = sizeof(int64_t);
in HandleDataCollectCmd() local 75 if (actual <= expected) {
in HandleDataCollectCmd() 90 const uint32_t expected = 4;
in HandleDataRequestCmd() local 92 if (actual <= expected) {
in HandleDataRequestCmd() 110 uint32_t expected = sizeof(uint64_t);
in HandleDataSubscribeCmd() local 112 if (actual <= expected) {
in HandleDataSubscribeCmd() 137 uint32_t expected = sizeof(uint64_t);
in HandleDataUnsubscribeCmd() local 139 if (actual <= expected) {
in HandleDataUnsubscribeCmd() 157 uint32_t expected = sizeof(uint32_t);
in HandleSecurityEventQueryCmd() local 159 if (actual <= expected) {
in HandleSecurityEventQueryCmd() 199 uint32_t expected = sizeof(uint64_t); HandleStartCmd() local 226 uint32_t expected = sizeof(uint64_t); HandleStopCmd() local 253 uint32_t expected = sizeof(uint64_t); HandleConfigUpdateCmd() local [all...] |
/base/security/security_guard/services/risk_classify/src/ |
H A D | risk_analysis_manager_stub.cpp | 51 uint32_t expected = sizeof(uint32_t);
in HandleGetSecurityModelResult() local 53 if (actual <= expected) {
in HandleGetSecurityModelResult() 74 uint32_t expected = sizeof(uint32_t) + sizeof(bool);
in HandleSetModelState() local 76 if (actual <= expected) {
in HandleSetModelState()
|
/base/security/security_guard/frameworks/common/collector/src/ |
H A D | security_collector_manager_callback_stub.cpp | 31 uint32_t expected = sizeof(uint64_t); in OnRemoteRequest() local 33 if (actual <= expected) { in OnRemoteRequest()
|
/base/security/security_guard/frameworks/common/classify/src/ |
H A D | risk_analysis_manager_callback_stub.cpp | 31 uint32_t expected = sizeof(uint32_t);
in OnRemoteRequest() local 33 if (actual <= expected) {
in OnRemoteRequest()
|
/base/hiviewdfx/hilog/test/moduletest/common/ |
H A D | adapter_test.cpp | 88 static const std::array<uint16_t, 10> expected = { in HWTEST_F() local 99 EXPECT_EQ(GetGlobalLevel(), expected[i]); in HWTEST_F() local 106 EXPECT_EQ(GetDomainLevel(domain), expected[i]); in HWTEST_F() local 113 EXPECT_EQ(GetTagLevel(tag), expected[i]); in HWTEST_F() local
|
/base/update/updater/services/include/patch/ |
H A D | update_patch.h | 56 ImageProcessor writer, const std::string& expected);
63 const BlockBuffer &oldInfo, ImageProcessor writer, const std::string& expected);
88 const std::string &expected, const std::string &partitionName) : UpdatePatchWriter(),
in ImagePatchWriter() 89 writer_(writer), expected_(expected), partitionName_(partitionName) {}
in ImagePatchWriter() 87 ImagePatchWriter(UpdateApplyPatch::ImageProcessor writer, const std::string &expected, const std::string &partitionName) ImagePatchWriter() argument
|
/base/update/updater/test/unittest/updater_ui_test/strategy/ |
H A D | ui_strategy_unittest.cpp | 71 std::unordered_map<std::string, Updater::UiStrategyCfg> expected {}; in HWTEST_F() 72 auto &sdCardCfg = expected[UPDATERMODE_SDCARD]; in HWTEST_F() 79 auto &factoryRstCfg = expected[UPDATERMODE_FACTORYRST]; in HWTEST_F() 86 auto &rebootFactoryRstCfg = expected[UPDATERMODE_REBOOTFACTORYRST]; in HWTEST_F()
|
/base/security/security_guard/frameworks/common/acquire/src/ |
H A D | acquire_data_manager_callback_stub.cpp | 31 uint32_t expected = sizeof(uint32_t); in OnRemoteRequest() local 33 if (actual <= expected) { in OnRemoteRequest()
|
/base/security/security_guard/frameworks/common/data_collect_manager/src/ |
H A D | data_collect_manager_callback_stub.cpp | 31 uint32_t expected = sizeof(uint32_t); in OnRemoteRequest() local 33 if (actual <= expected) { in OnRemoteRequest()
|
/base/telephony/core_service/test/unittest/utils_vcard_gtest/ |
H A D | contact_data_test.cpp | 672 std::string expected = "\n"; in HWTEST_F() local 674 ASSERT_EQ(expected, actual); in HWTEST_F() 681 std::string expected = "\n"; in HWTEST_F() local 683 ASSERT_EQ(expected, actual); in HWTEST_F() 690 std::string expected = "\n"; in HWTEST_F() local 692 ASSERT_EQ(expected, actual); in HWTEST_F() 699 std::string expected = "\n"; in HWTEST_F() local 701 ASSERT_EQ(expected, actual); in HWTEST_F() 708 std::string expected = "\\"; in HWTEST_F() local 710 ASSERT_EQ(expected, actua in HWTEST_F() 717 std::string expected = ";"; HWTEST_F() local 726 std::string expected = ":"; HWTEST_F() local 735 std::string expected = ","; HWTEST_F() local 744 std::string expected = ""; HWTEST_F() local 753 std::vector<std::string> expected = {""}; HWTEST_F() local 762 std::vector<std::string> expected = {"Hello", "HelloWorld"}; HWTEST_F() local 771 std::vector<std::string> expected = {"Hello;World"}; HWTEST_F() local 780 std::vector<std::string> expected = {"Hello", "HelloWorld", "HelloWorld"}; HWTEST_F() local 789 std::vector<std::string> expected = {"Hello;World;"}; HWTEST_F() local [all...] |
/base/update/updater/test/unittest/diffpatch/ |
H A D | diffpatch_unittest.cpp | 56 std::string expected = GeneraterHash(TEST_PATH_FROM + newFile); in BlockDiffPatchTest() local 58 EXPECT_EQ(0, memcmp(expected.c_str(), restoreHash.c_str(), restoreHash.size())); in BlockDiffPatchTest() 73 std::string expected = GeneraterHash(TEST_PATH_FROM + newFile); in ImgageDiffPatchFileTest() local 75 EXPECT_EQ(0, restoreHash.compare(expected)); in ImgageDiffPatchFileTest() 80 const std::string &expected, UpdatePatch::UpdateApplyPatch::ImageProcessor writer) const in TestApplyPatch() 106 ret = UpdatePatch::UpdateApplyPatch::ApplyImagePatch(param, empty, writer, expected); in TestApplyPatch() 122 std::string expected = GeneraterHash(TEST_PATH_FROM + newFile); in ImgageDiffPatchFileTest2() local 131 ret = TestApplyPatch(TEST_PATH_FROM + patchFile, TEST_PATH_FROM + oldFile, expected, in ImgageDiffPatchFileTest2() 138 EXPECT_EQ(0, restoreHash.compare(expected)); in ImgageDiffPatchFileTest2() 203 std::string expected in BlockDiffPatchTest2() local 79 TestApplyPatch(const std::string &patchName, const std::string &oldName, const std::string &expected, UpdatePatch::UpdateApplyPatch::ImageProcessor writer) const TestApplyPatch() argument [all...] |
/base/telephony/cellular_data/test/ |
H A D | apn_manager_test.cpp | 110 int32_t expected = DATA_CONTEXT_ROLE_DEFAULT_ID; in HWTEST_F() local 112 ASSERT_EQ(actual, expected); in HWTEST_F() 123 int32_t expected = DATA_CONTEXT_ROLE_MMS_ID; in HWTEST_F() local 125 ASSERT_EQ(actual, expected); in HWTEST_F() 136 int32_t expected = DATA_CONTEXT_ROLE_INTERNAL_DEFAULT_ID; in HWTEST_F() local 138 ASSERT_EQ(actual, expected); in HWTEST_F() 149 int32_t expected = DATA_CONTEXT_ROLE_IA_ID; in HWTEST_F() local 151 ASSERT_EQ(actual, expected); in HWTEST_F() 162 int32_t expected = DATA_CONTEXT_ROLE_XCAP_ID; in HWTEST_F() local 164 ASSERT_EQ(actual, expected); in HWTEST_F() 175 int32_t expected = DATA_CONTEXT_ROLE_SUPL_ID; HWTEST_F() local 188 int32_t expected = DATA_CONTEXT_ROLE_DUN_ID; HWTEST_F() local 201 int32_t expected = DATA_CONTEXT_ROLE_INVALID_ID; HWTEST_F() local [all...] |
/base/msdp/device_status/rust/modules/scheduler/test/src/ |
H A D | lib.rs | 189 let expected = hash(param); in test_post_sync_task() 190 assert_eq!(ret, expected); in test_post_sync_task() 203 let expected = hash(param); in test_post_async_task() 204 assert_eq!(ret, expected); in test_post_async_task() 256 let expected = hash(param); in test_post_blocking_task() 257 assert_eq!(ret, expected); in test_post_blocking_task()
|
/base/telephony/core_service/test/unittest/tel_ril_gtest/ |
H A D | tel_ril_common_test.cpp | 124 uint8_t expected = 10; in HWTEST_F() local 126 EXPECT_EQ(expected, actual); in HWTEST_F() 140 uint8_t expected = 10; in HWTEST_F() local 142 EXPECT_EQ(expected, actual); in HWTEST_F() 156 uint8_t expected = 5; in HWTEST_F() local 158 EXPECT_EQ(expected, actual); in HWTEST_F() 172 uint8_t expected = INVALID_HEX_CHAR; in HWTEST_F() local 174 EXPECT_EQ(expected, actual); in HWTEST_F()
|
/base/security/device_security_level/services/sa/standard/ |
H A D | dslm_ipc_process.cpp | 66 uint32_t expected = sizeof(DeviceIdentify) + sizeof(RequestOption) + sizeof(uint32_t); in DslmGetRequestFromParcel() local 68 if (expected >= actual) { in DslmGetRequestFromParcel()
|
/base/update/updater/services/diffpatch/patch/ |
H A D | update_patch.cpp | 28 ImageProcessor writer, const std::string& expected)
in ApplyImagePatch() 34 std::unique_ptr<ImagePatchWriter> patchWriter = std::make_unique<ImagePatchWriter>(writer, expected, "");
in ApplyImagePatch() 162 const BlockBuffer &oldInfo, ImageProcessor writer, const std::string& expected)
in ApplyBlockPatch() 168 std::unique_ptr<ImagePatchWriter> patchWriter = std::make_unique<ImagePatchWriter>(writer, expected, "");
in ApplyBlockPatch() 317 PATCH_LOGE("VerifySha256 SHA256 : %s expected SHA256 : %s", hexDigest.c_str(), expected_.c_str());
in Finish() 27 ApplyImagePatch(const PatchParam ¶m, const std::vector<uint8_t> &bonusData, ImageProcessor writer, const std::string& expected) ApplyImagePatch() argument 161 ApplyBlockPatch(const PatchBuffer &patchInfo, const BlockBuffer &oldInfo, ImageProcessor writer, const std::string& expected) ApplyBlockPatch() argument
|
/base/update/updater/services/include/applypatch/ |
H A D | block_set.h | 81 const std::string &expected);
|
/base/update/updater/services/applypatch/ |
H A D | block_set.cpp | 208 int32_t BlockSet::VerifySha256(const std::vector<uint8_t> &buffer, const size_t size, const std::string &expected)
in VerifySha256() argument 213 if (hexdigest == expected) {
in VerifySha256()
|
/base/telephony/cellular_call/test/unittest/imstest/ |
H A D | ims2_test.cpp | 887 std::string expected = "+861565910xxxx"; in HWTEST_F() local 891 EXPECT_EQ(imsCurrentCallList->calls[0].number, expected); in HWTEST_F()
|