• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2023 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 "softbus_bus_center.h"
17 
18 #include "gtest/gtest.h"
19 
GetLocalNodeDeviceInfo(const char * pkgName,NodeBasicInfo * info)20 int32_t GetLocalNodeDeviceInfo(const char *pkgName, NodeBasicInfo *info)
21 {
22     GTEST_LOG_(INFO) << "GetLocalNodeDeviceInfo start";
23     NodeBasicInfo nodeBasicInfo = {
24         .networkId = "100",
25         .deviceName = "test",
26         .deviceTypeId = 1};
27     (void)pkgName;
28     *info = nodeBasicInfo;
29     return 0;
30 }
31 
GetNodeKeyInfo(const char * pkgName,const char * networkId,NodeDeviceInfoKey key,uint8_t * info,int32_t infoLen)32 int32_t GetNodeKeyInfo(const char *pkgName, const char *networkId,
33     NodeDeviceInfoKey key, uint8_t *info, int32_t infoLen)
34 {
35     GTEST_LOG_(INFO) << "GetNodeKeyInfo start";
36     (void)pkgName;
37     (void)networkId;
38     (void)key;
39     (void)info;
40     (void)infoLen;
41     return 0;
42 }