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

Unified Diff: ios/chrome/test/earl_grey/chrome_earl_grey_ui.h

Issue 2867553002: Make settings_egtest.mm work in landscape on small phones. (Closed)
Patch Set: comment cleanup Created 3 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/test/earl_grey/chrome_earl_grey_ui.h
diff --git a/ios/chrome/test/earl_grey/chrome_earl_grey_ui.h b/ios/chrome/test/earl_grey/chrome_earl_grey_ui.h
index ea7dd86a46c3ba03897d187ac3537215f3c5f347..986983f0187515d6f206087b360b215dabb78218 100644
--- a/ios/chrome/test/earl_grey/chrome_earl_grey_ui.h
+++ b/ios/chrome/test/earl_grey/chrome_earl_grey_ui.h
@@ -5,6 +5,7 @@
#ifndef IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_UI_H_
#define IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_UI_H_
+#import <EarlGrey/EarlGrey.h>
#import <Foundation/Foundation.h>
// Test methods that perform actions on Chrome. These methods only affect Chrome
@@ -21,6 +22,22 @@
// calling this method.
+ (void)openSettingsMenu;
+// Scrolls to find the button in the Settings menu with the corresponding
Eugene But (OOO till 7-30) 2017/05/09 00:15:03 Is this API used anywhere except settings tests? I
baxley 2017/05/09 18:39:19 Yes, it is used in some other tests. However, the
baxley 2017/05/09 20:16:39 After offline discussion with eugenebut@ it was de
+// |buttonMatcher|, and then taps it. If |buttonMatcher| is not found, or
+// the Settings menu is not open when this is called there will be a GREYAssert.
++ (void)tapButtonInSettingsMenu:(id<GREYMatcher>)buttonMatcher;
Eugene But (OOO till 7-30) 2017/05/09 00:15:03 Per Cocoa Guidelines for Coding, make world(s) bef
baxley 2017/05/09 18:39:19 Done.
+
+// Scrolls to find the button in the Privacy menu with the corresponding
+// |buttonMatcher|, and then taps it. If |buttonMatcher| is not found, or
+// the Privacy menu is not open when this is called there will be a GREYAssert.
++ (void)tapButtonInPrivacyMenu:(id<GREYMatcher>)buttonMatcher;
+
+// Scrolls to find the button in the Clear Browsing Data menu with the
+// corresponding |buttonMatcher|, and then taps it. If |buttonMatcher| is
+// not found, or the Clear Browsing Data menu is not open when this is called
+// there will be a GREYAssert.
++ (void)tapButtonInClearBrowsingDataMenu:(id<GREYMatcher>)buttonMatcher;
+
// Open a new tab via the tools menu.
+ (void)openNewTab;

Powered by Google App Engine
This is Rietveld 408576698