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

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

Issue 2642193012: Make EarlGrey matchers compliant with Chromium style. (Closed)
Patch Set: build.gn and rebase Created 3 years, 10 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 #ifndef IOS_WEB_SHELL_TEST_EARL_GREY_SHELL_MATCHERS_H_ 5 #ifndef IOS_WEB_SHELL_TEST_EARL_GREY_SHELL_MATCHERS_H_
6 #define IOS_WEB_SHELL_TEST_EARL_GREY_SHELL_MATCHERS_H_ 6 #define IOS_WEB_SHELL_TEST_EARL_GREY_SHELL_MATCHERS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #import <EarlGrey/EarlGrey.h> 10 #import <EarlGrey/EarlGrey.h>
11 11
12 namespace web { 12 namespace web {
13 13
14 // Matcher for WKWebView containing |text|. 14 // Matcher for WKWebView containing |text|.
15 id<GREYMatcher> webViewContainingText(const std::string& text); 15 id<GREYMatcher> WebViewContainingText(const std::string& text);
16 16
17 // Matcher for WKWebView containing an html element which matches |selector|. 17 // Matcher for WKWebView containing an html element which matches |selector|.
18 id<GREYMatcher> webViewCssSelector(const std::string& selector); 18 id<GREYMatcher> WebViewCssSelector(const std::string& selector);
19 19
20 // Matcher for the WKWebView. 20 // Matcher for the WKWebView.
21 id<GREYMatcher> webView(); 21 id<GREYMatcher> WebView();
22 22
23 // Matcher for WKWebView's scroll view. 23 // Matcher for WKWebView's scroll view.
24 id<GREYMatcher> webViewScrollView(); 24 id<GREYMatcher> WebViewScrollView();
25 25
26 // Matcher for web shell address field text property equal to |text|. 26 // Matcher for web shell address field text property equal to |text|.
27 id<GREYMatcher> addressFieldText(std::string text); 27 id<GREYMatcher> AddressFieldText(std::string text);
28 28
29 // Matcher for back button in web shell. 29 // Matcher for back button in web shell.
30 id<GREYMatcher> backButton(); 30 id<GREYMatcher> BackButton();
31 31
32 // Matcher for forward button in web shell. 32 // Matcher for forward button in web shell.
33 id<GREYMatcher> forwardButton(); 33 id<GREYMatcher> ForwardButton();
34 34
35 // Matcher for address field in web shell. 35 // Matcher for address field in web shell.
36 id<GREYMatcher> addressField(); 36 id<GREYMatcher> AddressField();
37 37
38 } // namespace web 38 } // namespace web
39 39
40 #endif // IOS_WEB_SHELL_TEST_EARL_GREY_SHELL_MATCHERS_H_ 40 #endif // IOS_WEB_SHELL_TEST_EARL_GREY_SHELL_MATCHERS_H_
OLDNEW
« no previous file with comments | « ios/web/shell/test/earl_grey/shell_base_test_case.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