Skip to content

Commit 3f0eeed

Browse files
Clean up comments & code
1 parent 81d7774 commit 3f0eeed

9 files changed

+46
-43
lines changed

src/app/InteractionModelEngine.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -2054,12 +2054,12 @@ bool InteractionModelEngine::HasSubscriptionsToResume()
20542054
#endif // CHIP_CONFIG_PERSIST_SUBSCRIPTIONS && CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
20552055

20562056
#if CHIP_CONFIG_PERSIST_SUBSCRIPTIONS
2057-
void InteractionModelEngine::DecrementNumSubscriptionToResume()
2057+
void InteractionModelEngine::DecrementNumSubscriptionsToResume()
20582058
{
20592059
VerifyOrReturn(mNumOfSubscriptionToResume > 0);
20602060
#if CHIP_CONFIG_ENABLE_ICD_CIP && !CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
20612061
VerifyOrDie(mICDManager);
2062-
#endif // CHIP_CONFIG_ENABLE_ICD_CIP && CHIP_CONFIG_PERSIST_SUBSCRIPTIONS && !CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
2062+
#endif // CHIP_CONFIG_ENABLE_ICD_CIP && !CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
20632063

20642064
mNumOfSubscriptionToResume--;
20652065

src/app/InteractionModelEngine.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ class InteractionModelEngine : public Messaging::UnsolicitedMessageHandler,
328328
bool SubjectHasPersistedSubscription(FabricIndex aFabricIndex, NodeId subjectID) override;
329329

330330
#if CHIP_CONFIG_PERSIST_SUBSCRIPTIONS
331-
void DecrementNumSubscriptionToResume();
331+
void DecrementNumSubscriptionsToResume();
332332
#endif // CHIP_CONFIG_PERSIST_SUBSCRIPTIONS
333333

334334
#if CONFIG_BUILD_FOR_HOST_UNIT_TEST

src/app/SubscriptionResumptionSessionEstablisher.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ void SubscriptionResumptionSessionEstablisher::HandleDeviceConnected(void * cont
9292
InteractionModelEngine * imEngine = InteractionModelEngine::GetInstance();
9393

9494
// Decrement the number of subscriptions to resume
95-
imEngine->DecrementNumSubscriptionToResume();
95+
imEngine->DecrementNumSubscriptionsToResume();
9696

9797
if (!imEngine->EnsureResourceForSubscription(subscriptionInfo.mFabricIndex, subscriptionInfo.mAttributePaths.AllocatedSize(),
9898
subscriptionInfo.mEventPaths.AllocatedSize()))
@@ -130,7 +130,7 @@ void SubscriptionResumptionSessionEstablisher::HandleDeviceConnectionFailure(voi
130130
error.Format());
131131

132132
// Decrement the number of subscriptions to resume
133-
imEngine->DecrementNumSubscriptionToResume();
133+
imEngine->DecrementNumSubscriptionsToResume();
134134

135135
auto * subscriptionResumptionStorage = imEngine->GetSubscriptionResumptionStorage();
136136
if (!subscriptionResumptionStorage)

src/app/icd/server/BUILD.gn

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ buildconfig_header("icd-server-buildconfig") {
2424

2525
if (chip_enable_icd_lit || chip_enable_icd_checkin ||
2626
chip_enable_icd_user_active_mode_trigger) {
27-
assert(chip_enable_icd_lit)
27+
assert(chip_enable_icd_server)
2828
}
2929

3030
if (chip_enable_icd_lit) {

src/app/icd/server/ICDManager.cpp

+17-16
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ void ICDManager::Shutdown()
108108

109109
#if CHIP_CONFIG_PERSIST_SUBSCRIPTIONS && !CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
110110
mIsBootUpResumeSubscriptionExecuted = false;
111-
#endif // !CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
111+
#endif // CHIP_CONFIG_PERSIST_SUBSCRIPTIONS && !CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
112112
#endif // CHIP_CONFIG_ENABLE_ICD_CIP
113113
}
114114

@@ -208,7 +208,7 @@ void ICDManager::SendCheckInMsgs()
208208
#endif // CONFIG_BUILD_FOR_HOST_UNIT_TEST
209209
}
210210

211-
bool ICDManager::CheckInMessagesWouldBeSent(const std::function<ShouldCheckInMsgsBeSentFunction> shouldCheckInMsgsBeSentFunction &)
211+
bool ICDManager::CheckInMessagesWouldBeSent(const std::function<ShouldCheckInMsgsBeSentFunction> & shouldCheckInMsgsBeSentFunction)
212212
{
213213
VerifyOrReturnValue(shouldCheckInMsgsBeSentFunction, false);
214214

@@ -250,18 +250,18 @@ bool ICDManager::CheckInMessagesWouldBeSent(const std::function<ShouldCheckInMsg
250250

251251
/**
252252
* ShouldCheckInMsgsBeSentAtActiveModeFunction is used to determine if a Check-In message is required for a given registration.
253-
* Due to how the ICD Check-In use-case interacts with the persistent subscription and subscription timeout resumption,
254-
* having a single implementation of the function renders the implematention very difficult to understand and maintain.
255-
* Because of this, each valid feature combination has its own implementation of the verifier.
253+
* Due to how the ICD Check-In use-case interacts with the persistent subscription and subscription timeout resumption features,
254+
* having a single implementation of the function renders the implementation very difficult to understand and maintain.
255+
* Because of this, each valid feature combination has its own implementation of the function.
256256
*/
257257
#if CHIP_CONFIG_PERSIST_SUBSCRIPTIONS
258258
#if CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
259259
/**
260260
* @brief Implementation for when the persistant subscription and subscription timeout resumption feature are present.
261-
* Verifier checks that there no active or persisted subscriptions for a given fabricIndex or subjectID.
261+
* Function checks that there no active or persisted subscriptions for a given fabricIndex or subjectID.
262262
*
263263
* @param aFabricIndex
264-
* @param subjectID subjectID to check. Can be an opperationnal node id or a CAT
264+
* @param subjectID subjectID to check. Can be an operational node id or a CAT
265265
*
266266
* @return true Returns true if the fabricIndex and subjectId combination does not have an active or a persisted subscription.
267267
* @return false Returns false if the fabricIndex and subjectId combination has an active or persisted subscription.
@@ -273,13 +273,13 @@ bool ICDManager::ShouldCheckInMsgsBeSentAtActiveModeFunction(FabricIndex aFabric
273273
}
274274
#else
275275
/**
276-
* @brief Implementation for when the persistant subscription is present without the subscription timeout resumption feature.
277-
* Verifier checks that there no active subscriptions. If the boot up subscription resumption has been completed,
278-
* verifier also checks if there are persisted subscriptions.
276+
* @brief Implementation for when the persistant subscription feature is present without the subscription timeout resumption
277+
* feature. Function checks that there no active subscriptions. If the boot up subscription resumption has not been completed,
278+
* function also checks if there are persisted subscriptions.
279279
*
280280
* @note The persistent subscriptions feature tries to resume subscriptions at the highest min interval
281281
* of all the persisted subscriptions. As such, it is possible for the ICD to return to Idle Mode
282-
* until the timer elaspses. We do not when to send Check-In message to clients with persisted subscriptions
282+
* until the timer elaspses. We do not want to send Check-In messages to clients with persisted subscriptions
283283
* until we have tried to resubscribe.
284284
*
285285
* @param aFabricIndex
@@ -289,7 +289,7 @@ bool ICDManager::ShouldCheckInMsgsBeSentAtActiveModeFunction(FabricIndex aFabric
289289
* If the boot up susbscription has not been completed, there must not be a persisted subscription either.
290290
* @return false Returns false if the fabricIndex and subjectId combination has an active subscription.
291291
* If the boot up susbscription has not been completed,
292-
* if the fabricIndex and subjectId combination has a persisted subscription.
292+
* returns false if the fabricIndex and subjectId combination has a persisted subscription.
293293
*/
294294
bool ICDManager::ShouldCheckInMsgsBeSentAtActiveModeFunction(FabricIndex aFabricIndex, NodeId subjectID)
295295
{
@@ -305,8 +305,8 @@ bool ICDManager::ShouldCheckInMsgsBeSentAtActiveModeFunction(FabricIndex aFabric
305305
#endif // CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
306306
#else
307307
/**
308-
* @brief Implementation for when neither the persistant subscription and subscription timeout resumption feature are present.
309-
* Verifier checks that there no active sbuscriptions for a given fabricIndex and subjectId combination.
308+
* @brief Implementation for when neither the persistant subscription and subscription timeout resumption features are present.
309+
* Function checks that there no active sbuscriptions for a given fabricIndex and subjectId combination.
310310
*
311311
* @param aFabricIndex
312312
* @param subjectID subjectID to check. Can be an opperationnal node id or a CAT
@@ -328,6 +328,7 @@ void ICDManager::TriggerCheckInMessages(const std::function<ShouldCheckInMsgsBeS
328328
// If we are already in ActiveMode, Check-In messages have already been sent.
329329
VerifyOrReturn(mOperationalState == OperationalState::IdleMode);
330330

331+
// If we don't have any Check-In messages to send, do nothing
331332
VerifyOrReturn(CheckInMessagesWouldBeSent(verifier));
332333
UpdateOperationState(OperationalState::ActiveMode);
333334
}
@@ -390,15 +391,15 @@ void ICDManager::UpdateOperationState(OperationalState state)
390391
mOperationalState = OperationalState::IdleMode;
391392

392393
#if CHIP_CONFIG_ENABLE_ICD_CIP
393-
std::function<ShouldCheckInMsgsBeSentFunction> verifier =
394+
std::function<ShouldCheckInMsgsBeSentFunction> function =
394395
std::bind(&ICDManager::ShouldCheckInMsgsBeSentAtActiveModeFunction, this, std::placeholders::_1, std::placeholders::_2);
395396
#endif // CHIP_CONFIG_ENABLE_ICD_CIP
396397

397398
// When the active mode interval is 0, we stay in idleMode until a notification brings the icd into active mode
398399
// unless the device would need to send Check-In messages
399400
if (ICDConfigurationData::GetInstance().GetActiveModeDuration() > kZero
400401
#if CHIP_CONFIG_ENABLE_ICD_CIP
401-
|| CheckInMessagesWouldBeSent(verifier)
402+
|| CheckInMessagesWouldBeSent(function)
402403
#endif // CHIP_CONFIG_ENABLE_ICD_CIP
403404
)
404405
{

src/app/icd/server/ICDManager.h

+6-4
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ class ICDManager : public ICDListener
135135
/**
136136
* @brief Trigger the ICDManager to send Check-In message if necessary
137137
*
138-
* @param[in] algo Verifier function to use to determine if we need to send check-in messages
138+
* @param[in] function to use to determine if we need to send check-in messages
139139
*/
140-
void TriggerCheckInMessages(const std::function<ShouldCheckInMsgsBeSentFunction> & verifier);
140+
void TriggerCheckInMessages(const std::function<ShouldCheckInMsgsBeSentFunction> & function);
141141

142142
#if CHIP_CONFIG_PERSIST_SUBSCRIPTIONS && !CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
143143
/**
@@ -151,7 +151,9 @@ class ICDManager : public ICDListener
151151

152152
#if CONFIG_BUILD_FOR_HOST_UNIT_TEST
153153
void SetTestFeatureMapValue(uint32_t featureMap) { mFeatureMap = featureMap; };
154+
#if !CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION && CHIP_CONFIG_PERSIST_SUBSCRIPTIONS
154155
bool GetIsBootUpResumeSubscriptionExecuted() { return mIsBootUpResumeSubscriptionExecuted; };
156+
#endif // !CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION && CHIP_CONFIG_PERSIST_SUBSCRIPTIONS
155157
#endif
156158

157159
// Implementation of ICDListener functions.
@@ -201,7 +203,7 @@ class ICDManager : public ICDListener
201203
* @return false None of the registration would require a Check-In message either because there are no registration or
202204
* because they all have associated subscriptions.
203205
*/
204-
bool CheckInMessagesWouldBeSent(std::function<ShouldCheckInMsgsBeSentFunction> function);
206+
bool CheckInMessagesWouldBeSent(const std::function<ShouldCheckInMsgsBeSentFunction> & function);
205207
#endif // CHIP_CONFIG_ENABLE_ICD_CIP
206208

207209
KeepActiveFlags mKeepActiveFlags{ 0 };
@@ -214,7 +216,7 @@ class ICDManager : public ICDListener
214216
#if CHIP_CONFIG_ENABLE_ICD_CIP
215217
#if !CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION && CHIP_CONFIG_PERSIST_SUBSCRIPTIONS
216218
bool mIsBootUpResumeSubscriptionExecuted = false;
217-
#endif // !CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
219+
#endif // !CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION && CHIP_CONFIG_PERSIST_SUBSCRIPTIONS
218220
PersistentStorageDelegate * mStorage = nullptr;
219221
FabricTable * mFabricTable = nullptr;
220222
Messaging::ExchangeManager * mExchangeManager = nullptr;

src/app/server/Server.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -449,9 +449,9 @@ void Server::OnPlatformEvent(const DeviceLayer::ChipDeviceEvent & event)
449449
// We trigger Check-In messages before resuming subscriptions to avoid doing both.
450450
if (!mFailSafeContext.IsFailSafeArmed())
451451
{
452-
std::function<chip::app::ICDManager::ShouldCheckInMsgsBeSentFunction> verifier =
453-
std::bind(&Server::CheckInWouldBeSentAtBootVerifier, this, std::placeholders::_1, std::placeholders::_2);
454-
mICDManager.TriggerCheckInMessages(verifier);
452+
std::function<chip::app::ICDManager::ShouldCheckInMsgsBeSentFunction> function =
453+
std::bind(&Server::ShouldCheckInMsgsBeSentAtBootFunction, this, std::placeholders::_1, std::placeholders::_2);
454+
mICDManager.TriggerCheckInMessages(function);
455455
}
456456
#endif // CHIP_CONFIG_ENABLE_ICD_SERVER && CHIP_CONFIG_ENABLE_ICD_CIP
457457
#if CHIP_CONFIG_PERSIST_SUBSCRIPTIONS

src/app/server/Server.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -372,14 +372,14 @@ class Server
372372

373373
#if CHIP_CONFIG_ENABLE_ICD_CIP
374374
/**
375-
* @brief Verifier to determine if a Check-In message would be sent at Boot up
375+
* @brief Function to determine if a Check-In message would be sent at Boot up
376376
*
377377
* @param aFabricIndex client fabric index
378378
* @param subjectID client subject ID
379379
* @return true Check-In message would be sent on boot up.
380380
* @return false Device has a persisted subscription with the client. See CHIP_CONFIG_PERSIST_SUBSCRIPTIONS.
381381
*/
382-
bool CheckInWouldBeSentAtBootVerifier(FabricIndex aFabricIndex, NodeId subjectID);
382+
bool ShouldCheckInMsgsBeSentAtBootFunction(FabricIndex aFabricIndex, NodeId subjectID);
383383
#endif // CHIP_CONFIG_ENABLE_ICD_CIP
384384
#endif // CHIP_CONFIG_ENABLE_ICD_SERVER
385385

src/app/tests/TestInteractionModelEngine.cpp

+12-12
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class TestInteractionModelEngine
8484
static void TestSubjectHasActiveSubscriptionMultipleSubsSingleEntry(nlTestSuite * apSuite, void * apContext);
8585
static void TestSubjectHasActiveSubscriptionMultipleSubsMultipleEntries(nlTestSuite * apSuite, void * apContext);
8686
static void TestSubjectHasActiveSubscriptionSubWithCAT(nlTestSuite * apSuite, void * apContext);
87-
static void TestDecrementNumSubscriptionToResume(nlTestSuite * apSuite, void * apContext);
87+
static void TestDecrementNumSubscriptionsToResume(nlTestSuite * apSuite, void * apContext);
8888
};
8989

9090
int TestInteractionModelEngine::GetAttributePathListLength(SingleLinkedListNode<AttributePathParams> * apAttributePathParamsList)
@@ -683,9 +683,8 @@ void TestInteractionModelEngine::TestSubscriptionResumptionTimer(nlTestSuite * a
683683
}
684684

685685
#endif // CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
686-
#endif // CHIP_CONFIG_PERSIST_SUBSCRIPTIONS
687686

688-
void TestInteractionModelEngine::TestDecrementNumSubscriptionToResume(nlTestSuite * apSuite, void * apContext)
687+
void TestInteractionModelEngine::TestDecrementNumSubscriptionsToResume(nlTestSuite * apSuite, void * apContext)
689688
{
690689
TestContext & ctx = *static_cast<TestContext *>(apContext);
691690
CHIP_ERROR err = CHIP_NO_ERROR;
@@ -696,51 +695,52 @@ void TestInteractionModelEngine::TestDecrementNumSubscriptionToResume(nlTestSuit
696695
err = engine->Init(&ctx.GetExchangeManager(), &ctx.GetFabricTable(), app::reporting::GetDefaultReportScheduler());
697696
NL_TEST_ASSERT(apSuite, err == CHIP_NO_ERROR);
698697

699-
#if CHIP_CONFIG_ENABLE_ICD_CIP && CHIP_CONFIG_PERSIST_SUBSCRIPTIONS && !CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
698+
#if CHIP_CONFIG_ENABLE_ICD_CIP && !CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
700699
ICDManager manager;
701700
engine->SetICDManager(&manager);
702701
#endif // CHIP_CONFIG_ENABLE_ICD_CIP && CHIP_CONFIG_PERSIST_SUBSCRIPTIONS && !CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
703702

704703
// Set number of subs
705704
engine->mNumOfSubscriptionToResume = kNumberOfSubsToResume;
706705

707-
#if CHIP_CONFIG_ENABLE_ICD_CIP && CHIP_CONFIG_PERSIST_SUBSCRIPTIONS && !CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
706+
#if CHIP_CONFIG_ENABLE_ICD_CIP && !CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
708707
// Verify mIsBootUpResumeSubscriptionExecuted has not been set
709708
NL_TEST_ASSERT(apSuite, !manager.GetIsBootUpResumeSubscriptionExecuted());
710709
#endif // CHIP_CONFIG_ENABLE_ICD_CIP && CHIP_CONFIG_PERSIST_SUBSCRIPTIONS && !CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
711710

712711
// Decrease number of subs by 1
713712
numberOfSubsRemaining--;
714-
engine->DecrementNumSubscriptionToResume();
713+
engine->DecrementNumSubscriptionsToResume();
715714
NL_TEST_ASSERT_EQUALS(apSuite, numberOfSubsRemaining, engine->mNumOfSubscriptionToResume);
716715

717716
// Decrease to 0 subs remaining
718717
while (numberOfSubsRemaining > 0)
719718
{
720-
#if CHIP_CONFIG_ENABLE_ICD_CIP && CHIP_CONFIG_PERSIST_SUBSCRIPTIONS && !CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
719+
#if CHIP_CONFIG_ENABLE_ICD_CIP && !CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
721720
// Verify mIsBootUpResumeSubscriptionExecuted has not been set
722721
NL_TEST_ASSERT(apSuite, !manager.GetIsBootUpResumeSubscriptionExecuted());
723722
#endif // CHIP_CONFIG_ENABLE_ICD_CIP && CHIP_CONFIG_PERSIST_SUBSCRIPTIONS && !CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
724723

725724
numberOfSubsRemaining--;
726-
engine->DecrementNumSubscriptionToResume();
725+
engine->DecrementNumSubscriptionsToResume();
727726
NL_TEST_ASSERT_EQUALS(apSuite, numberOfSubsRemaining, engine->mNumOfSubscriptionToResume);
728727
}
729728

730-
#if CHIP_CONFIG_ENABLE_ICD_CIP && CHIP_CONFIG_PERSIST_SUBSCRIPTIONS && !CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
729+
#if CHIP_CONFIG_ENABLE_ICD_CIP && !CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
731730
// Verify mIsBootUpResumeSubscriptionExecuted has been set
732731
NL_TEST_ASSERT(apSuite, manager.GetIsBootUpResumeSubscriptionExecuted());
733732
#endif // CHIP_CONFIG_ENABLE_ICD_CIP && CHIP_CONFIG_PERSIST_SUBSCRIPTIONS && !CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
734733

735734
// Make sure we don't rollover / go negative
736-
engine->DecrementNumSubscriptionToResume();
735+
engine->DecrementNumSubscriptionsToResume();
737736
NL_TEST_ASSERT_EQUALS(apSuite, numberOfSubsRemaining, engine->mNumOfSubscriptionToResume);
738737

739738
// Clean up
740-
#if CHIP_CONFIG_ENABLE_ICD_CIP && CHIP_CONFIG_PERSIST_SUBSCRIPTIONS && !CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
739+
#if CHIP_CONFIG_ENABLE_ICD_CIP && !CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
741740
engine->SetICDManager(nullptr);
742741
#endif // CHIP_CONFIG_ENABLE_ICD_CIP && CHIP_CONFIG_PERSIST_SUBSCRIPTIONS && !CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
743742
}
743+
#endif // CHIP_CONFIG_PERSIST_SUBSCRIPTIONS
744744

745745
} // namespace app
746746
} // namespace chip
@@ -754,6 +754,7 @@ const nlTest sTests[] =
754754
NL_TEST_DEF("TestRemoveDuplicateConcreteAttribute", chip::app::TestInteractionModelEngine::TestRemoveDuplicateConcreteAttribute),
755755
#if CHIP_CONFIG_PERSIST_SUBSCRIPTIONS
756756
NL_TEST_DEF("TestSubjectHasPersistedSubscription", chip::app::TestInteractionModelEngine::TestSubjectHasPersistedSubscription),
757+
NL_TEST_DEF("TestDecrementNumSubscriptionsToResume", chip::app::TestInteractionModelEngine::TestDecrementNumSubscriptionsToResume),
757758
#if CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
758759
NL_TEST_DEF("TestSubscriptionResumptionTimer", chip::app::TestInteractionModelEngine::TestSubscriptionResumptionTimer),
759760
#endif // CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
@@ -763,7 +764,6 @@ const nlTest sTests[] =
763764
NL_TEST_DEF("TestSubjectHasActiveSubscriptionMultipleSubsSingleEntry", chip::app::TestInteractionModelEngine::TestSubjectHasActiveSubscriptionMultipleSubsSingleEntry),
764765
NL_TEST_DEF("TestSubjectHasActiveSubscriptionMultipleSubsMultipleEntries", chip::app::TestInteractionModelEngine::TestSubjectHasActiveSubscriptionMultipleSubsMultipleEntries),
765766
NL_TEST_DEF("TestSubjectHasActiveSubscriptionSubWithCAT", chip::app::TestInteractionModelEngine::TestSubjectHasActiveSubscriptionSubWithCAT),
766-
NL_TEST_DEF("TestDecrementNumSubscriptionToResume", chip::app::TestInteractionModelEngine::TestDecrementNumSubscriptionToResume),
767767
NL_TEST_SENTINEL()
768768
};
769769
// clang-format on

0 commit comments

Comments
 (0)