/* * Copyright (c) 2021 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. */ #include "UTTest_dm_device_info_manager.h" #include "dm_constants.h" #include "dm_log.h" namespace OHOS { namespace DistributedHardware { void DeviceManagerImplTest::SetUp() { } void DeviceManagerImplTest::TearDown() { } void DeviceManagerImplTest::SetUpTestCase() { } void DeviceManagerImplTest::TearDownTestCase() { } namespace { std::shared_ptr softbusConnector = std::make_shared(); std::shared_ptr listener_ = std::make_shared(); std::shared_ptr dmDeviceStateManager = std::make_shared(softbusConnector); /** * @tc.name: DmDeviceInfoManager_001 * @tc.desc: Returns a new pointer to the constructor DmDeviceInfoManager new * to construct an environment where the device has been discovered, and stop discovering * the device. Its return value is DM_INPUT_PARA_EMPTY * @tc.type: FUNC * @tc.require: AR000GHSJK */ HWTEST_F(DeviceManagerImplTest, DmDeviceInfoManager_001, testing::ext::TestSize.Level0) { std::shared_ptr p = std::make_shared(softbusConnector); ASSERT_NE(p, nullptr); } } // namespace } // namespace DistributedHardware } // namespace OHOS