From 9294de0b3f8058aea0e607db96aa4aa95ffad250 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Fri, 18 Jun 2021 18:51:49 +0000 Subject: [PATCH] Restyled by clang-format --- src/app/InteractionModelEngine.cpp | 6 ++++-- src/app/WriteHandler.cpp | 1 - src/app/WriteHandler.h | 1 - src/app/tests/TestWriteInteraction.cpp | 7 +++---- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/app/InteractionModelEngine.cpp b/src/app/InteractionModelEngine.cpp index 268ef71b76ebd5..599acdd0080787 100644 --- a/src/app/InteractionModelEngine.cpp +++ b/src/app/InteractionModelEngine.cpp @@ -172,8 +172,10 @@ CHIP_ERROR InteractionModelEngine::NewWriteClient(WriteClient ** const apWriteCl { *apWriteClient = nullptr; - for (auto & writeClient : mWriteClients) { - if (!writeClient.IsFree()) { + for (auto & writeClient : mWriteClients) + { + if (!writeClient.IsFree()) + { continue; } diff --git a/src/app/WriteHandler.cpp b/src/app/WriteHandler.cpp index 2f6f2348ee8c7f..d3ae02b5645855 100644 --- a/src/app/WriteHandler.cpp +++ b/src/app/WriteHandler.cpp @@ -16,7 +16,6 @@ * limitations under the License. */ - #include #include #include diff --git a/src/app/WriteHandler.h b/src/app/WriteHandler.h index 2be9f79644b206..ed7cacbff20046 100644 --- a/src/app/WriteHandler.h +++ b/src/app/WriteHandler.h @@ -16,7 +16,6 @@ * limitations under the License. */ - #pragma once #include #include diff --git a/src/app/tests/TestWriteInteraction.cpp b/src/app/tests/TestWriteInteraction.cpp index 7e1b6541c958b4..e550dae012fe6e 100644 --- a/src/app/tests/TestWriteInteraction.cpp +++ b/src/app/tests/TestWriteInteraction.cpp @@ -40,10 +40,10 @@ namespace { chip::System::Layer gSystemLayer; chip::SecureSessionMgr gSessionManager; chip::Messaging::ExchangeManager gExchangeManager; -chip::TransportMgr gTransportManager; +chip::TransportMgr gTransportManager; chip::secure_channel::MessageCounterManager gMessageCounterManager; chip::Transport::AdminId gAdminId = 0; -} +} // namespace namespace chip { namespace app { class TestWriteInteraction @@ -261,8 +261,7 @@ void InitializeChip(nlTestSuite * apSuite) gSystemLayer.Init(nullptr); - err = gSessionManager.Init(chip::kTestDeviceNodeId, &gSystemLayer, &gTransportManager, &admins, - &gMessageCounterManager); + err = gSessionManager.Init(chip::kTestDeviceNodeId, &gSystemLayer, &gTransportManager, &admins, &gMessageCounterManager); NL_TEST_ASSERT(apSuite, err == CHIP_NO_ERROR); err = gExchangeManager.Init(&gSessionManager);