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

Unified Diff: ios/web/public/test/earl_grey/web_view_matchers.h

Issue 2183583002: [ios] EarlGrey test for PDF Mime type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@css_selector_matcher
Patch Set: Fixed dangling reference inside the block 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
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 9ced53e9d0005ffa934ef35503e754aafb427f6f..1807399f6e24f3ccb99ffb96c6d5f27a4ea39348 100644
--- a/ios/web/public/test/earl_grey/web_view_matchers.h
+++ b/ios/web/public/test/earl_grey/web_view_matchers.h
@@ -21,6 +21,10 @@ id<GREYMatcher> webViewCssSelector(const std::string& selector,
// Shorthand for GREYMatchers::matcherForWebViewScrollViewInWebState.
id<GREYMatcher> webViewScrollView(web::WebState* webState);
+// Shorthand for GREYMatchers::matcherForWebViewMIMETYPE:inWebState.
+id<GREYMatcher> webViewMimeType(const std::string& mime_type,
+ web::WebState* webState);
+
} // namespace web
@interface GREYMatchers (WebViewAdditions)
@@ -37,4 +41,8 @@ id<GREYMatcher> webViewScrollView(web::WebState* webState);
+ (id<GREYMatcher>)matcherForWebViewScrollViewInWebState:
(web::WebState*)webState;
+// Matcher for WKWebView with given MIME type.
++ (id<GREYMatcher>)matcherForWebViewMIMEType:(const std::string&)MIMEType
+ inWebState:(web::WebState*)webState;
+
@end

Powered by Google App Engine
This is Rietveld 408576698