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

Side by Side Diff: ios/testing/earl_grey/matchers.h

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 unified diff | Download patch
« no previous file with comments | « ios/chrome/test/earl_grey/smoke_egtest.mm ('k') | ios/testing/earl_grey/matchers.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_TESTING_EARL_GREY_MATCHERS_H_ 5 #ifndef IOS_TESTING_EARL_GREY_MATCHERS_H_
6 #define IOS_TESTING_EARL_GREY_MATCHERS_H_ 6 #define IOS_TESTING_EARL_GREY_MATCHERS_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 9
10 #import <EarlGrey/EarlGrey.h> 10 #import <EarlGrey/EarlGrey.h>
11 11
12 namespace testing { 12 namespace testing {
13 13
14 // Matcher for context menu item whose text is exactly |text|. 14 // Matcher for context menu item whose text is exactly |text|.
15 id<GREYMatcher> contextMenuItemWithText(NSString* text); 15 id<GREYMatcher> ContextMenuItemWithText(NSString* text);
16 16
17 // Matcher for a UI element to tap to dismiss the the context menu, where 17 // Matcher for a UI element to tap to dismiss the the context menu, where
18 // |cancel_text| is the localized text used for the action sheet cancel control. 18 // |cancel_text| is the localized text used for the action sheet cancel control.
19 // On phones, where the context menu is an action sheet, this will be a matcher 19 // On phones, where the context menu is an action sheet, this will be a matcher
20 // for the menu item with |cancel_text| as its label. 20 // for the menu item with |cancel_text| as its label.
21 // On tablets, where the context menu is a popover, this will be a matcher for 21 // On tablets, where the context menu is a popover, this will be a matcher for
22 // some element outside of the popover. 22 // some element outside of the popover.
23 id<GREYMatcher> elementToDismissContextMenu(NSString* cancel_text); 23 id<GREYMatcher> ElementToDismissContextMenu(NSString* cancel_text);
24 24
25 } // namespace testing 25 } // namespace testing
26 26
27 #endif // IOS_TESTING_EARL_GREY_MATCHERS_H_ 27 #endif // IOS_TESTING_EARL_GREY_MATCHERS_H_
OLDNEW
« no previous file with comments | « ios/chrome/test/earl_grey/smoke_egtest.mm ('k') | ios/testing/earl_grey/matchers.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698