commit | d4e889aad1123d99822c936d39ef9b0cdf82ac30 | [log] [tgz] |
---|---|---|
author | Maksim Ivanov <[email protected]> | Fri Oct 11 20:13:30 2019 |
committer | Commit Bot <[email protected]> | Fri Oct 11 20:13:30 2019 |
tree | feeb74531b7253f6f6653dedc660981927b83870 | |
parent | f9ec939b9f3b9c4bb5aa7814326792a810aa24a9 [diff] |
Test for system cert token loading after TPM ready Add a browser test for the logic that triggers the system slot initialization whenever the TPM goes into the "ready" state as notified by cryptohomed (added in r698007). The test exercises the following codepath (this description skips some intermediate callers for the sake of brevity): 1. SystemTokenCertDBInitializer is notified by the chromeos::[Fake]CryptohomeClient that TpmInitStatusUpdated with |ready|==true; 2. chromeos::TPMTokenLoader::EnsureStarted() gets called; 3. crypto::InitializeTPMTokenAndSystemSlot() gets called. This is verified by the test by opening a web page in the Chrome OS Login screen that uses client cert authentication. If the codepath mentioned above wouldn't work, the test would fail due to ClientCertFilterChromeOS waiting infinitely for the result from crypto::GetSystemNSSKeySlot(). Bug: 725500 Change-Id: I17e0fa42d3fda7d0deed5f86a2ab99b079865b36 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1815857 Commit-Queue: Maksim Ivanov <[email protected]> Reviewed-by: Matt Mueller <[email protected]> Reviewed-by: David Benjamin <[email protected]> Reviewed-by: Pavol Marko <[email protected]> Reviewed-by: Achuith Bhandarkar <[email protected]> Cr-Commit-Position: refs/heads/master@{#705243}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .