/* * Copyright (c) 2022-2025 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef OHOS_UTTEST_DM_SERVICE_H #define OHOS_UTTEST_DM_SERVICE_H #include #include #include #include #include #include "app_manager_mock.h" #include "common_event_support.h" #include "device_manager_service.h" #include "device_manager_service_listener.h" #include "device_manager_service_impl_mock.h" #include "device_name_manager_mock.h" #include "deviceprofile_connector_mock.h" #include "dm_comm_tool_mock.h" #include "dm_crypto_mock.h" #include "dm_single_instance.h" #include "dm_softbus_cache_mock.h" #include "kv_adapter_manager_mock.h" #include "multiple_user_connector_mock.h" #include "permission_manager_mock.h" #include "softbus_listener_mock.h" namespace OHOS { namespace DistributedHardware { class DeviceManagerServiceTest : public testing::Test { public: static void SetUpTestCase(); static void TearDownTestCase(); void SetUp(); void TearDown(); static inline std::shared_ptr permissionManagerMock_ = std::make_shared(); static inline std::shared_ptr softbusListenerMock_ = std::make_shared(); static inline std::shared_ptr appManagerMock_ = std::make_shared(); static inline std::shared_ptr kVAdapterManagerMock_ = std::make_shared(); static inline std::shared_ptr deviceManagerServiceImplMock_ = std::make_shared(); static inline std::shared_ptr softbusCacheMock_ = std::make_shared(); static inline std::shared_ptr cryptoMock_ = std::make_shared(); static inline std::shared_ptr multipleUserConnectorMock_ = std::make_shared(); static inline std::shared_ptr dMCommToolMock_ = std::make_shared(); static inline std::shared_ptr deviceProfileConnectorMock_ = std::make_shared(); static inline std::shared_ptr deviceNameManagerMock_ = std::make_shared(); }; } // namespace DistributedHardware } // namespace OHOS #endif