-
Notifications
You must be signed in to change notification settings - Fork 19
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
Added unit tests for UI signer authorization module #116
Added unit tests for UI signer authorization module #116
Conversation
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.
Looking good, left a few comments of things we might want to look into.
ledger/src/ui/test/signer_authorization/test_signer_authorization.c
Outdated
Show resolved
Hide resolved
ledger/src/ui/test/signer_authorization/test_signer_authorization.c
Outdated
Show resolved
Hide resolved
HSM_SIMULATOR flag was defined at the top level mock library, now we're moving the definition to the specific tests that need it
…on module moved PARAM_INITIAL_SIGNER_HASH and PARAM_INITIAL_SIGNER_ITERATION to signer_authorization
Exposing N_current_signer_status_var allows us to directly assert its value in the unit tests, and doesn't expose us to unecessary risk
59a3e43
to
610ed88
Compare
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.
LGTM!
One minor comment regarding the use of NON_VOLATILE
in test-only NVM mock variables.
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.
LGTM. One minor comment
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.
LGTM!
NON_VOLATILE
modifier to NVM variablesruntime.h
to common folder to allow usage in UI