From 15bd90f1cf0de45ad766f224448a906d66a935b9 Mon Sep 17 00:00:00 2001 From: Terence Hampson Date: Tue, 28 Jun 2022 13:57:28 +0000 Subject: [PATCH] Restyle --- .../secure_channel/tests/TestCASESession.cpp | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/protocols/secure_channel/tests/TestCASESession.cpp b/src/protocols/secure_channel/tests/TestCASESession.cpp index a94a0d1c684cb8..af8f2d3193a5b5 100644 --- a/src/protocols/secure_channel/tests/TestCASESession.cpp +++ b/src/protocols/secure_channel/tests/TestCASESession.cpp @@ -272,7 +272,6 @@ class TestCASESession #endif // CONFIG_BUILD_FOR_HOST_UNIT_TEST }; - void TestCASESession::CASE_SecurePairingWaitTest(nlTestSuite * inSuite, void * inContext) { SessionManager sessionManager; @@ -286,17 +285,16 @@ void TestCASESession::CASE_SecurePairingWaitTest(nlTestSuite * inSuite, void * i caseSession.SetGroupDataProvider(&gDeviceGroupDataProvider); NL_TEST_ASSERT(inSuite, - caseSession.PrepareForSessionEstablishment( - sessionManager, nullptr, nullptr, nullptr, nullptr, ScopedNodeId(), - Optional::Missing()) == CHIP_ERROR_INVALID_ARGUMENT); + caseSession.PrepareForSessionEstablishment(sessionManager, nullptr, nullptr, nullptr, nullptr, ScopedNodeId(), + Optional::Missing()) == + CHIP_ERROR_INVALID_ARGUMENT); + NL_TEST_ASSERT(inSuite, + caseSession.PrepareForSessionEstablishment(sessionManager, nullptr, nullptr, nullptr, &delegate, ScopedNodeId(), + Optional::Missing()) == + CHIP_ERROR_INVALID_ARGUMENT); NL_TEST_ASSERT(inSuite, - caseSession.PrepareForSessionEstablishment( - sessionManager, nullptr, nullptr, nullptr, &delegate, ScopedNodeId(), - Optional::Missing()) == CHIP_ERROR_INVALID_ARGUMENT); - NL_TEST_ASSERT( - inSuite, - caseSession.PrepareForSessionEstablishment(sessionManager, &fabrics, nullptr, nullptr, &delegate, ScopedNodeId(), - Optional::Missing()) == CHIP_NO_ERROR); + caseSession.PrepareForSessionEstablishment(sessionManager, &fabrics, nullptr, nullptr, &delegate, ScopedNodeId(), + Optional::Missing()) == CHIP_NO_ERROR); // Calling Clear() here since ASAN will have an issue if FabricTable destructor is called before CASESession's // destructor. We could reorder FabricTable and CaseSession, but this makes it a little more clear what we are