Add check to net:TestDelegate to check for response finishing early
If "RunUntilRedirect" or "RunUntilAuthRequired" is run and the request unexpectedly finishes, TestDelegate will crash for trying to run the "on_complete_" closure, which would be null, and crashes with a very unhelpful message. A DCHECK and comment have been added that should make The issue a little more clear. Bug: 1000299 Change-Id: I537e8f2abc7754323bdaedcd7ee5d802ea674c9c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1782502Reviewed-by:David Benjamin <davidben@chromium.org> Commit-Queue: Aaron Tagliaboschi <aarontag@chromium.org> Cr-Commit-Position: refs/heads/master@{#693120}
Showing
Please register or sign in to comment