Signed-off-by: h30013885 <heyinshen1@huawei.com>
This commit is contained in:
h30013885
2024-05-21 10:18:53 +08:00
parent 2d56d505b5
commit 5073ed5f2c
8 changed files with 12 additions and 6 deletions
@@ -63,7 +63,7 @@ namespace OHOS {
#define TEST_DEV_AUTH_SLEEP_TIME 50000
#define TEST_DEV_AUTH_SLEEP_TIME2 600000
#define TEST_TRANSMIT_DATA_LEN 2048
#define TEST_HKS_DATA_PATH "/data/service/el1/public/huks_service/maindata/+0+0+0+0"
#define TEST_HKS_DATA_PATH "/data/service/el1/public/huks_service/tmp/+0+0+0+0"
#define TEST_DEV_AUTH_TEMP_KEY_PAIR_LEN 32
static const int32_t TEST_AUTH_OS_ACCOUNT_ID = 100;
static const int TEST_DEV_AUTH_BUFFER_SIZE = 128;
+1
View File
@@ -118,6 +118,7 @@ ohos_unittest("deviceauth_llt") {
"ENABLE_P2P_AUTH_EC_SPEKE",
"DEV_AUTH_FUNC_TEST",
"ENABLE_PSEUDONYM",
"DEFAULT_V2_NOT_SUPPORT",
]
cflags = [ "-DHILOG_ENABLE" ]
@@ -39,7 +39,7 @@ static const std::string TEST_SYM_AUTH_CODE2 = "2f7562744654535564586e665467546b
static const std::string TEST_SYM_USER_ID3 = "1234ABCDE";
static const std::string TEST_SYM_DEVICE_ID3 = "TestAuthId3";
static const std::string TEST_GROUP_DATA_PATH = "/data/service/el1/public/deviceauthMock";
static const std::string TEST_HKS_DATA_PATH = "/data/service/el1/public/huks_service/maindata/+0+0+0+0";
static const std::string TEST_HKS_DATA_PATH = "/data/service/el1/public/huks_service/tmp/+0+0+0+0";
static const int TEST_DEV_AUTH_BUFFER_SIZE = 128;
@@ -61,7 +61,7 @@ namespace {
#define TEST_QUERY_PARAMS "bac"
#define TEST_PIN_CODE "123456"
#define TEST_GROUP_DATA_PATH "/data/service/el1/public/deviceauthMock"
#define TEST_HKS_DATA_PATH "/data/service/el1/public/huks_service/maindata/+0+0+0+0"
#define TEST_HKS_DATA_PATH "/data/service/el1/public/huks_service/tmp/+0+0+0+0"
#define TEST_DEV_AUTH_TEMP_KEY_PAIR_LEN 32
#define TEST_DEV_AUTH_SLEEP_TIME 50000
#define TEST_DEV_AUTH_SLEEP_TIME2 60000
@@ -35,7 +35,7 @@ namespace {
#define TEST_DEV_PK "87364761534f454d33567a73424e794f"
#define BYTE_TO_HEX_OPER_LENGTH 2
static const std::string TEST_HKS_DATA_PATH = "/data/service/el1/public/huks_service/maindata/+0+0+0+0";
static const std::string TEST_HKS_DATA_PATH = "/data/service/el1/public/huks_service/tmp/+0+0+0+0";
static const std::string TEST_GROUP_DATA_PATH = "/data/service/el1/public/deviceauthMock";
static const int TEST_DEV_AUTH_BUFFER_SIZE = 128;
@@ -28,7 +28,12 @@
static bool g_isIsoSupported = true;
static bool g_isPakeV1Supported = true;
#ifdef DEFAULT_V2_NOT_SUPPORT
static bool g_isSessionV2Supported = false;
#else
static bool g_isSessionV2Supported = true;
#endif
void SetPakeV1Supported(bool isSupported)
{
@@ -64,7 +64,7 @@ static const std::string TEST_AUTH_PARAMS = "{\"peerConnDeviceId\":\"52E2706717D
"749558BD2E6492C\",\"servicePkgName\":\"TestAppId\",\"isClient\":true}";
static const std::string TEST_AUTH_CODE = "1234123412341234123412341234123412341234123412341234123412341234";
static const std::string TEST_GROUP_DATA_PATH = "/data/service/el1/public/deviceauthMock";
static const std::string TEST_HKS_DATA_PATH = "/data/service/el1/public/huks_service/maindata/+0+0+0+0";
static const std::string TEST_HKS_DATA_PATH = "/data/service/el1/public/huks_service/tmp/+0+0+0+0";
static const int TEST_DEV_AUTH_BUFFER_SIZE = 128;
static const int32_t TEST_AUTH_OS_ACCOUNT_ID = 100;
@@ -40,7 +40,7 @@ namespace {
#define TEST_AUTH_ID "TestAuthId"
#define TEST_USER_ID "4269DC28B639681698809A67EDAD08E39F207900038F91FEF95DD042FE2874E4"
#define TEST_GROUP_DATA_PATH "/data/service/el1/public/deviceauthMock"
#define TEST_HKS_DATA_PATH "/data/service/el1/public/huks_service/maindata/+0+0+0+0"
#define TEST_HKS_DATA_PATH "/data/service/el1/public/huks_service/tmp/+0+0+0+0"
#define TEST_REQ_ID 123
#define TEST_OS_ACCOUNT_ID 100
#define TEST_OS_ACCOUNT_ID2 105