[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:
Abtin Keshavarzian
2023-11-19 18:40:20 -08:00
committed by GitHub
parent b77573586c
commit 23c0fc4d4b
28 changed files with 436 additions and 389 deletions
+4 -6
View File
@@ -31,11 +31,9 @@
#include "test_platform.h"
#include "test_util.hpp"
using namespace ot;
namespace ot {
ot::Instance *sInstance;
Instance *sInstance;
Ip6::Ip6 *sIp6;
Lowpan::Lowpan *sLowpan;
@@ -2091,9 +2089,9 @@ void TestLowpanFragmentHeader(void)
int main(void)
{
TestLowpanIphc();
TestLowpanMeshHeader();
TestLowpanFragmentHeader();
ot::TestLowpanIphc();
ot::TestLowpanMeshHeader();
ot::TestLowpanFragmentHeader();
printf("All tests passed\n");
return 0;