• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 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 "UTTest_permission_manager.h"
17 
18 namespace OHOS {
19 namespace DistributedHardware {
SetUp()20 void PremissionManagerTest::SetUp()
21 {
22 }
23 
TearDown()24 void PremissionManagerTest::TearDown()
25 {
26 }
27 
SetUpTestCase()28 void PremissionManagerTest::SetUpTestCase()
29 {
30 }
31 
TearDownTestCase()32 void PremissionManagerTest::TearDownTestCase()
33 {
34 }
35 
36 namespace {
37 
38 /**
39  * @tc.name: PinAuthUi::CheckPermission_001
40  * @tc.desc: the return value is true
41  * @tc.type: FUNC
42  * @tc.require: AR000GHSJK
43  */
44 HWTEST_F(PremissionManagerTest, CheckPermission_001, testing::ext::TestSize.Level0)
45 {
46     bool ret = PermissionManager::GetInstance().CheckPermission();
47     ASSERT_EQ(ret, true);
48 }
49 }
50 } // namespace DistributedHardware
51 } // namespace OHOS