Skip to content

Commit

Permalink
Remove extra namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
mkardous-silabs committed May 3, 2024
1 parent 22b7e93 commit 7bc4b27
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/app/icd/server/tests/TestICDManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,31 +153,31 @@ class TestICDManager : public ::testing::Test
{
if (pMockClock == nullptr)
{
pMockClock = new System::Clock::Internal::MockClock();
pMockClock = new Clock::Internal::MockClock();
ASSERT_NE(pMockClock, nullptr);
}

if (pMessagingContext == nullptr)
{
pMessagingContext = new chip::Test::LoopbackMessagingContext();
pMessagingContext = new LoopbackMessagingContext();
ASSERT_NE(pMessagingContext, nullptr);
}

ASSERT_EQ(pMessagingContext->SetUpTestSuite(), CHIP_NO_ERROR);
ASSERT_EQ(chip::DeviceLayer::PlatformMgr().InitChipStack(), CHIP_NO_ERROR);

DeviceLayer::SetSystemLayerForTesting(&(pMessagingContext->GetSystemLayer()));
pRealClock = &chip::System::SystemClock();
System::Clock::Internal::SetSystemClockForTesting(pMockClock);
pRealClock = &SystemClock();
Clock::Internal::SetSystemClockForTesting(pMockClock);
}

// Performs shared teardown for all tests in the test suite
static void TearDownTestSuite()
{
System::Clock::Internal::SetSystemClockForTesting(pRealClock);
Clock::Internal::SetSystemClockForTesting(pRealClock);
DeviceLayer::SetSystemLayerForTesting(nullptr);

chip::DeviceLayer::PlatformMgr().Shutdown();
DeviceLayer::PlatformMgr().Shutdown();
pMessagingContext->TearDownTestSuite();

if (pMockClock != nullptr)
Expand Down Expand Up @@ -214,7 +214,7 @@ class TestICDManager : public ::testing::Test
}

TestSessionKeystoreImpl mKeystore;
app::ICDManager mICDManager;
ICDManager mICDManager;
TestSubscriptionsInfoProvider mSubInfoProvider;
TestPersistentStorageDelegate testStorage;
TestICDStateObserver mICDStateObserver;
Expand Down

0 comments on commit 7bc4b27

Please sign in to comment.