-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ICD] Add counter invalidation events to the ICD Test Event trigger handler #33174
[ICD] Add counter invalidation events to the ICD Test Event trigger handler #33174
Conversation
5c68353
to
ba4fcc5
Compare
63de4c9
to
f41634d
Compare
PR #33174: Size comparison from 2495011 to f41634d Increases (4 builds for cc32xx, mbed, stm32)
Full report (4 builds for cc32xx, mbed, stm32)
|
PR #33174: Size comparison from 2495011 to 25d5f52 Increases above 0.2%:
Increases (65 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, esp32, linux, mbed, nxp, psoc6, qpg, stm32, telink)
Decreases (12 builds for linux)
Full report (65 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, esp32, linux, mbed, nxp, psoc6, qpg, stm32, telink)
|
PR #33174: Size comparison from 2495011 to 1a5ede8 Increases (14 builds for cc13x4_26x4, cc32xx, mbed, nrfconnect, qpg, stm32)
Full report (14 builds for cc13x4_26x4, cc32xx, mbed, nrfconnect, qpg, stm32)
|
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
PR #33174: Size comparison from 2495011 to 1d70aaf Increases above 0.2%:
Increases (67 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink)
Decreases (13 builds for linux, telink)
Full report (68 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink)
|
PR #33174: Size comparison from 5ce992d to 30100ac Increases (4 builds for cc32xx, mbed, stm32)
Full report (4 builds for cc32xx, mbed, stm32)
|
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
PR #33174: Size comparison from 5ce992d to 2732c04 Increases above 0.2%:
Increases (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink)
Decreases (1 build for linux)
Full report (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink)
|
namespace Protocols { | ||
namespace SecureChannel { | ||
|
||
CHIP_ERROR CheckInCounter::InvalidateHalfCheckInCouterValues() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Couter" is a typo
* | ||
* @return CHIP_ERROR Any error returned by a write to persisted storage. | ||
*/ | ||
CHIP_ERROR InvalidateHalfCheckInCouterValues(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Couter" is a typo
@@ -666,6 +668,14 @@ CHIP_ERROR ICDManager::HandleEventTrigger(uint64_t eventTrigger) | |||
case ICDTestEventTriggerEvent::kRemoveActiveModeReq: | |||
SetKeepActiveModeRequirements(KeepActiveFlag::kTestEventTriggerActiveMode, false); | |||
break; | |||
#if CHIP_CONFIG_ENABLE_ICD_CIP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When is this not enabled?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For SIT devices that still use the TestEventTrigger but might not have the Check-In Protocol support.
Description
The goal of the PR is to add two new ICD test event trigger events that increase the ICDCounter value to enable client behavior testing. The two events are :
IMPORTANT : PR also modifies the PersistedCounter check when updating the counter value because it prevented the counter from using the last counter value (max counter size value - UINTXX_MAX) and would return an error anytime the counter is increased afterwards. - #33175
PR adds / changes :
Drive by changes :
Note to revewiers:
TestICDManager will be converted to gtest in a follow up since it is a pretty large test file
Tests