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> | |
| 6 | |
| 5 #import <EarlGrey/EarlGrey.h> | 7 #import <EarlGrey/EarlGrey.h> |
| 6 | 8 |
| 7 namespace web { | 9 namespace web { |
| 8 | 10 |
| 11 // TODO(crbug.com/614167): Remove this method when it is no longer used. | |
| 9 // Shorthand for GREYMatchers::matcherForWebViewContainingText. | 12 // Shorthand for GREYMatchers::matcherForWebViewContainingText. |
| 10 id<GREYMatcher> webViewContainingText(NSString* text); | 13 id<GREYMatcher> webViewContainingText(NSString* text); |
| 11 | 14 |
| 15 // TODO(crbug.com/614167): Remove this method when it is no longer used. | |
| 12 // Shorthand for GREYMatchers::matcherForAddressFieldEqualToText. | 16 // Shorthand for GREYMatchers::matcherForAddressFieldEqualToText. |
| 13 id<GREYMatcher> addressFieldText(NSString* text); | 17 id<GREYMatcher> addressFieldText(NSString* text); |
| 14 | 18 |
| 19 // Shorthand for GREYMatchers::matcherForWebViewContainingText. | |
| 20 id<GREYMatcher> webViewContainingText(const std::string& text); | |
| 21 | |
| 22 // Shorthand for GREYMatchers::matcherForAddressFieldEqualToText. | |
| 23 id<GREYMatcher> addressFieldText(const std::string& text); | |
| 24 | |
| 15 // Shorthand for GREYMatchers::matcherForBackButton. | 25 // Shorthand for GREYMatchers::matcherForBackButton. |
| 16 id<GREYMatcher> backButton(); | 26 id<GREYMatcher> backButton(); |
| 17 | 27 |
| 18 // Shorthand for GREYMatchers::matcherForForwardButton. | 28 // Shorthand for GREYMatchers::matcherForForwardButton. |
| 19 id<GREYMatcher> forwardButton(); | 29 id<GREYMatcher> forwardButton(); |
| 20 | 30 |
| 21 // Shorthand for GREYMatchers::matcherForAddressField. | 31 // Shorthand for GREYMatchers::matcherForAddressField. |
| 22 id<GREYMatcher> addressField(); | 32 id<GREYMatcher> addressField(); |
| 23 | 33 |
| 24 } // namespace web | 34 } // namespace web |
| 25 | 35 |
| 26 @interface GREYMatchers (WebShellAdditions) | 36 @interface GREYMatchers (WebShellAdditions) |
| 27 | 37 |
| 28 // Matcher for WKWebView containing |text|. | 38 // Matcher for WKWebView containing |text|. |
| 29 + (id<GREYMatcher>)matcherForWebViewContainingText:(NSString*)text; | 39 + (id<GREYMatcher>)matcherForWebViewContainingText:(std::string)text; |
|
Eugene But (OOO till 7-30)
2016/05/24 01:20:31
const std::string&
baxley
2016/05/24 13:12:00
Done.
| |
| 30 | 40 |
| 31 // Matcher for web shell address field text property equal to |text|. | 41 // Matcher for web shell address field text property equal to |text|. |
| 32 + (id<GREYMatcher>)matcherForAddressFieldEqualToText:(NSString*)text; | 42 + (id<GREYMatcher>)matcherForAddressFieldEqualToText:(std::string)text; |
|
Eugene But (OOO till 7-30)
2016/05/24 01:20:31
const std::string&
baxley
2016/05/24 13:12:00
Done.
| |
| 33 | 43 |
| 34 // Matcher for back button in web shell. | 44 // Matcher for back button in web shell. |
| 35 + (id<GREYMatcher>)matcherForWebShellBackButton; | 45 + (id<GREYMatcher>)matcherForWebShellBackButton; |
| 36 | 46 |
| 37 // Matcher for forward button in web shell. | 47 // Matcher for forward button in web shell. |
| 38 + (id<GREYMatcher>)matcherForWebShellForwardButton; | 48 + (id<GREYMatcher>)matcherForWebShellForwardButton; |
| 39 | 49 |
| 40 // Matcher for address field in web shell. | 50 // Matcher for address field in web shell. |
| 41 + (id<GREYMatcher>)matcherForWebShellAddressField; | 51 + (id<GREYMatcher>)matcherForWebShellAddressField; |
| 42 | 52 |
| 43 @end | 53 @end |
| OLD | NEW |