| OLD | NEW |
| 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_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_UI_H_ | 5 #ifndef IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_UI_H_ |
| 6 #define IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_UI_H_ | 6 #define IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_UI_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 // Test methods that perform actions on Chrome. These methods only affect Chrome | 10 // Test methods that perform actions on Chrome. These methods only affect Chrome |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 // Open a new incognito tab via the tools menu. | 22 // Open a new incognito tab via the tools menu. |
| 23 + (void)openNewIncognitoTab; | 23 + (void)openNewIncognitoTab; |
| 24 | 24 |
| 25 // Reloads the page. Does not wait until reload finishes. | 25 // Reloads the page. Does not wait until reload finishes. |
| 26 + (void)reload; | 26 + (void)reload; |
| 27 | 27 |
| 28 // Opens the share menu by tapping on the share button. | 28 // Opens the share menu by tapping on the share button. |
| 29 // Requires having a tab opened. | 29 // Requires having a tab opened. |
| 30 + (void)openShareMenu; | 30 + (void)openShareMenu; |
| 31 | 31 |
| 32 // Waits for toolbar to become visible if |isVisible| is YES, or waits for it |
| 33 // to disappear if |isVisible| is NO. Induces a GREYAssert if the condition is |
| 34 // not met after a timeout. |
| 35 + (void)waitForToolbarVisible:(BOOL)isVisible; |
| 36 |
| 32 @end | 37 @end |
| 33 | 38 |
| 34 #endif // IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_UI_H_ | 39 #endif // IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_UI_H_ |
| OLD | NEW |