[Nearby] Fix next public certificate expiration time
Returns the correct next expiration time for the stored public certificates. Because the expirations times were being persisted as a map using the certificate ID as the key, they were sorted by the ID and not the expiration time. We now sort by expiration time when retrieving from prefs. Changed the fake certificate IDs in the unit tests so tests will fail if the certificate are not sorted. Change-Id: Idd546c62939bd4bb4c62be405a3f8d9cec79de70 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2429287 Commit-Queue: Josh Nohle <nohle@chromium.org> Commit-Queue: James Vecore <vecore@google.com> Auto-Submit: Josh Nohle <nohle@chromium.org> Reviewed-by:James Vecore <vecore@google.com> Cr-Commit-Position: refs/heads/master@{#810340}
Showing
Please register or sign in to comment