| 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 <EarlGrey/EarlGrey.h> | 5 #import <EarlGrey/EarlGrey.h> |
| 6 | 6 |
| 7 #include "ios/web/public/web_state/web_state.h" |
| 8 |
| 7 namespace web { | 9 namespace web { |
| 8 | 10 |
| 9 // Shorthand for GREYMatchers::matcherForWebViewContainingText. | 11 // Shorthand for GREYMatchers::matcherForWebViewContainingText:inWebState. |
| 10 id<GREYMatcher> webViewContainingText(NSString* text); | 12 id<GREYMatcher> webViewContainingText(NSString* text, web::WebState* webState); |
| 11 | 13 |
| 12 } // namespace web | 14 } // namespace web |
| 13 | 15 |
| 14 @interface GREYMatchers (WebViewAdditions) | 16 @interface GREYMatchers (WebViewAdditions) |
| 15 | 17 |
| 16 // Matcher for WKWebView containing |text|. | 18 // Matcher for WKWebView containing |text|. |
| 17 + (id<GREYMatcher>)matcherForWebViewContainingText:(NSString*)text; | 19 + (id<GREYMatcher>)matcherForWebViewContainingText:(NSString*)text |
| 20 inWebState:(web::WebState*)webState; |
| 18 | 21 |
| 19 @end | 22 @end |
| OLD | NEW |