mirror of
https://github.com/espressif/openthread.git
synced 2026-10-25 08:43:48 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user