• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022-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 #ifndef OHOS_DEVICE_MANAGER_SERVICE_THREE_H
16 #define OHOS_DEVICE_MANAGER_SERVICE_THREE_H
17 
18 #include <gtest/gtest.h>
19 #include <memory>
20 #include <refbase.h>
21 
22 #include <string>
23 #include <vector>
24 
25 #include "device_manager_service.h"
26 #include "device_manager_service_listener.h"
27 #include "device_manager_service_impl.h"
28 #include "dm_single_instance.h"
29 #include "common_event_support.h"
30 #include "permission_manager_mock.h"
31 #include "softbus_listener_mock.h"
32 #include "device_manager_service_mock.h"
33 #include "device_manager_service_impl_mock.h"
34 
35 namespace OHOS {
36 namespace DistributedHardware {
37 class DeviceManagerServiceThreeTest : public testing::Test {
38 public:
39     static void SetUpTestCase();
40     static void TearDownTestCase();
41     void SetUp();
42     void TearDown();
43 
44     static inline  std::shared_ptr<DeviceManagerServiceMock> deviceManagerServiceMock_ =
45         std::make_shared<DeviceManagerServiceMock>();
46     static inline std::shared_ptr<PermissionManagerMock> permissionManagerMock_ =
47         std::make_shared<PermissionManagerMock>();
48     static inline  std::shared_ptr<SoftbusListenerMock> softbusListenerMock_ =
49         std::make_shared<SoftbusListenerMock>();
50     static inline  std::shared_ptr<DeviceManagerServiceImplMock> deviceManagerServiceImplMock_ =
51         std::make_shared<DeviceManagerServiceImplMock>();
52 };
53 } // namespace DistributedHardware
54 } // namespace OHOS
55 #endif
56