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

Unified Diff: ios/web/public/test/earl_grey/web_view_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 | « no previous file | ios/web/public/test/earl_grey/web_view_matchers.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/test/earl_grey/web_view_matchers.h
diff --git a/ios/web/public/test/earl_grey/web_view_matchers.h b/ios/web/public/test/earl_grey/web_view_matchers.h
index efa073b566b577a1536f34ac94fa1a603f26d8ae..756ce32b3c24e25a4e8a35f0906abdd185aff10b 100644
--- a/ios/web/public/test/earl_grey/web_view_matchers.h
+++ b/ios/web/public/test/earl_grey/web_view_matchers.h
@@ -10,37 +10,16 @@
namespace web {
-// Shorthand for GREYMatchers::matcherForWebViewInWebState.
-id<GREYMatcher> webViewInWebState(web::WebState* webState);
-
-// Shorthand for GREYMatchers::matcherForWebViewContainingText:inWebState.
-id<GREYMatcher> webViewContainingText(const std::string& text,
- web::WebState* webState);
-
-// Shorthand for GREYMatchers::matcherForWebWithCSSSelector:inWebState.
-id<GREYMatcher> webViewCssSelector(const std::string& selector,
- web::WebState* webState);
-
-// Shorthand for GREYMatchers::matcherForWebViewScrollViewInWebState.
-id<GREYMatcher> webViewScrollView(web::WebState* webState);
-
-} // namespace web
-
-@interface GREYMatchers (WebViewAdditions)
-
// Matcher for WKWebView which belogs to the given |webState|.
-+ (id<GREYMatcher>)matcherForWebViewInWebState:(web::WebState*)webState;
+id<GREYMatcher> webViewInWebState(WebState* web_state);
// Matcher for WKWebView containing |text|.
-+ (id<GREYMatcher>)matcherForWebViewContainingText:(const std::string&)text
- inWebState:(web::WebState*)webState;
+id<GREYMatcher> webViewContainingText(std::string text, WebState* web_state);
// Matcher for WKWebView containing an html element which matches |selector|.
-+ (id<GREYMatcher>)matcherForWebWithCSSSelector:(const std::string&)selector
- inWebState:(web::WebState*)webState;
+id<GREYMatcher> webViewCssSelector(std::string selector, WebState* web_state);
// Matcher for WKWebView's scroll view.
-+ (id<GREYMatcher>)matcherForWebViewScrollViewInWebState:
- (web::WebState*)webState;
+id<GREYMatcher> webViewScrollView(WebState* web_state);
-@end
+} // namespace web
« no previous file with comments | « no previous file | ios/web/public/test/earl_grey/web_view_matchers.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698