@@ -259,6 +259,9 @@ void TestInteractionModelEngine::TestRemoveDuplicateConcreteAttribute(nlTestSuit
259
259
InteractionModelEngine::GetInstance ()->ReleaseAttributePathList (attributePathParamsList);
260
260
}
261
261
262
+ /* *
263
+ * @brief Test verifies the SubjectHasActiveSubscription with a single subscription with a single entry
264
+ */
262
265
void TestInteractionModelEngine::TestSubjectHasActiveSubscriptionSingleSubOneEntry (nlTestSuite * apSuite, void * apContext)
263
266
{
264
267
TestContext & ctx = *static_cast <TestContext *>(apContext);
@@ -300,6 +303,10 @@ void TestInteractionModelEngine::TestSubjectHasActiveSubscriptionSingleSubOneEnt
300
303
NL_TEST_ASSERT (apSuite, engine->SubjectHasActiveSubscription (bobFabricIndex, bobNodeId) == false );
301
304
}
302
305
306
+ /* *
307
+ * @brief Test verifies that the SubjectHasActiveSubscription will continue iterating till it fines at least one valid active
308
+ * subscription
309
+ */
303
310
void TestInteractionModelEngine::TestSubjectHasActiveSubscriptionSingleSubMultipleEntries (nlTestSuite * apSuite, void * apContext)
304
311
{
305
312
TestContext & ctx = *static_cast <TestContext *>(apContext);
@@ -354,6 +361,9 @@ void TestInteractionModelEngine::TestSubjectHasActiveSubscriptionSingleSubMultip
354
361
engine->GetReadHandlerPool ().ReleaseAll ();
355
362
}
356
363
364
+ /* *
365
+ * @brief Test validates that the SubjectHasActiveSubscription can support multiple subscriptions from different clients
366
+ */
357
367
void TestInteractionModelEngine::TestSubjectHasActiveSubscriptionMultipleSubsSingleEntry (nlTestSuite * apSuite, void * apContext)
358
368
{
359
369
TestContext & ctx = *static_cast <TestContext *>(apContext);
@@ -427,6 +437,10 @@ void TestInteractionModelEngine::TestSubjectHasActiveSubscriptionMultipleSubsSin
427
437
NL_TEST_ASSERT (apSuite, engine->SubjectHasActiveSubscription (aliceFabricIndex, aliceNodeId) == false );
428
438
}
429
439
440
+ /* *
441
+ * @brief Test validates that the SubjectHasActiveSubscription can find the active subscription even if there are multiple
442
+ * subscriptions for each client
443
+ */
430
444
void TestInteractionModelEngine::TestSubjectHasActiveSubscriptionMultipleSubsMultipleEntries (nlTestSuite * apSuite,
431
445
void * apContext)
432
446
{
@@ -516,6 +530,9 @@ void TestInteractionModelEngine::TestSubjectHasActiveSubscriptionMultipleSubsMul
516
530
NL_TEST_ASSERT (apSuite, engine->SubjectHasActiveSubscription (aliceFabricIndex, aliceNodeId) == false );
517
531
}
518
532
533
+ /* *
534
+ * @brief Verifies that SubjectHasActiveSubscription support CATs as a subject-id
535
+ */
519
536
void TestInteractionModelEngine::TestSubjectHasActiveSubscriptionSubWithCAT (nlTestSuite * apSuite, void * apContext)
520
537
{
521
538
TestContext & ctx = *reinterpret_cast <TestContext *>(apContext);
@@ -569,6 +586,9 @@ void TestInteractionModelEngine::TestSubjectHasActiveSubscriptionSubWithCAT(nlTe
569
586
570
587
#if CHIP_CONFIG_PERSIST_SUBSCRIPTIONS
571
588
589
+ /* *
590
+ * @brief Test verifies the SubjectHasPersistedSubscription with single and multiple persisted subscriptions.
591
+ */
572
592
void TestInteractionModelEngine::TestSubjectHasPersistedSubscription (nlTestSuite * apSuite, void * apContext)
573
593
{
574
594
TestContext & ctx = *static_cast <TestContext *>(apContext);
0 commit comments