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

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

Issue 1950323002: Refactor web shell integration tests utilities. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add gn 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 <EarlGrey/EarlGrey.h> 5 #import <EarlGrey/EarlGrey.h>
6 6
7 namespace web { 7 namespace web {
8 8
9 // Shorthand for GREYMatchers::matcherForWebViewContainingText.
10 id<GREYMatcher> webViewContainingText(NSString* text);
11
9 // Shorthand for GREYMatchers::matcherForBackButton. 12 // Shorthand for GREYMatchers::matcherForBackButton.
10 id<GREYMatcher> backButton(); 13 id<GREYMatcher> backButton();
11 14
12 // Shorthand for GREYMatchers::matcherForForwardButton. 15 // Shorthand for GREYMatchers::matcherForForwardButton.
13 id<GREYMatcher> forwardButton(); 16 id<GREYMatcher> forwardButton();
14 17
15 // Shorthand for GREYMatchers::matcherForAddressField. 18 // Shorthand for GREYMatchers::matcherForAddressField.
16 id<GREYMatcher> addressField(); 19 id<GREYMatcher> addressField();
17 20
18 } // namespace web 21 } // namespace web
19 22
20 @interface GREYMatchers (WebShellAdditions) 23 @interface GREYMatchers (WebShellAdditions)
21 24
25 // Matcher for WKWebView containing |text|.
26 + (id<GREYMatcher>)matcherForWebViewContainingText:(NSString*)text;
27
22 // Matcher for back button in web shell. 28 // Matcher for back button in web shell.
23 + (id<GREYMatcher>)matcherForWebShellBackButton; 29 + (id<GREYMatcher>)matcherForWebShellBackButton;
24 30
25 // Matcher for forward button in web shell. 31 // Matcher for forward button in web shell.
26 + (id<GREYMatcher>)matcherForWebShellForwardButton; 32 + (id<GREYMatcher>)matcherForWebShellForwardButton;
27 33
28 // Matcher for address field in web shell. 34 // Matcher for address field in web shell.
29 + (id<GREYMatcher>)matcherForWebShellAddressField; 35 + (id<GREYMatcher>)matcherForWebShellAddressField;
30 36
31 @end 37 @end
OLDNEW
« no previous file with comments | « ios/web/shell/test/app/web_shell_test_util.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