Home
last modified time | relevance | path

Searched refs:sInstance (Results 1 – 19 of 19) sorted by relevance

/openthread-3.6.0/tests/unit/
Dtest_routing_manager.cpp117 static Instance *sInstance; variable
386 otPlatRadioTxStarted(sInstance, &sRadioTxFrame); in ProcessRadioTxAndTasklets()
387 otPlatRadioTxDone(sInstance, &sRadioTxFrame, nullptr, OT_ERROR_NONE); in ProcessRadioTxAndTasklets()
390 otTaskletsProcess(sInstance); in ProcessRadioTxAndTasklets()
391 } while (otTaskletsArePending(sInstance)); in ProcessRadioTxAndTasklets()
404 otPlatAlarmMilliFired(sInstance); in AdvanceTime()
467 SuccessOrQuit(otBorderRoutingGetOnLinkPrefix(sInstance, &localOnLink)); in ValidateRouterAdvert()
658 otPlatInfraIfRecvIcmp6Nd(sInstance, kInfraIfIndex, &aAddress, aBuffer, aLength); in SendRouterAdvert()
669 …otPlatInfraIfRecvIcmp6Nd(sInstance, kInfraIfIndex, &aAddress, reinterpret_cast<const uint8_t *>(&a… in SendNeighborAdvert()
677 otPlatInfraIfDiscoverNat64PrefixDone(sInstance, kInfraIfIndex, &aPrefix); in DiscoverNat64Prefix()
[all …]
Dtest_srp_server.cpp63 static Instance *sInstance; variable
163 otPlatRadioTxStarted(sInstance, &sRadioTxFrame); in ProcessRadioTxAndTasklets()
164 otPlatRadioTxDone(sInstance, &sRadioTxFrame, nullptr, OT_ERROR_NONE); in ProcessRadioTxAndTasklets()
167 otTaskletsProcess(sInstance); in ProcessRadioTxAndTasklets()
168 } while (otTaskletsArePending(sInstance)); in ProcessRadioTxAndTasklets()
181 otPlatAlarmMilliFired(sInstance); in AdvanceTime()
195 sInstance = static_cast<Instance *>(testInitInstance()); in InitTest()
207 SuccessOrQuit(otDatasetCreateNewNetwork(sInstance, &dataset)); in InitTest()
209 SuccessOrQuit(otDatasetSetActiveTlvs(sInstance, &datasetTlvs)); in InitTest()
211 SuccessOrQuit(otIp6SetEnabled(sInstance, true)); in InitTest()
[all …]
Dtest_dns_client.cpp66 static ot::Instance *sInstance; variable
166 otPlatRadioTxStarted(sInstance, &sRadioTxFrame); in ProcessRadioTxAndTasklets()
167 otPlatRadioTxDone(sInstance, &sRadioTxFrame, nullptr, OT_ERROR_NONE); in ProcessRadioTxAndTasklets()
170 otTaskletsProcess(sInstance); in ProcessRadioTxAndTasklets()
171 } while (otTaskletsArePending(sInstance)); in ProcessRadioTxAndTasklets()
184 otPlatAlarmMilliFired(sInstance); in AdvanceTime()
198 sInstance = static_cast<Instance *>(testInitInstance()); in InitTest()
210 SuccessOrQuit(otDatasetCreateNewNetwork(sInstance, &dataset)); in InitTest()
212 SuccessOrQuit(otDatasetSetActiveTlvs(sInstance, &datasetTlvs)); in InitTest()
214 SuccessOrQuit(otIp6SetEnabled(sInstance, true)); in InitTest()
[all …]
Dtest_nat64.cpp47 static ot::Instance *sInstance; variable
97 Message *msg = sInstance->Get<Ip6::Ip6>().NewMessage(0); in TestCase6To4()
106 VerifyOrQuit(sInstance->Get<Nat64::Translator>().TranslateFromIp6(*msg) == aResult); in TestCase6To4()
124 Message *msg = sInstance->Get<Ip6::Ip6>().NewMessage(0); in TestCase4To6()
133 VerifyOrQuit(sInstance->Get<Nat64::Translator>().TranslateToIp6(*msg) == aResult); in TestCase4To6()
151 sInstance = testInitInstance(); in TestNat64()
160 SuccessOrQuit(sInstance->Get<Nat64::Translator>().SetIp4Cidr(nat64cidr)); in TestNat64()
161 sInstance->Get<Nat64::Translator>().SetNat64Prefix(nat64prefix); in TestNat64()
297 testFreeInstance(sInstance); in TestNat64()
Dtest_ndproxy_table.cpp45 static Instance *sInstance; variable
63 sInstance = testInitInstance(); in TestNdProxyTable()
64 VerifyOrQuit(sInstance != nullptr); in TestNdProxyTable()
66 BackboneRouter::NdProxyTable &table = sInstance->Get<BackboneRouter::NdProxyTable>(); in TestNdProxyTable()
Dtest_message_queue.cpp45 static Instance *sInstance; variable
111 sInstance = testInitInstance(); in TestMessageQueue()
112 VerifyOrQuit(sInstance != nullptr); in TestMessageQueue()
114 sMessagePool = &sInstance->Get<MessagePool>(); in TestMessageQueue()
246 testFreeInstance(sInstance); in TestMessageQueue()
289 sInstance = testInitInstance(); in TestMessageQueueOtApis()
290 VerifyOrQuit(sInstance != nullptr); in TestMessageQueueOtApis()
294 msg = otIp6NewMessage(sInstance, nullptr); in TestMessageQueueOtApis()
343 testFreeInstance(sInstance); in TestMessageQueueOtApis()
Dtest_link_metrics_manager.cpp42 static Instance *sInstance; variable
116 sInstance = testInitInstance(); in TestLinkMetricsManager()
117 VerifyOrQuit(sInstance != nullptr); in TestLinkMetricsManager()
119 childTable = &sInstance->Get<ChildTable>(); in TestLinkMetricsManager()
121 sInstance->Get<Mle::Mle>().SetRole(Mle::kRoleRouter); in TestLinkMetricsManager()
135 linkMetricsMgr = &sInstance->Get<LinkMetricsManager>(); in TestLinkMetricsManager()
Dtest_multicast_listeners_table.cpp45 static Instance *sInstance; variable
66 sInstance = testInitInstance(); in TestMulticastListenersTable()
67 VerifyOrQuit(sInstance != nullptr); in TestMulticastListenersTable()
69 MulticastListenersTable &table = sInstance->Get<MulticastListenersTable>(); in TestMulticastListenersTable()
126 testMulticastListenersTableAPIs(sInstance); in TestMulticastListenersTable()
Dtest_child.cpp40 static Instance *sInstance; variable
83 if (sInstance->Get<Mle::MleRouter>().IsMeshLocalAddress(aAddressList[index])) in VerifyChildIp6Addresses()
205 sInstance = testInitInstance(); in TestChildIp6Address()
206 VerifyOrQuit(sInstance != nullptr); in TestChildIp6Address()
208 child.Init(*sInstance); in TestChildIp6Address()
217 addresses[numAddresses] = sInstance->Get<Mle::MleRouter>().GetMeshLocal64(); in TestChildIp6Address()
342 testFreeInstance(sInstance); in TestChildIp6Address()
Dtest_child_table.cpp41 static Instance *sInstance; variable
157 ChildTable::Iterator iter(*sInstance, filter); in VerifyChildTableContent()
301 sInstance = testInitInstance(); in TestChildTable()
302 VerifyOrQuit(sInstance != nullptr); in TestChildTable()
304 table = &sInstance->Get<ChildTable>(); in TestChildTable()
393 testFreeInstance(sInstance); in TestChildTable()
Dtest_trickle_timer.cpp39 static Instance *sInstance; variable
66 otPlatAlarmMilliFired(sInstance); in AdvanceTime()
113 sInstance = instance; in TestTrickleTimerPlainMode()
160 sInstance = instance; in TestTrickleTimerTrickleMode()
244 sInstance = instance; in TestTrickleTimerMinMaxIntervalChange()
Dtest_link_quality.cpp39 static Instance *sInstance; variable
93 sInstance = testInitInstance(); in TestLinkQualityData()
94 VerifyOrQuit(sInstance != nullptr); in TestLinkQualityData()
95 linkInfo.Init(*sInstance); in TestLinkQualityData()
Dtest_lowpan.cpp36 Instance *sInstance; variable
107sInstance->Get<Mle::MleRouter>().SetMeshLocalPrefix(static_cast<Ip6::NetworkPrefix &>(meshLocalPre… in Init()
125 Message *message = sInstance->Get<MessagePool>().Allocate(Message::kTypeIp6); in Init()
131sInstance->Get<NetworkData::Leader>().SetNetworkData(0, 0, NetworkData::kStableSubset, *message, 2… in Init()
179 … VerifyOrQuit((message = sInstance->Get<MessagePool>().Allocate(Message::kTypeIp6)) != nullptr); in Test()
202 …VerifyOrQuit((compressedMsg = sInstance->Get<MessagePool>().Allocate(Message::kTypeIp6)) != nullpt… in Test()
226 … VerifyOrQuit((message = sInstance->Get<MessagePool>().Allocate(Message::kTypeIp6)) != nullptr); in Test()
1765 sInstance = testInitInstance(); in TestLowpanIphc()
1767 VerifyOrQuit(sInstance != nullptr, "nullptr instance"); in TestLowpanIphc()
1769 sIp6 = &sInstance->Get<Ip6::Ip6>(); in TestLowpanIphc()
[all …]
Dtest_spinel_buffer.cpp60 static Instance *sInstance; variable
343 sInstance = testInitInstance(); in TestBuffer()
344 sMessagePool = &sInstance->Get<MessagePool>(); in TestBuffer()
859 testFreeInstance(sInstance); in TestBuffer()
966 sInstance = testInitInstance(); in TestFuzzBuffer()
967 sMessagePool = &sInstance->Get<MessagePool>(); in TestFuzzBuffer()
1052 testFreeInstance(sInstance); in TestFuzzBuffer()
Dtest_dso.cpp50 static otInstance *sInstance; variable
81 otPlatAlarmMilliFired(sInstance); in AdvanceTime()
553 sInstance = &instance; in TestDso()
/openthread-3.6.0/src/posix/platform/
Dmainloop.cpp79 static Manager sInstance; in Get() local
81 return sInstance; in Get()
Ddaemon.cpp420 static Daemon sInstance; in Get() local
422 return sInstance; in Get()
Dudp.cpp599 static Udp sInstance; in Get() local
601 return sInstance; in Get()
Dinfra_if.cpp815 static InfraNetif sInstance; in Get() local
817 return sInstance; in Get()