Skip to content

Commit

Permalink
integrating comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Alami-Amine committed Jun 10, 2024
1 parent 8429486 commit 37122f9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
20 changes: 10 additions & 10 deletions src/app/tests/TestInteractionModelEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ TEST_F_FROM_FIXTURE(TestInteractionModelEngine, TestSubjectHasActiveSubscription

// Create ExchangeContext
Messaging::ExchangeContext * exchangeCtx1 = mpTestContext->NewExchangeToBob(nullptr, false);
EXPECT_TRUE(exchangeCtx1);
ASSERT_TRUE(exchangeCtx1);

// InteractionModelEngine init
EXPECT_EQ(CHIP_NO_ERROR,
Expand Down Expand Up @@ -341,10 +341,10 @@ TEST_F_FROM_FIXTURE(TestInteractionModelEngine, TestSubjectHasActiveSubscription

// Create ExchangeContexts
Messaging::ExchangeContext * exchangeCtx1 = mpTestContext->NewExchangeToBob(nullptr, false);
EXPECT_TRUE(exchangeCtx1);
ASSERT_TRUE(exchangeCtx1);

Messaging::ExchangeContext * exchangeCtx2 = mpTestContext->NewExchangeToBob(nullptr, false);
EXPECT_TRUE(exchangeCtx1);
ASSERT_TRUE(exchangeCtx1);

// InteractionModelEngine init
EXPECT_EQ(CHIP_NO_ERROR,
Expand Down Expand Up @@ -400,10 +400,10 @@ TEST_F_FROM_FIXTURE(TestInteractionModelEngine, TestSubjectHasActiveSubscription

// Create ExchangeContexts
Messaging::ExchangeContext * exchangeCtx1 = mpTestContext->NewExchangeToBob(nullptr, false);
EXPECT_TRUE(exchangeCtx1);
ASSERT_TRUE(exchangeCtx1);

Messaging::ExchangeContext * exchangeCtx2 = mpTestContext->NewExchangeToAlice(nullptr, false);
EXPECT_TRUE(exchangeCtx2);
ASSERT_TRUE(exchangeCtx2);

// InteractionModelEngine init
EXPECT_EQ(CHIP_NO_ERROR,
Expand Down Expand Up @@ -476,16 +476,16 @@ TEST_F_FROM_FIXTURE(TestInteractionModelEngine, TestSubjectHasActiveSubscription

// Create ExchangeContexts
Messaging::ExchangeContext * exchangeCtx11 = mpTestContext->NewExchangeToBob(nullptr, false);
EXPECT_TRUE(exchangeCtx11);
ASSERT_TRUE(exchangeCtx11);

Messaging::ExchangeContext * exchangeCtx12 = mpTestContext->NewExchangeToBob(nullptr, false);
EXPECT_TRUE(exchangeCtx12);
ASSERT_TRUE(exchangeCtx12);

Messaging::ExchangeContext * exchangeCtx21 = mpTestContext->NewExchangeToAlice(nullptr, false);
EXPECT_TRUE(exchangeCtx21);
ASSERT_TRUE(exchangeCtx21);

Messaging::ExchangeContext * exchangeCtx22 = mpTestContext->NewExchangeToAlice(nullptr, false);
EXPECT_TRUE(exchangeCtx22);
ASSERT_TRUE(exchangeCtx22);

// InteractionModelEngine init
EXPECT_EQ(CHIP_NO_ERROR,
Expand Down Expand Up @@ -579,7 +579,7 @@ TEST_F_FROM_FIXTURE(TestInteractionModelEngine, TestSubjectHasActiveSubscription

// Create ExchangeContexts
Messaging::ExchangeContext * exchangeCtx = mpTestContext->NewExchangeToBob(nullptr, false);
EXPECT_TRUE(exchangeCtx);
ASSERT_TRUE(exchangeCtx);

// Create readHandler
ReadHandler * readHandler = engine->GetReadHandlerPool().CreateObject(
Expand Down
6 changes: 3 additions & 3 deletions src/app/tests/TestTimedHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
* limitations under the License.
*/

#include <gtest/gtest.h>

#include <app/InteractionModelEngine.h>
#include <app/MessageDef/TimedRequestMessage.h>
#include <app/StatusResponse.h>
#include <app/tests/AppTestContext.h>
#include <lib/core/CHIPCore.h>
#include <lib/core/StringBuilderAdapters.h>
#include <lib/core/TLV.h>
#include <lib/support/UnitTestUtils.h>
#include <protocols/interaction_model/Constants.h>
#include <pw_unit_test/framework.h>
#include <system/TLVPacketBufferBackingStore.h>
#include <transport/SessionManager.h>

Expand Down Expand Up @@ -193,7 +193,7 @@ void TestTimedHandler::TestFollowingMessageTooSlow(MsgType aMsgType)

TestExchangeDelegate delegate;
ExchangeContext * exchange = pTestContext->NewExchangeToAlice(&delegate);
EXPECT_NE(exchange, nullptr);
ASSERT_NE(exchange, nullptr);

EXPECT_FALSE(delegate.mNewMessageReceived);

Expand Down

0 comments on commit 37122f9

Please sign in to comment.