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

Unified Diff: ios/web/shell/test/redirect_egtest.mm

Issue 2343453002: [ios] Use +[ShellEarlGrey loadURL:] for page loading in EG tests. (Closed)
Patch Set: Rebased Created 4 years, 3 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/shell/test/plugin_placeholder_egtest.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/shell/test/redirect_egtest.mm
diff --git a/ios/web/shell/test/redirect_egtest.mm b/ios/web/shell/test/redirect_egtest.mm
index e367533b5d0ec62000631d1ff1535664143f901f..91f4b5cc32f2824c82f0c3b318a7128f18838b5f 100644
--- a/ios/web/shell/test/redirect_egtest.mm
+++ b/ios/web/shell/test/redirect_egtest.mm
@@ -8,8 +8,8 @@
#include "ios/web/public/test/http_server_util.h"
#include "ios/web/public/test/response_providers/html_response_provider.h"
#include "ios/web/public/test/response_providers/html_response_provider_impl.h"
-#include "ios/web/shell/test/app/navigation_test_util.h"
#import "ios/web/shell/test/earl_grey/shell_base_test_case.h"
+#import "ios/web/shell/test/earl_grey/shell_earl_grey.h"
#import "ios/web/shell/test/earl_grey/shell_matchers.h"
#include "net/http/http_status_code.h"
@@ -50,7 +50,7 @@ using web::webViewContainingText;
web::test::SetUpHttpServer(std::move(provider));
// Load first URL and expect destination URL to load.
- web::shell_test_util::LoadUrl(firstRedirectURL);
+ [ShellEarlGrey loadURL:firstRedirectURL];
[[EarlGrey selectElementWithMatcher:addressFieldText(destinationURL.spec())]
assertWithMatcher:grey_notNil()];
[[EarlGrey selectElementWithMatcher:webViewContainingText(kFinalPageContent)]
@@ -74,7 +74,7 @@ using web::webViewContainingText;
web::test::SetUpHttpServer(std::move(provider));
// Load first URL and expect destination URL to load.
- web::shell_test_util::LoadUrl(firstRedirectURL);
+ [ShellEarlGrey loadURL:firstRedirectURL];
[[EarlGrey selectElementWithMatcher:addressFieldText(destinationURL.spec())]
assertWithMatcher:grey_notNil()];
[[EarlGrey selectElementWithMatcher:webViewContainingText(kFinalPageContent)]
@@ -98,7 +98,7 @@ using web::webViewContainingText;
web::test::SetUpHttpServer(std::move(provider));
// Load first URL and expect destination URL to load.
- web::shell_test_util::LoadUrl(firstRedirectURL);
+ [ShellEarlGrey loadURL:firstRedirectURL];
[[EarlGrey selectElementWithMatcher:addressFieldText(destinationURL.spec())]
assertWithMatcher:grey_notNil()];
[[EarlGrey selectElementWithMatcher:webViewContainingText(kFinalPageContent)]
« no previous file with comments | « ios/web/shell/test/plugin_placeholder_egtest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698