Index: ios/chrome/test/app/navigation_test_util.mm |
diff --git a/ios/chrome/test/app/navigation_test_util.mm b/ios/chrome/test/app/navigation_test_util.mm |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0ebbe9179756c8a018939ce63877ba4c577888b0 |
--- /dev/null |
+++ b/ios/chrome/test/app/navigation_test_util.mm |
@@ -0,0 +1,20 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "ios/chrome/test/app/navigation_test_util.h" |
+ |
+#import "ios/chrome/test/app/chrome_test_util.h" |
+#import "ios/web/public/test/navigation_test_util.h" |
+ |
+namespace chrome_test_util { |
+ |
+void LoadUrl(const GURL& url) { |
+ web::test::LoadUrl(GetCurrentWebState(), url); |
+} |
+ |
+bool IsLoading() { |
+ return GetCurrentWebState()->IsLoading(); |
+} |
+ |
+} // namespace chrome_test_util |