Commit fb01c6eb authored by Mohamed Abdelhalim's avatar Mohamed Abdelhalim Committed by Commit Bot

Navigation: Remove unused test function. [Trivial]

This removes the unused SimulateWillProcessResponse() from
NavigationRequestTest.

Change-Id: Ic4eca2014f34a81e557d5fd502d05c4cf8b545b0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1901042Reviewed-by: default avatarArthur Sonzogni <arthursonzogni@chromium.org>
Commit-Queue: Mohamed Abdelhalim <zetamoo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#713042}
parent 629b4402
...@@ -131,24 +131,6 @@ class NavigationRequestTest : public RenderViewHostImplTestHarness { ...@@ -131,24 +131,6 @@ class NavigationRequestTest : public RenderViewHostImplTestHarness {
base::Unretained(this))); base::Unretained(this)));
} }
// Helper function to call WillProcessResponse on |handle|. If this function
// returns DEFER, |callback_result_| will be set to the actual result of the
// throttle checks when they are finished.
// TODO(clamy): this should also simulate that WillStartRequest was called if
// it has not been called before.
void SimulateWillProcessResponse() {
was_callback_called_ = false;
callback_result_ = NavigationThrottle::DEFER;
// It's safe to use base::Unretained since the NavigationHandle is owned by
// the NavigationRequestTest. The ConnectionInfo is different from that sent
// to WillRedirectRequest to verify that it's correctly plumbed in both
// cases.
request_->WillProcessResponse(
base::BindOnce(&NavigationRequestTest::UpdateThrottleCheckResult,
base::Unretained(this)));
}
// Whether the callback was called. // Whether the callback was called.
bool was_callback_called() const { return was_callback_called_; } bool was_callback_called() const { return was_callback_called_; }
......
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