Adopt ScopedAllowBlockingForTesting in FakeServer
We've wondered why some tests failed flakily instead of failing deterministically due to blocking operations not being allowed in the UI thread. One explanation is the FakeServer's direct use of base::ThreadRestrictions::SetIOAllowed(), which doesn't revert the allowing of IO. This has the side effect that it would hide any misuse of blocking IO operations in sync integration tests. This patch fixes one remaining test surfaced as part of this work. Bug: 1004312,1009372 Change-Id: Id8e57485860873e78093c18069935a646514a469 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1883630 Commit-Queue: Mikel Astiz <mastiz@chromium.org> Auto-Submit: Mikel Astiz <mastiz@chromium.org> Reviewed-by:Marc Treib <treib@chromium.org> Cr-Commit-Position: refs/heads/master@{#710730}
Showing
Please register or sign in to comment