1cb7eb8c9Sopenharmony_ci/* 2cb7eb8c9Sopenharmony_ci * Copyright (c) 2023 Huawei Device Co., Ltd. 3cb7eb8c9Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4cb7eb8c9Sopenharmony_ci * you may not use this file except in compliance with the License. 5cb7eb8c9Sopenharmony_ci * You may obtain a copy of the License at 6cb7eb8c9Sopenharmony_ci * 7cb7eb8c9Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8cb7eb8c9Sopenharmony_ci * 9cb7eb8c9Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10cb7eb8c9Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11cb7eb8c9Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12cb7eb8c9Sopenharmony_ci * See the License for the specific language governing permissions and 13cb7eb8c9Sopenharmony_ci * limitations under the License. 14cb7eb8c9Sopenharmony_ci */ 15cb7eb8c9Sopenharmony_ci 16cb7eb8c9Sopenharmony_ci#include "softbus_bus_center.h" 17cb7eb8c9Sopenharmony_ci#include "device_manager_impl_mock.h" 18cb7eb8c9Sopenharmony_ci 19cb7eb8c9Sopenharmony_ci#include "gtest/gtest.h" 20cb7eb8c9Sopenharmony_ci 21cb7eb8c9Sopenharmony_ciusing namespace OHOS::Storage::DistributedFile; 22cb7eb8c9Sopenharmony_ci 23cb7eb8c9Sopenharmony_ciint32_t GetLocalNodeDeviceInfo(const char *pkgName, NodeBasicInfo *info) 24cb7eb8c9Sopenharmony_ci{ 25cb7eb8c9Sopenharmony_ci GTEST_LOG_(INFO) << "GetLocalNodeDeviceInfo start"; 26cb7eb8c9Sopenharmony_ci NodeBasicInfo nodeBasicInfo = { 27cb7eb8c9Sopenharmony_ci .networkId = "100", 28cb7eb8c9Sopenharmony_ci .deviceName = "test", 29cb7eb8c9Sopenharmony_ci .deviceTypeId = 1}; 30cb7eb8c9Sopenharmony_ci (void)pkgName; 31cb7eb8c9Sopenharmony_ci *info = nodeBasicInfo; 32cb7eb8c9Sopenharmony_ci return DfsDeviceManagerImpl::dfsDeviceManagerImpl->GetLocalNodeDeviceInfo(pkgName, info); 33cb7eb8c9Sopenharmony_ci} 34cb7eb8c9Sopenharmony_ci 35cb7eb8c9Sopenharmony_ciint32_t GetNodeKeyInfo(const char *pkgName, const char *networkId, 36cb7eb8c9Sopenharmony_ci NodeDeviceInfoKey key, uint8_t *info, int32_t infoLen) 37cb7eb8c9Sopenharmony_ci{ 38cb7eb8c9Sopenharmony_ci GTEST_LOG_(INFO) << "GetNodeKeyInfo start"; 39cb7eb8c9Sopenharmony_ci (void)pkgName; 40cb7eb8c9Sopenharmony_ci (void)networkId; 41cb7eb8c9Sopenharmony_ci (void)key; 42cb7eb8c9Sopenharmony_ci (void)info; 43cb7eb8c9Sopenharmony_ci (void)infoLen; 44cb7eb8c9Sopenharmony_ci return 0; 45cb7eb8c9Sopenharmony_ci}