mirror of
https://github.com/espressif/openthread.git
synced 2026-09-07 09:40:12 +00:00
[test] define all unit tests in ot namespace (#9617)
This commit updates unit test modules to be defined under the `ot` namespace. This aligns all the unit tests to follow the same model, eliminating the need to use `ot::` prefix in unit test code.
This commit is contained in:
@@ -106,7 +106,7 @@ void TestNetworkDataIterator(void)
|
||||
{
|
||||
static constexpr uint8_t kMaxRlocsArray = 10;
|
||||
|
||||
ot::Instance *instance;
|
||||
Instance *instance;
|
||||
Iterator iter = kIteratorInit;
|
||||
ExternalRouteConfig rconfig;
|
||||
OnMeshPrefixConfig pconfig;
|
||||
@@ -496,7 +496,7 @@ void TestNetworkDataIterator(void)
|
||||
class TestNetworkData : public Local
|
||||
{
|
||||
public:
|
||||
explicit TestNetworkData(ot::Instance &aInstance)
|
||||
explicit TestNetworkData(Instance &aInstance)
|
||||
: Local(aInstance)
|
||||
{
|
||||
}
|
||||
@@ -583,7 +583,7 @@ public:
|
||||
|
||||
void TestNetworkDataFindNextService(void)
|
||||
{
|
||||
ot::Instance *instance;
|
||||
Instance *instance;
|
||||
|
||||
printf("\n\n-------------------------------------------------");
|
||||
printf("\nTestNetworkDataFindNextService()\n");
|
||||
@@ -616,7 +616,7 @@ void TestNetworkDataDsnSrpServices(void)
|
||||
}
|
||||
};
|
||||
|
||||
ot::Instance *instance;
|
||||
Instance *instance;
|
||||
|
||||
printf("\n\n-------------------------------------------------");
|
||||
printf("\nTestNetworkDataDsnSrpServices()\n");
|
||||
@@ -764,7 +764,7 @@ void TestNetworkDataDsnSrpAnycastSeqNumSelection(void)
|
||||
uint8_t mPreferredSeqNum;
|
||||
};
|
||||
|
||||
ot::Instance *instance;
|
||||
Instance *instance;
|
||||
|
||||
printf("\n\n-------------------------------------------------");
|
||||
printf("\nTestNetworkDataDsnSrpAnycastSeqNumSelection()\n");
|
||||
|
||||
Reference in New Issue
Block a user