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

Unified Diff: ios/testing/earl_grey/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/testing/earl_grey/matchers.h ('k') | ios/web/public/test/earl_grey/web_view_actions.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/testing/earl_grey/matchers.mm
diff --git a/ios/testing/earl_grey/matchers.mm b/ios/testing/earl_grey/matchers.mm
index f4fde5b0c5490b8b35c31387bb33a577772a7361..8768076e0211b0791dd42121e2ba0b7f3f161cc2 100644
--- a/ios/testing/earl_grey/matchers.mm
+++ b/ios/testing/earl_grey/matchers.mm
@@ -10,7 +10,7 @@
namespace testing {
-id<GREYMatcher> contextMenuItemWithText(NSString* text) {
+id<GREYMatcher> ContextMenuItemWithText(NSString* text) {
// Both tablet and phone house context menu views inside an alert controller
// view (on tablet that view is itself inside a popover view).
id<GREYMatcher> context_menu_container =
@@ -20,7 +20,7 @@ id<GREYMatcher> contextMenuItemWithText(NSString* text) {
grey_text(text), nil);
}
-id<GREYMatcher> elementToDismissContextMenu(NSString* cancel_text) {
+id<GREYMatcher> ElementToDismissContextMenu(NSString* cancel_text) {
UIUserInterfaceIdiom idiom = [[UIDevice currentDevice] userInterfaceIdiom];
if (idiom == UIUserInterfaceIdiomPad) {
// On iPad the context menu is dismissed by tapping on something
@@ -28,7 +28,7 @@ id<GREYMatcher> elementToDismissContextMenu(NSString* cancel_text) {
return grey_accessibilityID(@"PopoverDismissRegion");
} else {
// On iPhone the context menu is dismissed by tapping on the "Cancel" item.
- return contextMenuItemWithText(cancel_text);
+ return ContextMenuItemWithText(cancel_text);
}
}
« no previous file with comments | « ios/testing/earl_grey/matchers.h ('k') | ios/web/public/test/earl_grey/web_view_actions.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698