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

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

Issue 2644223002: Integration tests for WebStateDelegate::OnAuthRequired callback. (Closed)
Patch Set: Self review 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
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 e1eb13e32bc2d96b283b7bd04e23f203f495cf5f..2cdd680f3228119925da739decde0512bdf21eee 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;

Powered by Google App Engine
This is Rietveld 408576698