/test/xts/dcts/communication/softbus_standard/transmission/sendmsg/ |
D | trans_func_test.cpp | 47 int ret = RegisterDeviceStateDefCallback(); in SetUpTestCase() local 48 EXPECT_EQ(SOFTBUS_OK, ret) << "call reg node state callback fail"; in SetUpTestCase() 49 ret = CheckRemoteDeviceIsNull(BOOL_TRUE); in SetUpTestCase() 50 ASSERT_EQ(SOFTBUS_OK, ret) << "get node fail,please check network"; in SetUpTestCase() 57 int ret = UnRegisterDeviceStateDefCallback(); in TearDownTestCase() local 58 EXPECT_EQ(SOFTBUS_OK, ret) << "call unReg node state callback fail"; in TearDownTestCase() 72 int ret; variable 73 ret = CreateSsAndOpenSession4Data(); 74 ASSERT_EQ(SOFTBUS_OK, ret) << "create Ss and openS[data] fail"; 77 ret = SendData4Data(DATA_TYPE_BYTE, size); [all …]
|
/test/xts/acts/kernel_lite/io_posix/src/ |
D | IoTestSprintf.cpp | 31 int ret = sprintf(str, "%d", -2147483648); variable 32 EXPECT_EQ(ret, 11) << "> sprintf fail, errno = " << errno; 35 ret = sprintf(str, "%d", 2147483647); 36 EXPECT_EQ(ret, 10) << "> sprintf fail, errno = " << errno; 39 ret = sprintf(str, "%i", -2147483648); 40 EXPECT_EQ(ret, 11) << "> sprintf fail, errno = " << errno; 43 ret = sprintf(str, "%i", 2147483647); 44 EXPECT_EQ(ret, 10) << "> sprintf fail, errno = " << errno; 47 ret = sprintf(str, "%u", 0); 48 EXPECT_EQ(ret, 1) << "> sprintf fail, errno = " << errno; [all …]
|
D | IoTestSscanf.cpp | 30 int ret = sscanf("1.196532544", "%f", &f); variable 31 EXPECT_EQ(ret, 1) << "> sscanf fail, errno = " << errno; 35 ret = sscanf("1.196532544", "%Lf", &f1); 36 EXPECT_EQ(ret, 1) << "> sscanf fail, errno = " << errno; 39 ret = sscanf("1.66666", "%6f", &f); 40 EXPECT_EQ(ret, 1) << "> sscanf fail, errno = " << errno; 43 ret = sscanf("1.66666", "%8f", &f); 44 EXPECT_EQ(ret, 1) << "> sscanf fail, errno = " << errno; 57 int ret = sscanf("1.100000e+00", "%e", &f); variable 58 EXPECT_EQ(ret, 1) << "> sscanf fail, errno = " << errno; [all …]
|
D | IoTestString.cpp | 28 int ret = strverscmp("hello world !", "HELLO WORLD"); variable 29 EXPECT_GT(ret, 0); 31 ret = strverscmp("HELLO WORLD", "hello world !"); 32 EXPECT_LT(ret, 0); 34 ret = strverscmp("hello world !", "hello world !"); 35 EXPECT_EQ(ret, 0); 45 int ret = strcoll("AbC", "ABC"); variable 46 EXPECT_GT(ret, 0); 48 ret = strcoll("ABC", "abc"); 49 EXPECT_LT(ret, 0); [all …]
|
D | IoTestStdlib.cpp | 33 char *ret = gcvt(999, 3, str); variable 34 EXPECT_STREQ(ret, str); 37 ret = gcvt(-99.456, 5, str); 38 EXPECT_STREQ(ret, str); 41 ret = gcvt(0.968e8, 8, str); 42 EXPECT_STREQ(ret, str); 54 char *ret = fcvt(123.456, 5, &decpt, &sign); variable 55 EXPECT_STREQ(ret, "12345600"); 59 ret = fcvt(-7.89e13, 12, &decpt, &sign); 60 EXPECT_STREQ(ret, "789000000000000"); [all …]
|
D | IoTestStrings.cpp | 29 int ret; variable 31 ret = ffsl(1 << i); 32 EXPECT_EQ(ret, i + 1); 35 ret = ffsl(26); 36 EXPECT_EQ(ret, 2); 38 ret = ffsl(0); 39 EXPECT_EQ(ret, 0); 49 int ret = strncasecmp("abcdefg", "abcdEFg", 7); variable 50 EXPECT_EQ(ret, 0); 52 ret = strncasecmp("abcdefg", "abcdEF", 7); [all …]
|
/test/xts/acts/multimedia_lite/media_lite_posix/player_native/src/ |
D | ActsMediaPlayerVideoTest.cpp | 68 int32_t ret = g_tagTestSample.adaptr->SetSource(source); in CreateAndSetSource() local 70 return ret; in CreateAndSetSource() 80 int32_t ret = FileCheck(g_avFileName); in HWTEST_F() local 81 EXPECT_EQ(HI_SUCCESS, ret); in HWTEST_F() 82 ret = CreateAndSetSource(); in HWTEST_F() 83 EXPECT_EQ(HI_SUCCESS, ret); in HWTEST_F() 84 ret = g_tagTestSample.adaptr->Prepare(); in HWTEST_F() 85 EXPECT_EQ(HI_SUCCESS, ret); in HWTEST_F() 86 ret = g_tagTestSample.adaptr->SetVideoSurface(g_surface); in HWTEST_F() 87 EXPECT_EQ(HI_SUCCESS, ret); in HWTEST_F() [all …]
|
/test/xts/dcts/distributedhardware/distributedscreentest/ |
D | dsreen_automat_test.cpp | 70 int ret = StartMirror(0); variable 71 EXPECT_EQ(g_dSreenOk, ret) << "StartMirror fail"; 81 int ret = StopMirror(0); variable 82 EXPECT_EQ(g_dSreenOk, ret) << "StopMirror fail"; 92 int ret = StartExpand(0); variable 93 EXPECT_EQ(g_dSreenOk, ret) << "StartExpand fail"; 103 int ret = StopExpand(0); variable 104 EXPECT_EQ(g_dSreenOk, ret) << "StopExpand fail"; 114 int ret = CreateWindow(0); variable 115 EXPECT_EQ(g_dSreenOk, ret) << "CreateWindow fail"; [all …]
|
/test/xts/dcts/distributedhardware/distributedcameratest/ |
D | dcamera_automat_test.cpp | 38 int32_t ret = mainDemo->InitSensors(); in SetUpTestCase() local 39 if (ret == camoreError) { in SetUpTestCase() 44 ret = mainDemo->InitCameraDevice(); in SetUpTestCase() 45 if (ret == camoreError) { in SetUpTestCase() 68 int32_t ret = PreviewOn(0, mainDemo); variable 69 EXPECT_EQ(cameraOk, ret) << "PreviewOn fail"; 79 int32_t ret = mainDemo->SetAwbMode(sleepOk); variable 80 EXPECT_EQ(cameraOk, ret) << "SetAwbMode incandescent fail"; 90 int32_t ret = mainDemo->SetAwbMode(cameraOk); variable 91 EXPECT_EQ(cameraOk, ret) << "SetAwbMode fail"; [all …]
|
/test/xts/dcts/communication/softbus_standard/transmission/reliability/ |
D | trans_reliability_test.cpp | 47 int ret = RegisterDeviceStateDefCallback(); in SetUpTestCase() local 48 EXPECT_EQ(SOFTBUS_OK, ret) << "call reg node state callback fail"; in SetUpTestCase() 50 ret = CheckRemoteDeviceIsNull(BOOL_TRUE); in SetUpTestCase() 51 ASSERT_EQ(SOFTBUS_OK, ret) << "get node fail,please check network"; in SetUpTestCase() 58 int ret = UnRegisterDeviceStateDefCallback(); in TearDownTestCase() local 59 EXPECT_EQ(SOFTBUS_OK, ret) << "call unReg node state callback fail"; in TearDownTestCase() 73 int ret; variable 76 ret = SendBytes(sessionId, data.c_str(), data.length()); 77 EXPECT_EQ(SOFTBUS_TRANS_INVALID_SESSION_ID, ret); 89 int ret; variable [all …]
|
/test/xts/acts/kernel_lite/math_posix/src/ |
D | MathComplexApiTest.cpp | 35 int ret = TestCabs(); variable 36 ASSERT_EQ(ret, 0); 44 int ret = TestCabsf(); variable 45 ASSERT_EQ(ret, 0); 54 int ret = TestCabsl(); variable 55 ASSERT_EQ(ret, 0); 64 int ret = TestCacos(); variable 65 ASSERT_EQ(ret, 0); 74 int ret = TestCacosf(); variable 75 ASSERT_EQ(ret, 0); [all …]
|
/test/xts/acts/security_lite/permission_posix/pms/src/ |
D | ActsPMSDeleteTest.cpp | 98 int ret = SaveOrUpdatePermissions(TEST_APP_ID, g_systemPers, SYS_PERM_NUM, FIRST_INSTALL); variable 99 EXPECT_EQ(ret, PERM_ERRORCODE_SUCCESS) << "save ret = " << ret << endl; 100 ret = DeletePermissions(TEST_APP_ID); 101 EXPECT_EQ(ret, PERM_ERRORCODE_SUCCESS) << "delete ret = " << ret << endl; 112 int ret = DeletePermissions(TEST_APP_ID); variable 113 EXPECT_EQ(ret, PERM_ERRORCODE_SUCCESS) << "delete ret = " << ret << endl; 114 ret = SaveOrUpdatePermissions(TEST_APP_ID, g_systemPers, SYS_PERM_NUM, FIRST_INSTALL); 115 EXPECT_EQ(ret, PERM_ERRORCODE_SUCCESS) << "save ret = " << ret << endl; 116 ret = DeletePermissions(TEST_APP_ID); 117 EXPECT_EQ(ret, PERM_ERRORCODE_SUCCESS) << "delete ret = " << ret << endl; [all …]
|
/test/xts/acts/distributeddatamgr_lite/kv_store_posix/src/ |
D | KvStoreTest.cpp | 39 int ret = mkdir("/storage/com.openharmony.kv", S_IRUSR | S_IWUSR); in SetUpTestCase() local 40 printf("/storage/com.openharmony.kv ret = %d\n", ret); in SetUpTestCase() 41 ret = UtilsSetEnv("/storage/com.openharmony.kv"); in SetUpTestCase() 42 EXPECT_EQ(ret, 0); in SetUpTestCase() 47 int ret = rmdir("/storage/com.openharmony.kv/kvstore"); in TearDownTestCase() local 48 printf("/storage/com.openharmony.kv/kvstore ret = %d\n", ret); in TearDownTestCase() 49 ret = rmdir("/storage/com.openharmony.kv"); in TearDownTestCase() 50 printf("/storage/com.openharmony.kv ret = %d\n", ret); in TearDownTestCase() 66 int ret = 0; in TouchKVFiles() local 82 ret = UtilsSetValue(keytemp, valuetemp); in TouchKVFiles() [all …]
|
/test/xts/acts/security_lite/huks/common/ |
D | hks_test_curve25519.c | 37 int32_t ret = HksInitParamSet(¶mSet); in TestGenerateEd25519Key() local 38 HKS_TEST_ASSERT(ret == 0); in TestGenerateEd25519Key() 42 ret = HksAddParams(paramSet, &algParam, 1); in TestGenerateEd25519Key() 43 HKS_TEST_ASSERT(ret == 0); in TestGenerateEd25519Key() 47 ret = HksAddParams(paramSet, &keySizeParam, 1); in TestGenerateEd25519Key() 48 HKS_TEST_ASSERT(ret == 0); in TestGenerateEd25519Key() 52 ret = HksAddParams(paramSet, &purposeParam, 1); in TestGenerateEd25519Key() 53 HKS_TEST_ASSERT(ret == 0); in TestGenerateEd25519Key() 57 ret = HksAddParams(paramSet, &digestParam, 1); in TestGenerateEd25519Key() 58 HKS_TEST_ASSERT(ret == 0); in TestGenerateEd25519Key() [all …]
|
/test/xts/hats/hdf/wlan/wifi/hal/ |
D | wifi_hal_test.cpp | 51 int ret; in SetUpTestCase() local 53 ret = WifiConstruct(&g_wifi); in SetUpTestCase() 54 ASSERT_EQ(HDF_SUCCESS, ret); in SetUpTestCase() 59 int ret; in TearDownTestCase() local 61 ret = WifiDestruct(&g_wifi); in TearDownTestCase() 62 ASSERT_EQ(HDF_SUCCESS, ret); in TearDownTestCase() 67 int ret; in SetUp() local 69 ret = g_wifi->start(nullptr); in SetUp() 70 ASSERT_EQ(HDF_ERR_INVALID_PARAM, ret); in SetUp() 71 ret = g_wifi->start(g_wifi); in SetUp() [all …]
|
/test/xts/acts/distributeddatamgr_lite/kv_store_hal/src/ |
D | kvstore_func_test.c | 66 int ret; in SetKVFiles() local 82 ret = UtilsSetValue(keytemp, valuetemp); in SetKVFiles() 84 TEST_ASSERT_EQUAL_INT(0, ret); in SetKVFiles() 86 TEST_ASSERT_EQUAL_INT(-1, ret); in SetKVFiles() 88 ret = UtilsGetValue(keytemp, temp, MAX_VALUE_LEN_TEST); in SetKVFiles() 91 TEST_ASSERT_EQUAL_INT(0, ret); in SetKVFiles() 93 TEST_ASSERT_GREATER_THAN_INT(0, ret); in SetKVFiles() 97 TEST_ASSERT_EQUAL_INT(-1, ret); in SetKVFiles() 112 int ret; in ReadKVFiles() local 129 ret = UtilsGetValue(keytemp, temp, MAX_VALUE_LEN_TEST); in ReadKVFiles() [all …]
|
/test/xts/device_attest_lite/services/core/attest/ |
D | attest_service.c | 40 int32_t ret; in GetAuthResultCode() local 43 ret = g_authResultCode; in GetAuthResultCode() 45 return ret; in GetAuthResultCode() 59 int32_t ret = 0; in ConnectWiseDevice() local 65 ret = D2CConnect(); in ConnectWiseDevice() 66 if (ret == ATTEST_OK) { in ConnectWiseDevice() 71 return ret; in ConnectWiseDevice() 87 int32_t ret = ATTEST_OK; in ResetDevice() local 93 ret = GetChallenge(&challenge, ATTEST_ACTION_RESET); in ResetDevice() 94 if (ret != ATTEST_OK) { in ResetDevice() [all …]
|
/test/xts/acts/startup_lite/syspara_hal/src/ |
D | parameter_func_test.c | 66 int ret; variable 70 ret = SetParameter(key, value); 71 TEST_ASSERT_EQUAL_INT(0, ret); 82 int ret; variable 86 ret = SetParameter(key, value); 87 TEST_ASSERT_EQUAL_INT(-9, ret); 99 int ret; variable 103 ret = SetParameter(key, value); 104 TEST_ASSERT_EQUAL_INT(0, ret); 115 int ret; variable [all …]
|
/test/xts/acts/update_lite/dupdate_hal/src/ |
D | ota_func_test.c | 63 unsigned int ret; variable 64 ret = HotaInit(ERRORCALLBACK, STATUSCALLBACK); 65 printf("HotaInit return = %d\r\n", ret); 66 TEST_ASSERT_EQUAL_INT(OHOS_SUCCESS, ret); 76 unsigned int ret; variable 77 ret = HotaSetPackageType(USE_HOS_PKG); 78 printf("use package flag = %d\r\n, return = %d\r\n", USE_HOS_PKG, ret); 79 TEST_ASSERT_EQUAL_INT(OHOS_SUCCESS, ret); 80 ret = HotaSetPackageType(NOT_HOS_PKG); 81 printf("use package flag = %d\r\n, return = %d\r\n", NOT_HOS_PKG, ret); [all …]
|
/test/xts/hats/hdf/usb/functionTest/common/ |
D | usbd_function_test.cpp | 51 auto ret = g_usbInterface->SetPortRole(TEST_PORT_ID, TEST_POWER_ROLE, TEST_DATAR_ROLE); in SetUpTestCase() local 53 HDF_LOGI("UsbdFunctionTest::[Device] %{public}d SetPortRole=%{public}d", __LINE__, ret); in SetUpTestCase() 54 ASSERT_EQ(0, ret); in SetUpTestCase() 55 if (ret != 0) { in SetUpTestCase() 76 auto ret = g_usbInterface->GetCurrentFunctions(funcs); variable 77 HDF_LOGI("UsbdFunctionTest::SUB_USB_HDI_1250 %{public}d ret=%{public}d", __LINE__, ret); 78 ASSERT_EQ(0, ret); 90 auto ret = g_usbInterface->SetCurrentFunctions(1); variable 91 …OGI("UsbdFunctionTest::SUB_USB_HDI_1270 %{public}d SetCurrentFunctions=%{public}d", __LINE__, ret); 92 ASSERT_EQ(0, ret); [all …]
|
/test/xts/acts/update_lite/dupdate_posix/src/ |
D | UpdateTest.cpp | 47 unsigned int ret; variable 48 ret = HotaInit(NULL, NULL); 49 printf("HotaInit return = %d\r\n", ret); 50 EXPECT_EQ(OHOS_SUCCESS, ret); 60 unsigned int ret; variable 61 ret = HotaSetPackageType(USE_HOS_PKG); 62 printf("use package flag = %d\r\n, return = %d\r\n", USE_HOS_PKG, ret); 63 EXPECT_EQ(OHOS_SUCCESS, ret); 73 unsigned int ret; variable 74 ret = HotaSetPackageType(NOT_HOS_PKG); [all …]
|
/test/xts/device_attest/services/core/attest/ |
D | attest_service.c | 40 int32_t ret; in GetAuthResultCode() local 43 ret = g_authResultCode; in GetAuthResultCode() 45 return ret; in GetAuthResultCode() 59 int32_t ret = ATTEST_OK; in ResetDevice() local 65 ret = GetChallenge(&challenge, ATTEST_ACTION_RESET); in ResetDevice() 66 if (ret != ATTEST_OK) { in ResetDevice() 67 ATTEST_LOG_ERROR("[ResetDevice] Get challenge failed, ret = %d.", ret); in ResetDevice() 71 ret = GenResetMsg(challenge, &reqMsg); in ResetDevice() 72 if (ret != ATTEST_OK) { in ResetDevice() 73 ATTEST_LOG_ERROR("[ResetDevice] Generate reset request message failed, ret = %d.", ret); in ResetDevice() [all …]
|
/test/xts/hats/hdf/input/hdi_input/common/ |
D | hdi_input_test.cpp | 52 int32_t ret; in SetUpTestCase() local 53 …ret = memset_s(g_allDev, MAX_DEVICES * sizeof(InputDevDesc), 0, MAX_DEVICES * sizeof(InputDevDesc)… in SetUpTestCase() 54 if (ret != 0) { in SetUpTestCase() 58 ret = GetInputInterface(&g_inputInterface); in SetUpTestCase() 59 if (ret != INPUT_SUCCESS) { in SetUpTestCase() 60 HDF_LOGE("%s: get input hdi failed, ret %d \n", __func__, ret); in SetUpTestCase() 65 ret = g_inputInterface->iInputManager->ScanInputDevice(g_allDev, MAX_DEVICES); in SetUpTestCase() 66 if (ret) { in SetUpTestCase() 67 HDF_LOGE("%s: scan device failed, ret %d \n", __func__, ret); in SetUpTestCase() 110 int32_t ret; in ReportHotPlugEventPkgCallback() local [all …]
|
/test/xts/dcts/communication/softbus_standard/transmission/sendfile/ |
D | trans_file_func_test.cpp | 94 int ret = SetFileSendListener(DEF_PKG_NAME, SESSION_NAME_FILE, GetSendFileListener()); in SetUp() local 95 EXPECT_EQ(SOFTBUS_OK, ret) << "call SetFileSendListener fail"; in SetUp() 96 …ret = SetFileReceiveListener(DEF_PKG_NAME, SESSION_NAME_FILE, GetRecvFileListener(), RECV_FILE_PAT… in SetUp() 97 EXPECT_EQ(SOFTBUS_OK, ret) << "call SetFileSendListener fail"; in SetUp() 110 int ret = RegisterDeviceStateDefCallback(); in SetUpTestCase() local 111 EXPECT_EQ(SOFTBUS_OK, ret) << "call reg node state callback fail"; in SetUpTestCase() 113 ret = CheckRemoteDeviceIsNull(BOOL_TRUE); in SetUpTestCase() 114 ASSERT_EQ(SOFTBUS_OK, ret) << "get node fail,please check network"; in SetUpTestCase() 130 int ret = UnRegisterDeviceStateDefCallback(); in TearDownTestCase() local 131 EXPECT_EQ(SOFTBUS_OK, ret) << "call unReg node state callback fail"; in TearDownTestCase() [all …]
|
/test/xts/hats/hdf/wlan/wifi/client/ |
D | hdf_client_test.cpp | 59 int32_t ret; variable 64 ret = WifiSetCountryCode(WLAN_IFNAME, code, len); 65 EXPECT_EQ(RET_CODE_SUCCESS, ret); 66 ret = WifiSetCountryCode(WLAN_IFNAME, codeDigital, len); 67 bool flag = (ret == HDF_SUCCESS || ret == HDF_ERR_NOT_SUPPORT); 78 int32_t ret; variable 81 ret = GetUsableNetworkInfo(&networkInfo); 82 EXPECT_EQ(RET_CODE_SUCCESS, ret); 92 int32_t ret; variable 95 ret = IsSupportCombo(&isSupportCombo); [all …]
|