Make GetRegistration work with persistent storage
Add a new GetRegistrationTask to be used by BackgroundFetchDataManager when the persistent storage flag is enabled. Adds the origin to the proto stored in the database and check it matches when retrieving a registration, otherwise trigger a storage error. Make BackgroundFetchDataManagerTest parameterized by persistence, which turns on the command line flag. Now all tests run (and pass) with or without persistence although the Cleanup test doesn't test much yet since there's no way yet to interact with a non-active fetch. Bug: 757760 Change-Id: I3aa29e17f9112f282f5672366e52522e549f32d0 Reviewed-on: https://chromium-review.googlesource.com/758762Reviewed-by:Avi Drissman <avi@chromium.org> Reviewed-by:
Peter Beverloo <peter@chromium.org> Commit-Queue: Dan Elphick <delphick@chromium.org> Cr-Commit-Position: refs/heads/master@{#515498}
Showing
This diff is collapsed.
Please register or sign in to comment