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

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

Issue 2717613006: Moved ios popup opening code from Tab to BlockedPopupTabHelper. (Closed)
Patch Set: Rebased Created 3 years, 10 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/public/test/fakes/test_web_state_delegate.h ('k') | ios/web/public/test/web_test_with_web_state.h » ('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.mm
diff --git a/ios/web/public/test/fakes/test_web_state_delegate.mm b/ios/web/public/test/fakes/test_web_state_delegate.mm
index a39139c7a3502835b990fb9bc0b72204b9da234e..6019215f717b04425aa2ae8581d245ca1ab639d0 100644
--- a/ios/web/public/test/fakes/test_web_state_delegate.mm
+++ b/ios/web/public/test/fakes/test_web_state_delegate.mm
@@ -8,6 +8,17 @@
namespace web {
+TestOpenURLRequest::TestOpenURLRequest()
+ : params(GURL(),
+ Referrer(),
+ WindowOpenDisposition::UNKNOWN,
+ ui::PAGE_TRANSITION_LINK,
+ false) {}
+
+TestOpenURLRequest::~TestOpenURLRequest() = default;
+
+TestOpenURLRequest::TestOpenURLRequest(const TestOpenURLRequest&) = default;
+
TestRepostFormRequest::TestRepostFormRequest() {}
TestRepostFormRequest::~TestRepostFormRequest() = default;
@@ -26,6 +37,15 @@ TestWebStateDelegate::TestWebStateDelegate() {}
TestWebStateDelegate::~TestWebStateDelegate() = default;
+WebState* TestWebStateDelegate::OpenURLFromWebState(
+ WebState* web_state,
+ const WebState::OpenURLParams& params) {
+ last_open_url_request_ = base::MakeUnique<TestOpenURLRequest>();
+ last_open_url_request_->web_state = web_state;
+ last_open_url_request_->params = params;
+ return nullptr;
+}
+
JavaScriptDialogPresenter* TestWebStateDelegate::GetJavaScriptDialogPresenter(
WebState*) {
get_java_script_dialog_presenter_called_ = true;
« no previous file with comments | « ios/web/public/test/fakes/test_web_state_delegate.h ('k') | ios/web/public/test/web_test_with_web_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698