/base/global/i18n_lite/frameworks/i18n/test/unittest/lite/common/ |
H A D | i18n_test.cpp | 228 std::string expect = "1970年1月7日星期三";
in HWTEST_F() local 229 EXPECT_TRUE(expect == out);
in HWTEST_F() 246 std::string expect = "الأربعاء، ٧ يناير، ١٩٧٠";
in HWTEST_F() local 247 EXPECT_TRUE(expect == out);
in HWTEST_F() 264 std::string expect = "Wednesday, January 7, 1970";
in HWTEST_F() local 265 EXPECT_TRUE(expect == out);
in HWTEST_F() 283 std::string expect = "1970年1月7日星期三";
in HWTEST_F() local 284 EXPECT_TRUE(expect == out);
in HWTEST_F() 302 std::string expect = "الأربعاء، ٧ يناير، ١٩٧٠";
in HWTEST_F() local 303 EXPECT_TRUE(expect in HWTEST_F() 321 std::string expect = "Wednesday, January 7, 1970"; HWTEST_F() local 523 std::string expect = "1,234,567"; HWTEST_F() local 538 int expect = PluralRuleType::ONE; HWTEST_F() local 577 int expect = PluralRuleType::FEW; HWTEST_F() local 613 int expect = PluralRuleType::ONE; HWTEST_F() local 634 int expect = PluralRuleType::ONE; HWTEST_F() local 661 int expect = PluralRuleType::FEW; HWTEST_F() local 694 int expect = PluralRuleType::ONE; HWTEST_F() local 733 int expect = PluralRuleType::ONE; HWTEST_F() local 772 int expect = PluralRuleType::OTHER; HWTEST_F() local 805 int expect = PluralRuleType::FEW; HWTEST_F() local 835 int expect = PluralRuleType::ONE; HWTEST_F() local 853 int expect = PluralRuleType::FEW; HWTEST_F() local 877 int expect = PluralRuleType::ONE; HWTEST_F() local 895 int expect = PluralRuleType::ONE; HWTEST_F() local 916 int expect = PluralRuleType::ONE; HWTEST_F() local 934 int expect = PluralRuleType::ONE; HWTEST_F() local 952 int expect = PluralRuleType::ONE; HWTEST_F() local 973 int expect = PluralRuleType::ONE; HWTEST_F() local 994 std::string expect = "12 %"; HWTEST_F() local 1010 int expect = PluralRuleType::ONE; HWTEST_F() local 1034 int expect = PluralRuleType::FEW; HWTEST_F() local 1199 int expect = PluralRuleType::FEW; HWTEST_F() local 1234 std::string expect = "12 min"; HWTEST_F() local 1276 std::string expect = "12 strokes"; HWTEST_F() local 1314 std::string expect = "12 ft"; HWTEST_F() local 1352 std::string expect = "12 分钟"; HWTEST_F() local [all...] |
/base/telephony/core_service/services/sim/test/ |
H A D | test.cpp | 318 string expect = result ? "success" : "fail"; in TestHasSimCard() local 319 std::cout << "TelephonyTestService Remote HasSimCard result [" << result << "] " << expect << std::endl; in TestHasSimCard() 347 string expect = (result == simReady) ? "success" : "fail"; in TestGetSimState() local 348 std::cout << "TelephonyTestService Remote GetSimState result [" << result << "] " << expect << std::endl; in TestGetSimState() 372 string expect = result ? "success" : "fail"; in TestSetPrimarySlotId() local 373 std::cout << "TelephonyTestService Remote SetPrimarySlotId result [" << result << "] " << expect << std::endl; in TestSetPrimarySlotId() 383 string expect = (result >= INVALID_VALUE) ? "success" : "fail"; in TestGetPrimarySlotId() local 384 std::cout << "TelephonyTestService Remote GetPrimarySlotId result [" << slotId << "] " << expect << std::endl; in TestGetPrimarySlotId() 397 string expect = str.empty() ? "fail" : "success"; in TestGetISOCountryCodeForSim() local 398 std::cout << "TelephonyTestService Remote GetISOCountryCodeForSim result [" << str << "] " << expect << st in TestGetISOCountryCodeForSim() 411 string expect = strcmp(str.c_str(), "test") ? "success" : "fail"; TestGetSimSpn() local 425 string expect = str.empty() ? "fail" : "success"; TestGetSimIccId() local 438 string expect = (result == -1) ? "fail" : "success"; TestGetSlotId() local 451 string expect = (result == -1) ? "fail" : "success"; TestGetSimId() local 473 string expect = str.empty() ? "fail" : "success"; TestGetSimEons() local 487 string expect = str.empty() ? "fail" : "success"; TestGetSimOperatorNumeric() local 501 string expect = str.empty() ? "fail" : "success"; TestGetIMSI() local 513 string expect = result ? "success" : "fail"; TestIsSimActive() local 528 string expect = str.empty() ? "fail" : "success"; TestGetSimGid1() local 541 string expect = str.empty() ? "fail" : "success"; TestGetSimGid2() local 555 string expect = str.empty() ? "fail" : "success"; TestGetSimTelephoneNumber() local 568 string expect = str.empty() ? "fail" : "success"; TestGetSimTeleNumberIdentifier() local 583 string expect = str.empty() ? "fail" : "success"; TestGetVoiceMailIdentifier() local 597 string expect = str.empty() ? "fail" : "success"; TestGetVoiceMailNumber() local 648 string expect = result ? "success" : "fail"; TestIsCTSimCard() local 834 string expect = (result == TELEPHONY_ERR_SUCCESS) ? "success" : "fail"; TestGetSimSubscriptionInfo() local 853 string expect = (result == TELEPHONY_ERR_SUCCESS) ? "success" : "fail"; TestSetDefaultVoiceSlotId() local 862 string expect = (result >= INVALID_VALUE) ? "success" : "fail"; TestGetDefaultVoiceSlotId() local 872 string expect = (result >= INVALID_VALUE) ? "success" : "fail"; TestGetDefaultVoiceSimId() local 887 string expect = (result == TELEPHONY_ERR_SUCCESS) ? "success" : "fail"; TestSetShowNumber() local 902 string expect = (result == TELEPHONY_ERR_SUCCESS) ? "success" : "fail"; TestSetShowName() local 915 string expect = (!result.empty()) ? "success" : "fail"; TestGetShowNumber() local 929 string expect = (!result.empty()) ? "success" : "fail"; TestGetShowName() local 940 string expect = (result == TELEPHONY_ERR_SUCCESS) ? "success" : "fail"; TestGetActiveSimAccountInfoList() local 962 string expect = (result == TELEPHONY_ERR_SUCCESS) ? "success" : "fail"; TestGetOperatorConfig() local 1208 string expect = (result != INVALID_VALUE) ? "success" : "fail"; TestGetMaxSimCount() local 1222 string expect = (result == TELEPHONY_ERR_SUCCESS) ? "success" : "fail"; TestGetOpKey() local 1236 string expect = (result == TELEPHONY_ERR_SUCCESS) ? "success" : "fail"; TestGetOpName() local 1250 string expect = (result == TELEPHONY_ERR_SUCCESS) ? "success" : "fail"; TestGetOpKeyExt() local [all...] |
/base/update/updater/services/rust/hash_signed_data/src/ |
H A D | macros.rs | 40 let c_file_name = std::ffi::CString::new(file_name).expect("unknown"); 41 let c_log_str = std::ffi::CString::new(log_str).expect("default log"); 42 // can use CString::new(...).expect(...) because file_name and log_str can't have internal 0 byte
|
/base/security/code_signature/test/unittest/ |
H A D | rust_key_enable_test.rs | 264 let udid = get_udid().expect("Failed to get UDID"); in test_parse_debug_profile() 309 let udid = get_udid().expect("Failed to get UDID"); in test_parse_iternaltesting_profile() 420 let udid = get_udid().expect("Failed to get UDID"); in test_parse_invalid_profile() 438 let udid_from_get = get_udid().expect("Failed to get UDID"); in test_get_udid_once() 439 let udid_from_global = UDID.clone().expect("UDID is None"); in test_get_udid_once() 451 let udid = get_udid().expect("Failed to get UDID"); in test_get_udid_concurrent() 452 assert_eq!(udid, UDID.clone().expect("UDID is None")); in test_get_udid_concurrent() 458 handle.join().expect("Thread panicked"); in test_get_udid_concurrent()
|
/base/hiviewdfx/hisysevent/interfaces/rust/innerkits/src/ |
H A D | sys_event_manager.rs | 143 std::str::from_utf8(&self.domain).expect("need valid domain array") in get_domain() 149 std::str::from_utf8(&self.event_name).expect("need valid event name array") in get_event_name() 171 std::str::from_utf8(&self.tz).expect("need valid time zone array") in get_time_zone() 215 std::str::from_utf8(level_arr.to_bytes()).expect("need valid level pointer") in get_level() 224 let tag = std::str::from_utf8(tag_arr.to_bytes()).expect("need valid tag pointer") in get_tag() 234 let json_str = std::str::from_utf8(json_str_arr.to_bytes()).expect("need valid json str pointer") in get_json_str() 373 let condition_wrapper = CString::new(query_rules[i].condition).expect("Need a condition for query.");
|
/base/hiviewdfx/hitrace/interfaces/rust/innerkits/hitracechain/src/ |
H A D | macros.rs | 46 std::ffi::CString::new(args).expect("").as_ptr() as *const std::ffi::c_char);
|
/base/hiviewdfx/hisysevent/test/unittest/rust/src/ |
H A D | main.rs | 66 }).expect("Construct a watcher by Watcher::new"); in test_hisysevent_add_remove_watcher_001() 142 }).expect("Construct a querier by Querier::new"); in test_hisysevent_query_001()
|
/base/security/code_signature/services/key_enable/src/ |
H A D | key_enable.rs | 113 let type_name = CString::new("asymmetric").expect("type name is invalid");
in enable_key() 114 let keyname = CString::new(key_name).expect("keyname is invalid");
in enable_key() 141 let file = File::open(PROC_KEY_FILE_PATH).expect("Open /proc/keys failed");
in get_keyring_id()
|
H A D | cert_path_utils.rs | 432 let subject_cstring = CString::new(subject).expect("convert to subject_cstring error!"); in cert_path_operation() 433 let issuer_cstring = CString::new(issuer).expect("convert to cstring error!"); in cert_path_operation()
|
/base/security/selinux_adapter/scripts/selinux_check/ |
H A D | check_baseline.py | 174 expect = ' '.join(['expect rule: (allow', domain, ' ('.join(diff), expect_perm]) 177 none_baseline_list.add('; '.join([expect, actual])) 182 expect = ' '.join(['expect rule: (allow', domain, ' ('.join(contexts), expect_perm]) 185 none_baseline_list.add('; '.join([expect, actual])) 194 '\t2. Change the policy to satisfy expect rule\n')
|
/base/msdp/device_status/rust/ipc/server/src/ |
H A D | fusion_ipc_server.rs | 71 let sa = SystemAbility::new_system_ability(MSDP_DEVICESTATUS_SERVICE_ID, true).expect( in init()
|
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/include/ |
H A D | dlp_file.h | 70 #define CHECK_RET(ret, expect, retcode, TAG) \ 72 if ((ret) != (expect)) { \ 73 DLP_LOG_ERROR(TAG, "check fail ret %{public}d, expect %{public}d, errno %{public}s", \ 74 ret, expect, strerror(errno)); \
|
/base/security/asset/services/core_service/src/operations/ |
H A D | operation_query.rs | 127 let tag = Tag::try_from(*order_by).expect("Tag::ReturnOrderBy has been verified"); in get_query_options()
|
/base/security/asset/services/core_service/src/common_event/ |
H A D | listener.rs | 215 let mut record_time = RECORD_TIME.lock().expect("Failed to lock RECORD_TIME");
|