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

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

Issue 2192593002: [ios] Cleaned up web EG matchers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pdf_eg_test
Patch Set: Created 4 years, 5 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/earl_grey/web_view_matchers.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/earl_grey/shell_matchers.h b/ios/web/shell/test/earl_grey/shell_matchers.h
index 3158c9a196f75fb8f6c042e081157577b0503795..f458b8c60ad6f462b65e44c1724329b70de6e0cf 100644
--- a/ios/web/shell/test/earl_grey/shell_matchers.h
+++ b/ios/web/shell/test/earl_grey/shell_matchers.h
@@ -8,50 +8,25 @@
namespace web {
-// Shorthand for GREYMatchers::matcherForWebViewContainingText.
-id<GREYMatcher> webViewContainingText(const std::string& text);
-
-// Shorthand for GREYMatchers::matcherForWebWithCSSSelector.
-id<GREYMatcher> webViewCssSelector(const std::string& selector);
-
-// Shorthand for GREYMatchers::matcherForWebViewScrollView.
-id<GREYMatcher> webViewScrollView();
-
-// Shorthand for GREYMatchers::matcherForAddressFieldEqualToText.
-id<GREYMatcher> addressFieldText(const std::string& text);
-
-// Shorthand for GREYMatchers::matcherForBackButton.
-id<GREYMatcher> backButton();
-
-// Shorthand for GREYMatchers::matcherForForwardButton.
-id<GREYMatcher> forwardButton();
-
-// Shorthand for GREYMatchers::matcherForAddressField.
-id<GREYMatcher> addressField();
-
-} // namespace web
-
-@interface GREYMatchers (WebShellAdditions)
-
// Matcher for WKWebView containing |text|.
-+ (id<GREYMatcher>)matcherForWebViewContainingText:(const std::string&)text;
+id<GREYMatcher> webViewContainingText(std::string text);
// Matcher for WKWebView containing an html element which matches |selector|.
-+ (id<GREYMatcher>)matcherForWebWithCSSSelector:(const std::string&)selector;
+id<GREYMatcher> webViewCssSelector(std::string selector);
// Matcher for WKWebView's scroll view.
-+ (id<GREYMatcher>)matcherForWebViewScrollView;
+id<GREYMatcher> webViewScrollView();
// Matcher for web shell address field text property equal to |text|.
-+ (id<GREYMatcher>)matcherForAddressFieldEqualToText:(const std::string&)text;
+id<GREYMatcher> addressFieldText(std::string text);
// Matcher for back button in web shell.
-+ (id<GREYMatcher>)matcherForWebShellBackButton;
+id<GREYMatcher> backButton();
// Matcher for forward button in web shell.
-+ (id<GREYMatcher>)matcherForWebShellForwardButton;
+id<GREYMatcher> forwardButton();
// Matcher for address field in web shell.
-+ (id<GREYMatcher>)matcherForWebShellAddressField;
+id<GREYMatcher> addressField();
-@end
+} // namespace web
« no previous file with comments | « ios/web/public/test/earl_grey/web_view_matchers.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