From 2661052349f238fae0e14f923740a81bb1382bdc Mon Sep 17 00:00:00 2001 From: lpbeliveau-silabs Date: Wed, 22 Mar 2023 15:33:03 -0400 Subject: [PATCH] Separating namespaces in tests --- src/app/tests/TestExtensionFieldSets.cpp | 4 +++- src/app/tests/TestSceneTable.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app/tests/TestExtensionFieldSets.cpp b/src/app/tests/TestExtensionFieldSets.cpp index ce363462cb6fee..3f9400fe109e03 100644 --- a/src/app/tests/TestExtensionFieldSets.cpp +++ b/src/app/tests/TestExtensionFieldSets.cpp @@ -315,8 +315,9 @@ int TestSetup(void * inContext) return SUCCESS; } +namespace { /** - * Tear down the test suite. + * Setup the test suite. */ int TestTeardown(void * inContext) { @@ -324,6 +325,7 @@ int TestTeardown(void * inContext) return SUCCESS; } +} // namespace int TestExtensionFieldSets() { diff --git a/src/app/tests/TestSceneTable.cpp b/src/app/tests/TestSceneTable.cpp index 607152b1aea4be..cb1833312fa1f9 100644 --- a/src/app/tests/TestSceneTable.cpp +++ b/src/app/tests/TestSceneTable.cpp @@ -916,8 +916,9 @@ void TestFabricScenes(nlTestSuite * aSuite, void * aContext) } // namespace TestScenes +namespace { /** - * Tear down the test suite. + * Setup the test suite. */ int TestSetup(void * inContext) { @@ -939,6 +940,7 @@ int TestTeardown(void * inContext) return SUCCESS; } +} // namespace int TestSceneTable() {