[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
+5 -1
View File
@@ -38,6 +38,8 @@
#include "test_platform.h"
#include "test_util.h"
namespace ot {
#if !OPENTHREAD_CONFIG_HEAP_EXTERNAL_ENABLE
/**
@@ -175,10 +177,12 @@ void RunTimerTests(void)
#endif // !OPENTHREAD_CONFIG_HEAP_EXTERNAL_ENABLE
} // namespace ot
int main(void)
{
#if !OPENTHREAD_CONFIG_HEAP_EXTERNAL_ENABLE
RunTimerTests();
ot::RunTimerTests();
printf("All tests passed\n");
#endif // !OPENTHREAD_CONFIG_HEAP_EXTERNAL_ENABLE
return 0;