• Dan Elphick's avatar
    Make GetRegistration work with persistent storage · 34c5fc97
    Dan Elphick authored
    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: default avatarAvi Drissman <avi@chromium.org>
    Reviewed-by: default avatarPeter Beverloo <peter@chromium.org>
    Commit-Queue: Dan Elphick <delphick@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#515498}
    34c5fc97
BUILD.gn 95.3 KB