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

Unified Diff: ios/web/shell/test/earl_grey/shell_matchers.h

Issue 1950323002: Refactor web shell integration tests utilities. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add gn Created 4 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/shell/test/app/web_shell_test_util.mm ('k') | ios/web/shell/test/earl_grey/shell_matchers.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/shell/test/earl_grey/shell_matchers.h
diff --git a/ios/web/shell/test/shell_matchers.h b/ios/web/shell/test/earl_grey/shell_matchers.h
similarity index 77%
rename from ios/web/shell/test/shell_matchers.h
rename to ios/web/shell/test/earl_grey/shell_matchers.h
index 2405d8d3f6aa33afc8474f14b332ddae8a689ab7..2cd70a9616a35c4bb7c161d4f438ba7e023cbeb0 100644
--- a/ios/web/shell/test/shell_matchers.h
+++ b/ios/web/shell/test/earl_grey/shell_matchers.h
@@ -6,6 +6,9 @@
namespace web {
+// Shorthand for GREYMatchers::matcherForWebViewContainingText.
+id<GREYMatcher> webViewContainingText(NSString* text);
+
// Shorthand for GREYMatchers::matcherForBackButton.
id<GREYMatcher> backButton();
@@ -19,6 +22,9 @@ id<GREYMatcher> addressField();
@interface GREYMatchers (WebShellAdditions)
+// Matcher for WKWebView containing |text|.
++ (id<GREYMatcher>)matcherForWebViewContainingText:(NSString*)text;
+
// Matcher for back button in web shell.
+ (id<GREYMatcher>)matcherForWebShellBackButton;
« no previous file with comments | « ios/web/shell/test/app/web_shell_test_util.mm ('k') | ios/web/shell/test/earl_grey/shell_matchers.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698