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

Side by Side 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, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import <string> 5 #import <string>
6 6
7 #import <EarlGrey/EarlGrey.h> 7 #import <EarlGrey/EarlGrey.h>
8 8
9 #import "ios/web/public/web_state/web_state.h" 9 #import "ios/web/public/web_state/web_state.h"
10 10
11 namespace web { 11 namespace web {
12 12
13 // Shorthand for GREYMatchers::matcherForWebViewContainingText:inWebState. 13 // Shorthand for GREYMatchers::matcherForWebViewContainingText:inWebState.
14 id<GREYMatcher> webViewContainingText(const std::string& text, 14 id<GREYMatcher> webViewContainingText(const std::string& text,
15 web::WebState* webState); 15 web::WebState* webState);
16 16
17 // Shorthand for GREYMatchers::matcherForWebWithCSSSelector:inWebState. 17 // Shorthand for GREYMatchers::matcherForWebWithCSSSelector:inWebState.
18 id<GREYMatcher> webViewCssSelector(const std::string& selector, 18 id<GREYMatcher> webViewCssSelector(const std::string& selector,
19 web::WebState* webState); 19 web::WebState* webState);
20 20
21 // Shorthand for GREYMatchers::matcherForWebViewScrollViewInWebState. 21 // Shorthand for GREYMatchers::matcherForWebViewScrollViewInWebState.
22 id<GREYMatcher> webViewScrollView(web::WebState* webState); 22 id<GREYMatcher> webViewScrollView(web::WebState* webState);
23 23
24 // Shorthand for GREYMatchers::matcherForWebViewMIMETYPE:inWebState.
25 id<GREYMatcher> webViewMimeType(const std::string& mime_type,
26 web::WebState* webState);
27
24 } // namespace web 28 } // namespace web
25 29
26 @interface GREYMatchers (WebViewAdditions) 30 @interface GREYMatchers (WebViewAdditions)
27 31
28 // Matcher for WKWebView containing |text|. 32 // Matcher for WKWebView containing |text|.
29 + (id<GREYMatcher>)matcherForWebViewContainingText:(const std::string&)text 33 + (id<GREYMatcher>)matcherForWebViewContainingText:(const std::string&)text
30 inWebState:(web::WebState*)webState; 34 inWebState:(web::WebState*)webState;
31 35
32 // Matcher for WKWebView containing an html element which matches |selector|. 36 // Matcher for WKWebView containing an html element which matches |selector|.
33 + (id<GREYMatcher>)matcherForWebWithCSSSelector:(const std::string&)selector 37 + (id<GREYMatcher>)matcherForWebWithCSSSelector:(const std::string&)selector
34 inWebState:(web::WebState*)webState; 38 inWebState:(web::WebState*)webState;
35 39
36 // Matcher for WKWebView's scroll view. 40 // Matcher for WKWebView's scroll view.
37 + (id<GREYMatcher>)matcherForWebViewScrollViewInWebState: 41 + (id<GREYMatcher>)matcherForWebViewScrollViewInWebState:
38 (web::WebState*)webState; 42 (web::WebState*)webState;
39 43
44 // Matcher for WKWebView with given MIME type.
45 + (id<GREYMatcher>)matcherForWebViewMIMEType:(const std::string&)MIMEType
46 inWebState:(web::WebState*)webState;
47
40 @end 48 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698