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

Side by Side Diff: ios/web/shell/test/earl_grey/shell_matchers.h

Issue 2005023003: Change iOS web matcher argument types to std::string. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: const & Created 4 years, 7 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
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>
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:(const std::string&)text;
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:(const std::string&)text;
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
OLDNEW
« no previous file with comments | « ios/web/public/test/earl_grey/web_view_matchers.mm ('k') | ios/web/shell/test/earl_grey/shell_matchers.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698