| 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 // TODO(crbug.com/614167): Remove this method when it is no longer used. | |
| 14 // Shorthand for GREYMatchers::matcherForWebViewContainingText:inWebState. | |
| 15 id<GREYMatcher> webViewContainingText(NSString* text, web::WebState* webState); | |
| 16 | |
| 17 // Shorthand for GREYMatchers::matcherForWebViewContainingText:inWebState. | 13 // Shorthand for GREYMatchers::matcherForWebViewContainingText:inWebState. |
| 18 id<GREYMatcher> webViewContainingText(const std::string& text, | 14 id<GREYMatcher> webViewContainingText(const std::string& text, |
| 19 web::WebState* webState); | 15 web::WebState* webState); |
| 20 | 16 |
| 21 } // namespace web | 17 } // namespace web |
| 22 | 18 |
| 23 @interface GREYMatchers (WebViewAdditions) | 19 @interface GREYMatchers (WebViewAdditions) |
| 24 | 20 |
| 25 // Matcher for WKWebView containing |text|. | 21 // Matcher for WKWebView containing |text|. |
| 26 + (id<GREYMatcher>)matcherForWebViewContainingText:(const std::string&)text | 22 + (id<GREYMatcher>)matcherForWebViewContainingText:(const std::string&)text |
| 27 inWebState:(web::WebState*)webState; | 23 inWebState:(web::WebState*)webState; |
| 28 | 24 |
| 29 @end | 25 @end |
| OLD | NEW |