/openthread-3.6.0/tests/unit/ |
D | test_routing_manager.cpp | 117 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 …]
|
D | test_srp_server.cpp | 63 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 …]
|
D | test_dns_client.cpp | 66 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 …]
|
D | test_nat64.cpp | 47 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()
|
D | test_ndproxy_table.cpp | 45 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()
|
D | test_message_queue.cpp | 45 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()
|
D | test_link_metrics_manager.cpp | 42 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()
|
D | test_multicast_listeners_table.cpp | 45 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()
|
D | test_child.cpp | 40 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()
|
D | test_child_table.cpp | 41 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()
|
D | test_trickle_timer.cpp | 39 static Instance *sInstance; variable 66 otPlatAlarmMilliFired(sInstance); in AdvanceTime() 113 sInstance = instance; in TestTrickleTimerPlainMode() 160 sInstance = instance; in TestTrickleTimerTrickleMode() 244 sInstance = instance; in TestTrickleTimerMinMaxIntervalChange()
|
D | test_link_quality.cpp | 39 static Instance *sInstance; variable 93 sInstance = testInitInstance(); in TestLinkQualityData() 94 VerifyOrQuit(sInstance != nullptr); in TestLinkQualityData() 95 linkInfo.Init(*sInstance); in TestLinkQualityData()
|
D | test_lowpan.cpp | 36 Instance *sInstance; variable 107 …sInstance->Get<Mle::MleRouter>().SetMeshLocalPrefix(static_cast<Ip6::NetworkPrefix &>(meshLocalPre… in Init() 125 Message *message = sInstance->Get<MessagePool>().Allocate(Message::kTypeIp6); in Init() 131 …sInstance->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 …]
|
D | test_spinel_buffer.cpp | 60 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()
|
D | test_dso.cpp | 50 static otInstance *sInstance; variable 81 otPlatAlarmMilliFired(sInstance); in AdvanceTime() 553 sInstance = &instance; in TestDso()
|
/openthread-3.6.0/src/posix/platform/ |
D | mainloop.cpp | 79 static Manager sInstance; in Get() local 81 return sInstance; in Get()
|
D | daemon.cpp | 420 static Daemon sInstance; in Get() local 422 return sInstance; in Get()
|
D | udp.cpp | 599 static Udp sInstance; in Get() local 601 return sInstance; in Get()
|
D | infra_if.cpp | 815 static InfraNetif sInstance; in Get() local 817 return sInstance; in Get()
|