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

Unified Diff: ios/web/test/web_int_test.mm

Issue 2903883002: Added NavigationContext::IsPost. (Closed)
Patch Set: Self review Created 3 years, 7 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/test/web_int_test.h ('k') | ios/web/web_state/navigation_callbacks_inttest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/test/web_int_test.mm
diff --git a/ios/web/test/web_int_test.mm b/ios/web/test/web_int_test.mm
index e2dd64038a0234d5b93d4415098ca77f41afa008..067e312a9fe56bebaa5cc839f63fa5423c66506d 100644
--- a/ios/web/test/web_int_test.mm
+++ b/ios/web/test/web_int_test.mm
@@ -102,10 +102,16 @@ void WebIntTest::ExecuteBlockAndWaitForLoad(const GURL& url,
}
void WebIntTest::LoadUrl(const GURL& url) {
- ExecuteBlockAndWaitForLoad(url, ^{
- web::NavigationManager::WebLoadParams params(url);
- params.transition_type = ui::PageTransition::PAGE_TRANSITION_TYPED;
- navigation_manager()->LoadURLWithParams(params);
+ web::NavigationManager::WebLoadParams params(url);
+ params.transition_type = ui::PageTransition::PAGE_TRANSITION_TYPED;
+ LoadWithParams(params);
+}
+
+void WebIntTest::LoadWithParams(
+ const NavigationManager::WebLoadParams& params) {
+ NavigationManager::WebLoadParams block_params(params);
+ ExecuteBlockAndWaitForLoad(params.url, ^{
+ navigation_manager()->LoadURLWithParams(block_params);
});
}
« no previous file with comments | « ios/web/test/web_int_test.h ('k') | ios/web/web_state/navigation_callbacks_inttest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698