@@ -624,72 +624,72 @@ class TestICDManager
624
624
625
625
#if CHIP_CONFIG_PERSIST_SUBSCRIPTIONS
626
626
#if CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
627
- static void TestCheckInWouldBeSentAtActiveModeVerifier (nlTestSuite * aSuite, void * aContext)
627
+ static void TestShouldCheckInMsgsBeSentAtActiveModeFunction (nlTestSuite * aSuite, void * aContext)
628
628
{
629
629
TestContext * ctx = static_cast <TestContext *>(aContext);
630
630
631
631
// Test 1 - Has no ActiveSubscription & no persisted subscription
632
632
ctx->mSubInfoProvider .SetHasActiveSubscription (false );
633
633
ctx->mSubInfoProvider .SetHasPersistedSubscription (false );
634
- NL_TEST_ASSERT (aSuite, ctx->mICDManager .CheckInWouldBeSentAtActiveModeVerifier (kTestFabricIndex1 , kClientNodeId11 ));
634
+ NL_TEST_ASSERT (aSuite, ctx->mICDManager .ShouldCheckInMsgsBeSentAtActiveModeFunction (kTestFabricIndex1 , kClientNodeId11 ));
635
635
636
636
// Test 2 - Has no active subscription & a persisted subscription
637
637
ctx->mSubInfoProvider .SetHasActiveSubscription (false );
638
638
ctx->mSubInfoProvider .SetHasPersistedSubscription (true );
639
- NL_TEST_ASSERT (aSuite, !(ctx->mICDManager .CheckInWouldBeSentAtActiveModeVerifier (kTestFabricIndex1 , kClientNodeId11 )));
639
+ NL_TEST_ASSERT (aSuite, !(ctx->mICDManager .ShouldCheckInMsgsBeSentAtActiveModeFunction (kTestFabricIndex1 , kClientNodeId11 )));
640
640
641
641
// Test 3 - Has an active subscription & a persisted subscription
642
642
ctx->mSubInfoProvider .SetHasActiveSubscription (true );
643
643
ctx->mSubInfoProvider .SetHasPersistedSubscription (true );
644
- NL_TEST_ASSERT (aSuite, !(ctx->mICDManager .CheckInWouldBeSentAtActiveModeVerifier (kTestFabricIndex1 , kClientNodeId11 )));
644
+ NL_TEST_ASSERT (aSuite, !(ctx->mICDManager .ShouldCheckInMsgsBeSentAtActiveModeFunction (kTestFabricIndex1 , kClientNodeId11 )));
645
645
}
646
646
#else
647
- static void TestCheckInWouldBeSentAtActiveModeVerifier (nlTestSuite * aSuite, void * aContext)
647
+ static void TestShouldCheckInMsgsBeSentAtActiveModeFunction (nlTestSuite * aSuite, void * aContext)
648
648
{
649
649
TestContext * ctx = static_cast <TestContext *>(aContext);
650
650
651
651
// Test 1 - Has no active subscription and no persisted subscription at boot up
652
652
ctx->mSubInfoProvider .SetHasActiveSubscription (false );
653
653
ctx->mSubInfoProvider .SetHasPersistedSubscription (false );
654
654
ctx->mICDManager .mIsBootUpResumeSubscriptionExecuted = false ;
655
- NL_TEST_ASSERT (aSuite, ctx->mICDManager .CheckInWouldBeSentAtActiveModeVerifier (kTestFabricIndex1 , kClientNodeId11 ));
655
+ NL_TEST_ASSERT (aSuite, ctx->mICDManager .ShouldCheckInMsgsBeSentAtActiveModeFunction (kTestFabricIndex1 , kClientNodeId11 ));
656
656
657
657
// Test 2 - Has no active subscription and a persisted subscription at boot up
658
658
ctx->mSubInfoProvider .SetHasActiveSubscription (false );
659
659
ctx->mSubInfoProvider .SetHasPersistedSubscription (true );
660
660
ctx->mICDManager .mIsBootUpResumeSubscriptionExecuted = false ;
661
- NL_TEST_ASSERT (aSuite, !(ctx->mICDManager .CheckInWouldBeSentAtActiveModeVerifier (kTestFabricIndex1 , kClientNodeId11 )));
661
+ NL_TEST_ASSERT (aSuite, !(ctx->mICDManager .ShouldCheckInMsgsBeSentAtActiveModeFunction (kTestFabricIndex1 , kClientNodeId11 )));
662
662
663
663
// Test 3 - Has an active subscription and a persisted subscription during normal operations
664
664
ctx->mSubInfoProvider .SetHasActiveSubscription (true );
665
665
ctx->mSubInfoProvider .SetHasPersistedSubscription (true );
666
666
ctx->mICDManager .mIsBootUpResumeSubscriptionExecuted = true ;
667
- NL_TEST_ASSERT (aSuite, !(ctx->mICDManager .CheckInWouldBeSentAtActiveModeVerifier (kTestFabricIndex1 , kClientNodeId11 )));
667
+ NL_TEST_ASSERT (aSuite, !(ctx->mICDManager .ShouldCheckInMsgsBeSentAtActiveModeFunction (kTestFabricIndex1 , kClientNodeId11 )));
668
668
669
669
// Test 4 - Has no active subscription and a persisted subscription during normal operations
670
670
ctx->mSubInfoProvider .SetHasActiveSubscription (false );
671
671
ctx->mSubInfoProvider .SetHasPersistedSubscription (true );
672
672
ctx->mICDManager .mIsBootUpResumeSubscriptionExecuted = true ;
673
- NL_TEST_ASSERT (aSuite, ctx->mICDManager .CheckInWouldBeSentAtActiveModeVerifier (kTestFabricIndex1 , kClientNodeId11 ));
673
+ NL_TEST_ASSERT (aSuite, ctx->mICDManager .ShouldCheckInMsgsBeSentAtActiveModeFunction (kTestFabricIndex1 , kClientNodeId11 ));
674
674
}
675
675
#endif // CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
676
676
#else
677
- static void TestCheckInWouldBeSentAtActiveModeVerifier (nlTestSuite * aSuite, void * aContext)
677
+ static void TestShouldCheckInMsgsBeSentAtActiveModeFunction (nlTestSuite * aSuite, void * aContext)
678
678
{
679
679
TestContext * ctx = static_cast <TestContext *>(aContext);
680
680
681
681
// Test 1 - Has an active subscription
682
682
ctx->mSubInfoProvider .SetHasActiveSubscription (true );
683
683
NL_TEST_ASSERT (aSuite,
684
- ctx->mICDManager .CheckInWouldBeSentAtActiveModeVerifier (kTestFabricIndex1 , kClientNodeId11 ) == false );
684
+ ctx->mICDManager .ShouldCheckInMsgsBeSentAtActiveModeFunction (kTestFabricIndex1 , kClientNodeId11 ) == false );
685
685
686
686
// Test 2 - Has no active subscription
687
687
ctx->mSubInfoProvider .SetHasActiveSubscription (false );
688
- NL_TEST_ASSERT (aSuite, ctx->mICDManager .CheckInWouldBeSentAtActiveModeVerifier (kTestFabricIndex1 , kClientNodeId11 ));
688
+ NL_TEST_ASSERT (aSuite, ctx->mICDManager .ShouldCheckInMsgsBeSentAtActiveModeFunction (kTestFabricIndex1 , kClientNodeId11 ));
689
689
690
690
// Test 3 - Make sure that the persisted subscription has no impact
691
691
ctx->mSubInfoProvider .SetHasPersistedSubscription (true );
692
- NL_TEST_ASSERT (aSuite, ctx->mICDManager .CheckInWouldBeSentAtActiveModeVerifier (kTestFabricIndex1 , kClientNodeId11 ));
692
+ NL_TEST_ASSERT (aSuite, ctx->mICDManager .ShouldCheckInMsgsBeSentAtActiveModeFunction (kTestFabricIndex1 , kClientNodeId11 ));
693
693
}
694
694
#endif // CHIP_CONFIG_PERSIST_SUBSCRIPTIONS
695
695
};
@@ -709,7 +709,7 @@ static const nlTest sTests[] = {
709
709
NL_TEST_DEF (" TestICDMRegisterUnregisterEvents" , TestICDManager::TestICDMRegisterUnregisterEvents),
710
710
NL_TEST_DEF (" TestICDCounter" , TestICDManager::TestICDCounter),
711
711
NL_TEST_DEF (" TestICDStayActive" , TestICDManager::TestICDMStayActive),
712
- NL_TEST_DEF (" TestCheckInWouldBeSentAtActiveModeVerifier " , TestICDManager::TestCheckInWouldBeSentAtActiveModeVerifier ),
712
+ NL_TEST_DEF (" TestShouldCheckInMsgsBeSentAtActiveModeFunction " , TestICDManager::TestShouldCheckInMsgsBeSentAtActiveModeFunction ),
713
713
NL_TEST_SENTINEL (),
714
714
};
715
715
0 commit comments