Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Unified Diff: ios/web/public/test/fakes/test_web_state_delegate.h

Issue 2644223002: Integration tests for WebStateDelegate::OnAuthRequired callback. (Closed)
Patch Set: Addressed review comments Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web/BUILD.gn ('k') | ios/web/public/test/fakes/test_web_state_delegate.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « ios/web/BUILD.gn ('k') | ios/web/public/test/fakes/test_web_state_delegate.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698