Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 matcherForWebViewScrollViewInWebState:. | |
|
baxley
2016/07/20 15:27:25
nit: no ':' (comments in the other matchers file d
baxley
2016/07/20 15:27:25
nit: could you add GREYMatchers::, or remove it fr
Eugene But (OOO till 7-30)
2016/07/20 16:09:39
Done.
Eugene But (OOO till 7-30)
2016/07/20 16:09:40
Done.
| |
| 18 id<GREYMatcher> webViewScrollView(web::WebState* webState); | |
| 19 | |
| 17 } // namespace web | 20 } // namespace web |
| 18 | 21 |
| 19 @interface GREYMatchers (WebViewAdditions) | 22 @interface GREYMatchers (WebViewAdditions) |
| 20 | 23 |
| 21 // Matcher for WKWebView containing |text|. | 24 // Matcher for WKWebView containing |text|. |
| 22 + (id<GREYMatcher>)matcherForWebViewContainingText:(const std::string&)text | 25 + (id<GREYMatcher>)matcherForWebViewContainingText:(const std::string&)text |
| 23 inWebState:(web::WebState*)webState; | 26 inWebState:(web::WebState*)webState; |
| 24 | 27 |
| 28 // Matcher for WKWebView's scroll view. | |
| 29 + (id<GREYMatcher>)matcherForWebViewScrollViewInWebState: | |
| 30 (web::WebState*)webState; | |
| 31 | |
| 25 @end | 32 @end |
| OLD | NEW |