1 /*
2  * Copyright (c) 2024 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #include <cstdlib>
17 #include <gtest/gtest.h>
18 #include <string>
19 
20 #include "key_utils.h"
21 
22 using namespace testing::ext;
23 using namespace std;
24 
25 namespace OHOS {
26 namespace Security {
27 namespace CodeSign {
28 
29 class KeyEnableUtilsTest : public testing::Test {
30 public:
KeyEnableUtilsTest()31     KeyEnableUtilsTest() {};
~KeyEnableUtilsTest()32     virtual ~KeyEnableUtilsTest() {};
SetUpTestCase()33     static void SetUpTestCase() {};
TearDownTestCase()34     static void TearDownTestCase() {};
SetUp()35     void SetUp() {};
TearDown()36     void TearDown() {};
37 };
38 
39 /**
40  * @tc.name: KeyEnableUtilsTest_0001
41  * @tc.desc: check status of device
42  * @tc.type: Func
43  * @tc.require: issueI8FCGF
44  */
45 HWTEST_F(KeyEnableUtilsTest, KeyEnableUtilsTest_0001, TestSize.Level0)
46 {
47     EXPECT_EQ(IsRdDevice(), true);
48 }
49 } // namespace CodeSign
50 } // namespace Security
51 } // namespace OHOS
52