mirror of
https://github.com/espressif/openthread.git
synced 2026-09-08 02:00: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user