• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 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 <algorithm>
17 #include <chrono>
18 #include <thread>
19 #include <vector>
20 
21 #include "gtest/gtest.h"
22 
23 #include "access_manager.h"
24 #include "distributed_hardware_errno.h"
25 #include "distributed_hardware_manager_factory.h"
26 using namespace testing::ext;
27 
28 namespace OHOS {
29 namespace DistributedHardware {
30 class AccessManagerTest : public testing::Test {
31 public:
32     static void SetUpTestCase(void);
33     static void TearDownTestCase(void);
34     void SetUp();
35     void TearDown();
36 };
37 
SetUp()38 void AccessManagerTest::SetUp() {}
39 
TearDown()40 void AccessManagerTest::TearDown() {}
41 
SetUpTestCase()42 void AccessManagerTest::SetUpTestCase() {}
43 
TearDownTestCase()44 void AccessManagerTest::TearDownTestCase() {}
45 
46 /**
47  * @tc.name: GetInstance_001
48  * @tc.desc: Verify GetInstance success
49  * @tc.type: FUNC
50  * @tc.require: AR000GHSJK
51  */
52 HWTEST_F(AccessManagerTest, GetInstance_001, TestSize.Level1)
53 {
54     auto instance = AccessManager::GetInstance();
55     ASSERT_TRUE(instance != nullptr);
56 }
57 }
58 }
59