• David Bokan's avatar
    Convert extensions tests from base::Closure · 3bf822dc
    David Bokan authored
    This CL converts a pattern in extensions tests where a RunLoop quit
    closure is bound to a callback argument. In most of these cases we can
    simply convert to a OnceClosure.
    
    printer_provider_apitest has one exception that's a RepeatingClosure
    because the API actually may call the callback multiple times. In this
    case, the quit closure must be copied so it must be a RepeatingClosure.
    
    Bug: 1152268
    Change-Id: I4a201cbd78d818f1793b94a8c106d62bb59ba8f9
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2605647
    Commit-Queue: David Bokan <bokan@chromium.org>
    Reviewed-by: default avatarKaran Bhatia <karandeepb@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#840314}
    3bf822dc
test_image_loader.h 1.29 KB