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

Unified Diff: ios/web/shell/test/earl_grey/shell_matchers.mm

Issue 2642193012: Make EarlGrey matchers compliant with Chromium style. (Closed)
Patch Set: build.gn and rebase Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web/shell/test/earl_grey/shell_matchers.h ('k') | ios/web/shell/test/meta_tags_egtest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/shell/test/earl_grey/shell_matchers.mm
diff --git a/ios/web/shell/test/earl_grey/shell_matchers.mm b/ios/web/shell/test/earl_grey/shell_matchers.mm
index b22b75fa619ecd9400c1889ea70045d8f7b0ba66..8013c4aab4c0b26f384a9186e855094d9dbeb976 100644
--- a/ios/web/shell/test/earl_grey/shell_matchers.mm
+++ b/ios/web/shell/test/earl_grey/shell_matchers.mm
@@ -19,25 +19,25 @@
namespace web {
-id<GREYMatcher> webViewContainingText(const std::string& text) {
+id<GREYMatcher> WebViewContainingText(const std::string& text) {
WebState* web_state = shell_test_util::GetCurrentWebState();
- return webViewContainingText(std::move(text), web_state);
+ return WebViewContainingText(std::move(text), web_state);
}
-id<GREYMatcher> webViewCssSelector(const std::string& selector) {
+id<GREYMatcher> WebViewCssSelector(const std::string& selector) {
WebState* web_state = shell_test_util::GetCurrentWebState();
- return webViewCssSelector(std::move(selector), web_state);
+ return WebViewCssSelector(std::move(selector), web_state);
}
-id<GREYMatcher> webView() {
- return webViewInWebState(shell_test_util::GetCurrentWebState());
+id<GREYMatcher> WebView() {
+ return WebViewInWebState(shell_test_util::GetCurrentWebState());
}
-id<GREYMatcher> webViewScrollView() {
- return webViewScrollView(shell_test_util::GetCurrentWebState());
+id<GREYMatcher> WebViewScrollView() {
+ return WebViewScrollView(shell_test_util::GetCurrentWebState());
}
-id<GREYMatcher> addressFieldText(std::string text) {
+id<GREYMatcher> AddressFieldText(std::string text) {
MatchesBlock matches = ^BOOL(UIView* view) {
if (![view isKindOfClass:[UITextField class]]) {
return NO;
@@ -69,15 +69,15 @@ id<GREYMatcher> addressFieldText(std::string text) {
descriptionBlock:describe];
}
-id<GREYMatcher> backButton() {
+id<GREYMatcher> BackButton() {
return grey_accessibilityLabel(kWebShellBackButtonAccessibilityLabel);
}
-id<GREYMatcher> forwardButton() {
+id<GREYMatcher> ForwardButton() {
return grey_accessibilityLabel(kWebShellForwardButtonAccessibilityLabel);
}
-id<GREYMatcher> addressField() {
+id<GREYMatcher> AddressField() {
return grey_accessibilityLabel(kWebShellAddressFieldAccessibilityLabel);
}
« no previous file with comments | « ios/web/shell/test/earl_grey/shell_matchers.h ('k') | ios/web/shell/test/meta_tags_egtest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698