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_WEB_SHELL_TEST_APP_NAVIGATION_TEST_UTIL_H_ | 5 #ifndef IOS_WEB_SHELL_TEST_APP_NAVIGATION_TEST_UTIL_H_ |
6 #define IOS_WEB_SHELL_TEST_APP_NAVIGATION_TEST_UTIL_H_ | 6 #define IOS_WEB_SHELL_TEST_APP_NAVIGATION_TEST_UTIL_H_ |
7 | 7 |
8 #include "url/gurl.h" | 8 #include "url/gurl.h" |
9 | 9 |
10 namespace web { | 10 namespace web { |
11 namespace shell_test_util { | 11 namespace shell_test_util { |
12 | 12 |
13 // Loads |url| in the current WebState with transition of type | 13 // Loads |url| in the current WebState with transition of type |
14 // ui::PAGE_TRANSITION_TYPED. | 14 // ui::PAGE_TRANSITION_TYPED. |
15 void LoadUrl(const GURL& url); | 15 void LoadUrl(const GURL& url); |
16 | 16 |
| 17 // Returns true if the current page in the current WebState is loading. |
| 18 bool IsLoading(); |
| 19 |
17 } // namespace shell_test_util | 20 } // namespace shell_test_util |
18 } // namespace web | 21 } // namespace web |
19 | 22 |
20 #endif // IOS_WEB_SHELL_TEST_APP_NAVIGATION_TEST_UTIL_H_ | 23 #endif // IOS_WEB_SHELL_TEST_APP_NAVIGATION_TEST_UTIL_H_ |
OLD | NEW |