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

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

Issue 2008183004: Remove Earl Grey matcher APIs taking NSString. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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> 5 #import <string>
6 6
7 #import <EarlGrey/EarlGrey.h> 7 #import <EarlGrey/EarlGrey.h>
8 8
9 namespace web { 9 namespace web {
10 10
11 // TODO(crbug.com/614167): Remove this method when it is no longer used.
12 // Shorthand for GREYMatchers::matcherForWebViewContainingText.
13 id<GREYMatcher> webViewContainingText(NSString* text);
14
15 // TODO(crbug.com/614167): Remove this method when it is no longer used.
16 // Shorthand for GREYMatchers::matcherForAddressFieldEqualToText.
17 id<GREYMatcher> addressFieldText(NSString* text);
18
19 // Shorthand for GREYMatchers::matcherForWebViewContainingText. 11 // Shorthand for GREYMatchers::matcherForWebViewContainingText.
20 id<GREYMatcher> webViewContainingText(const std::string& text); 12 id<GREYMatcher> webViewContainingText(const std::string& text);
21 13
22 // Shorthand for GREYMatchers::matcherForAddressFieldEqualToText. 14 // Shorthand for GREYMatchers::matcherForAddressFieldEqualToText.
23 id<GREYMatcher> addressFieldText(const std::string& text); 15 id<GREYMatcher> addressFieldText(const std::string& text);
24 16
25 // Shorthand for GREYMatchers::matcherForBackButton. 17 // Shorthand for GREYMatchers::matcherForBackButton.
26 id<GREYMatcher> backButton(); 18 id<GREYMatcher> backButton();
27 19
28 // Shorthand for GREYMatchers::matcherForForwardButton. 20 // Shorthand for GREYMatchers::matcherForForwardButton.
(...skipping 15 matching lines...) Expand all
44 // Matcher for back button in web shell. 36 // Matcher for back button in web shell.
45 + (id<GREYMatcher>)matcherForWebShellBackButton; 37 + (id<GREYMatcher>)matcherForWebShellBackButton;
46 38
47 // Matcher for forward button in web shell. 39 // Matcher for forward button in web shell.
48 + (id<GREYMatcher>)matcherForWebShellForwardButton; 40 + (id<GREYMatcher>)matcherForWebShellForwardButton;
49 41
50 // Matcher for address field in web shell. 42 // Matcher for address field in web shell.
51 + (id<GREYMatcher>)matcherForWebShellAddressField; 43 + (id<GREYMatcher>)matcherForWebShellAddressField;
52 44
53 @end 45 @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