Implemented CredentialManager methods + tests
Implemented CredentialManager methods: * HandleScriptCommandCallback * SendGetResponse * SendStoreResponse * SendPreventSilentAccessResponse * constructor (register script command callback) * destructor (remove script command callback) Added unit tests for this class, which test it via public API i.e. exposed JavaScript interface. Tests are meant to ensure that: * calling exposed navigator.credentials method |get|, |store| or |preventSilentAccess| results in calling proper method on CredentialManagerImpl * that arguments are validated before that happens * that calls from insecure context are ignored * that Promises returned by navigator.credentials methods |get|, |store|, |preventSilentAccess| resolve with correct type and correct value or reject with error of right type. Change-Id: Ia82c0ec29b9011fc763abc952b888c7483b4b840 Reviewed-on: https://chromium-review.googlesource.com/649610 Commit-Queue: Tomasz Garbus <tgarbus@chromium.org> Reviewed-by:Eugene But <eugenebut@chromium.org> Reviewed-by:
Vasilii Sukhanov <vasilii@chromium.org> Cr-Commit-Position: refs/heads/master@{#501235}
Showing
This diff is collapsed.
Please register or sign in to comment