OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_WEB_SHELL_TEST_EARL_GREY_SHELL_EARL_GREY_H_ |
| 6 #define IOS_WEB_SHELL_TEST_EARL_GREY_SHELL_EARL_GREY_H_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 #include "url/gurl.h" |
| 11 |
| 12 // Test methods that perform actions on Web Shell. These methods may read or |
| 13 // alter Web Shell's internal state programmatically or via the UI, but in both |
| 14 // cases will properly synchronize the UI for Earl Grey tests. |
| 15 @interface ShellEarlGrey : NSObject |
| 16 |
| 17 // Loads |URL| in the current WebState with transition of type |
| 18 // ui::PAGE_TRANSITION_TYPED, and waits for the page to complete loading, or |
| 19 // a timeout. |
| 20 + (void)loadURL:(const GURL&)URL; |
| 21 |
| 22 @end |
| 23 |
| 24 #endif // IOS_WEB_SHELL_TEST_EARL_GREY_SHELL_EARL_GREY_H_ |
OLD | NEW |