diff --git a/xts_lite/device_attest_lite/device_attestQuerry_posix/BUILD.gn b/xts_lite/device_attest_lite/device_attestQuerry_posix/BUILD.gn index b985c51db04a724f18be0924a0315531c1a1dace..e476b8a5409138e52a3496b35728f2e5575a11da 100644 --- a/xts_lite/device_attest_lite/device_attestQuerry_posix/BUILD.gn +++ b/xts_lite/device_attest_lite/device_attestQuerry_posix/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Huawei Device Co., Ltd. +# Copyright (c) 2023 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/xts_lite/device_attest_lite/device_attestQuerry_posix/src/device_attest_querry.cpp b/xts_lite/device_attest_lite/device_attestQuerry_posix/src/device_attest_querry.cpp index f2266af8024ea250fc19b02023c078c00e24207a..f65c2ed5d3b32eaf9db7b1d0c9a1f5b7052ade1f 100644 --- a/xts_lite/device_attest_lite/device_attestQuerry_posix/src/device_attest_querry.cpp +++ b/xts_lite/device_attest_lite/device_attestQuerry_posix/src/device_attest_querry.cpp @@ -119,7 +119,6 @@ HWTEST_F(DeviceAttestQuerryTest, subDeviceAttestTest0200, Function | MediumTest * @tc.name : HiLog::Warn parameter legal test (Cortex-A, C) * @tc.desc : [C- SOFTWARE -0200] */ -#ifdef __LINUX__ HWTEST_F(DeviceAttestQuerryTest, subDeviceAttestTest0300, Function | MediumTest | Level1) { int32_t ret = DEVATTEST_SUCCESS; @@ -131,21 +130,10 @@ HWTEST_F(DeviceAttestQuerryTest, subDeviceAttestTest0300, Function | MediumTest printf("[CLIENT MAIN] query.\n"); ret = GetAttestStatus(&attestResultInfo); printf("[CLIENT MAIN] wrong. ret:%d\n", ret); +#ifdef __LINUX__ EXPECT_EQ(ret, DEVATTEST_SUCCESS); -} #else -HWTEST_F(DeviceAttestQuerryTest, subDeviceAttestTest0300, Function | MediumTest | Level1) -{ - int32_t ret = DEVATTEST_SUCCESS; - ret = StartDevAttestTask(); - printf("[CLIENT MAIN] StartDevAttestTask ret:%d.\n", ret); - EXPECT_EQ(ret, DEVATTEST_SUCCESS); - AttestResultInfo attestResultInfo = { 0 }; - attestResultInfo.ticket = NULL; - printf("[CLIENT MAIN] query.\n"); - ret = GetAttestStatus(&attestResultInfo); - printf("[CLIENT MAIN] wrong. ret:%d\n", ret); EXPECT_FALSE(ret == DEVATTEST_SUCCESS); -} #endif +} diff --git a/xts_lite/device_attest_lite/device_attestStart_hal/BUILD.gn b/xts_lite/device_attest_lite/device_attestStart_hal/BUILD.gn index d025aba9455ea6a513e8419fc53c1102496550f6..66a50a0a103ba63aafe4b216944927ccf6bb264e 100644 --- a/xts_lite/device_attest_lite/device_attestStart_hal/BUILD.gn +++ b/xts_lite/device_attest_lite/device_attestStart_hal/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2020 Huawei Device Co., Ltd. +# Copyright (c) 2023 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/xts_lite/device_attest_lite/device_attestStart_hal/src/device_attest.c b/xts_lite/device_attest_lite/device_attestStart_hal/src/device_attest.c index d2496ad8bd4083eeeab0a4d243bfe43ee6883048..b610a1bf8dfdb840df1f19028e6621a8640e7708 100644 --- a/xts_lite/device_attest_lite/device_attestStart_hal/src/device_attest.c +++ b/xts_lite/device_attest_lite/device_attestStart_hal/src/device_attest.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/xts_lite/device_attest_lite/device_attestStart_posix/BUILD.gn b/xts_lite/device_attest_lite/device_attestStart_posix/BUILD.gn index edf427e741137095c2e6a4eec11e62aec78c9c69..9b23d576a2d7e0daa12f9aac739915ad0cd6c1ba 100644 --- a/xts_lite/device_attest_lite/device_attestStart_posix/BUILD.gn +++ b/xts_lite/device_attest_lite/device_attestStart_posix/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Huawei Device Co., Ltd. +# Copyright (c) 2023 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at