Home
last modified time | relevance | path

Searched refs:LnnSetP2pRole (Results 1 – 12 of 12) sorted by relevance

/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_builder/mock/
H A Dnet_ledger_mock.cpp36 ON_CALL(*this, LnnSetP2pRole).WillByDefault(Return(SOFTBUS_OK)); in SetupDefaultResult()
48 int32_t LnnSetP2pRole(NodeInfo *info, int32_t role) in LnnSetP2pRole() function
50 return GetNetLedgerInterface()->LnnSetP2pRole(info, role); in LnnSetP2pRole()
H A Dnet_ledger_mock.h29 virtual int32_t LnnSetP2pRole(NodeInfo *info, int32_t role) = 0;
39 MOCK_METHOD(int32_t, LnnSetP2pRole, (NodeInfo *, int32_t), (override));
H A Dp2p_info_mock_test.cpp74 EXPECT_CALL(netLedgerMock, LnnSetP2pRole(_, _)).WillRepeatedly(Return(SOFTBUS_ERR));
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_builder/src/
H A Dlnn_p2p_info_test.cpp108 ON_CALL(netLedgerMock, LnnSetP2pRole).WillByDefault(Return(SOFTBUS_OK));
120 EXPECT_CALL(netLedgerMock, LnnSetP2pRole(_, _)).WillRepeatedly(Return(SOFTBUS_ERR));
H A Dlnn_net_ledger_mock.cpp331 int32_t LnnSetP2pRole(NodeInfo *info, int32_t role) in LnnSetP2pRole() function
333 return GetNetLedgerInterface()->LnnSetP2pRole(info, role); in LnnSetP2pRole()
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_builder/include/
H A Dlnn_net_ledger_mock.h60 virtual int32_t LnnSetP2pRole(NodeInfo *info, int32_t role) = 0;
143 MOCK_METHOD2(LnnSetP2pRole, int32_t (NodeInfo *, int32_t));
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/include/
H A Dlnn_node_info.h224 int32_t LnnSetP2pRole(NodeInfo *info, int32_t role);
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/
H A Dlnn_p2p_info.c346 if (LnnSetP2pRole(info, WIFI_DIRECT_ROLE_NONE) != SOFTBUS_OK || in LnnInitLocalP2pInfo()
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_ledger/
H A Dlnn_ledger_common_test.cpp197 EXPECT_TRUE(LnnSetP2pRole(nullptr, PORT) == SOFTBUS_INVALID_PARAM);
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/src/
H A Dlnn_node_info.c272 int32_t LnnSetP2pRole(NodeInfo *info, int32_t p2pRole) in LnnSetP2pRole() function
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/distributed_ledger/src/
H A Dlnn_distributed_net_ledger_manager.c1069 if (LnnSetP2pRole(node, info->p2pRole) != SOFTBUS_OK || in LnnSetDLP2pInfo()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/local_ledger/src/
H A Dlnn_local_net_ledger.c1461 return LnnSetP2pRole(&g_localNetLedger.localInfo, *(int32_t *)p2pRole); in UpdateP2pRole()