Commit 82465c10 authored by Matt Menke's avatar Matt Menke Committed by Commit Bot

Fix SimpleURLLoader test fixture.

MockURLLoader::RunTest had a case statement that was accidetnally
falling through to the next case.

Bug: 177475, 746977
Change-Id: Ifce64d1afaaaff6b33ef8057517627e694389641
Reviewed-on: https://chromium-review.googlesource.com/891739Reviewed-by: default avatarRandy Smith <rdsmith@chromium.org>
Commit-Queue: Matt Menke <mmenke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#532933}
parent 14f4cf3d
......@@ -1347,8 +1347,10 @@ class MockURLLoader : public network::mojom::URLLoader {
status.error_code = net::OK;
status.decoded_body_length = CountBytesToSend() - 1;
client_->OnComplete(status);
break;
}
case TestLoaderEvent::kClientPipeClosed: {
DCHECK(client_);
EXPECT_TRUE(binding_.is_bound());
client_.reset();
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment