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 #include "ios/web/shell/test/app/navigation_test_util.h" | 5 #include "ios/web/shell/test/app/navigation_test_util.h" |
6 | 6 |
7 #import "ios/web/public/test/navigation_test_util.h" | 7 #import "ios/web/public/test/navigation_test_util.h" |
8 #import "ios/web/shell/test/app/web_shell_test_util.h" | 8 #import "ios/web/shell/test/app/web_shell_test_util.h" |
9 | 9 |
10 namespace web { | 10 namespace web { |
11 namespace shell_test_util { | 11 namespace shell_test_util { |
12 | 12 |
13 void LoadUrl(const GURL& url) { | 13 void LoadUrl(const GURL& url) { |
14 web::test::LoadUrl(GetCurrentWebState(), url); | 14 web::test::LoadUrl(GetCurrentWebState(), url); |
15 } | 15 } |
16 | 16 |
| 17 bool IsLoading() { |
| 18 return GetCurrentWebState()->IsLoading(); |
| 19 } |
| 20 |
17 } // namespace shell_test_util | 21 } // namespace shell_test_util |
18 } // namespace web | 22 } // namespace web |
OLD | NEW |