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

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: Added missing GN dependency 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
« no previous file with comments | « ios/web/ios_web_shell_tests.gyp ('k') | ios/web/public/test/earl_grey/web_view_matchers.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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::matcherForWebViewInWebState.
14 id<GREYMatcher> webViewInWebState(web::WebState* webState);
15
13 // Shorthand for GREYMatchers::matcherForWebViewContainingText:inWebState. 16 // Shorthand for GREYMatchers::matcherForWebViewContainingText:inWebState.
14 id<GREYMatcher> webViewContainingText(const std::string& text, 17 id<GREYMatcher> webViewContainingText(const std::string& text,
15 web::WebState* webState); 18 web::WebState* webState);
16 19
17 // Shorthand for GREYMatchers::matcherForWebWithCSSSelector:inWebState. 20 // Shorthand for GREYMatchers::matcherForWebWithCSSSelector:inWebState.
18 id<GREYMatcher> webViewCssSelector(const std::string& selector, 21 id<GREYMatcher> webViewCssSelector(const std::string& selector,
19 web::WebState* webState); 22 web::WebState* webState);
20 23
21 // Shorthand for GREYMatchers::matcherForWebViewScrollViewInWebState. 24 // Shorthand for GREYMatchers::matcherForWebViewScrollViewInWebState.
22 id<GREYMatcher> webViewScrollView(web::WebState* webState); 25 id<GREYMatcher> webViewScrollView(web::WebState* webState);
23 26
24 } // namespace web 27 } // namespace web
25 28
26 @interface GREYMatchers (WebViewAdditions) 29 @interface GREYMatchers (WebViewAdditions)
27 30
31 // Matcher for WKWebView which belogs to the given |webState|.
32 + (id<GREYMatcher>)matcherForWebViewInWebState:(web::WebState*)webState;
33
28 // Matcher for WKWebView containing |text|. 34 // Matcher for WKWebView containing |text|.
29 + (id<GREYMatcher>)matcherForWebViewContainingText:(const std::string&)text 35 + (id<GREYMatcher>)matcherForWebViewContainingText:(const std::string&)text
30 inWebState:(web::WebState*)webState; 36 inWebState:(web::WebState*)webState;
31 37
32 // Matcher for WKWebView containing an html element which matches |selector|. 38 // Matcher for WKWebView containing an html element which matches |selector|.
33 + (id<GREYMatcher>)matcherForWebWithCSSSelector:(const std::string&)selector 39 + (id<GREYMatcher>)matcherForWebWithCSSSelector:(const std::string&)selector
34 inWebState:(web::WebState*)webState; 40 inWebState:(web::WebState*)webState;
35 41
36 // Matcher for WKWebView's scroll view. 42 // Matcher for WKWebView's scroll view.
37 + (id<GREYMatcher>)matcherForWebViewScrollViewInWebState: 43 + (id<GREYMatcher>)matcherForWebViewScrollViewInWebState:
38 (web::WebState*)webState; 44 (web::WebState*)webState;
39 45
40 @end 46 @end
OLDNEW
« no previous file with comments | « ios/web/ios_web_shell_tests.gyp ('k') | 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