Index: ios/web/public/test/fakes/test_web_state_delegate.h |
diff --git a/ios/web/public/test/fakes/test_web_state_delegate.h b/ios/web/public/test/fakes/test_web_state_delegate.h |
index 8a8705c1f9527b283755b0caf4e84c1151fefea4..30e941dfac9c879462f69d74a7d35975908ee410 100644 |
--- a/ios/web/public/test/fakes/test_web_state_delegate.h |
+++ b/ios/web/public/test/fakes/test_web_state_delegate.h |
@@ -65,6 +65,11 @@ class TestWebStateDelegate : public WebStateDelegate { |
return last_authentication_request_.get(); |
} |
+ // Clears the last HTTP Authentication request passed to |OnAuthRequired|. |
+ void ClearLastAuthenticationRequest() { |
+ last_authentication_request_.reset(); |
+ } |
+ |
private: |
bool load_progress_changed_called_ = false; |
bool handle_context_menu_called_ = false; |