Index: ios/chrome/test/app/navigation_test_util.h |
diff --git a/ios/chrome/test/app/navigation_test_util.h b/ios/chrome/test/app/navigation_test_util.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..18c183e86315192671d17ba11eb48261579c4c14 |
--- /dev/null |
+++ b/ios/chrome/test/app/navigation_test_util.h |
@@ -0,0 +1,21 @@ |
+// 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. |
+ |
+#ifndef IOS_CHROME_TEST_APP_NAVIGATION_TEST_UTIL_H_ |
+#define IOS_CHROME_TEST_APP_NAVIGATION_TEST_UTIL_H_ |
+ |
+#include "url/gurl.h" |
+ |
+namespace chrome_test_util { |
+ |
+// Loads |url| in the current WebState with transition of type |
+// ui::PAGE_TRANSITION_TYPED. |
+void LoadUrl(const GURL& url); |
+ |
+// Returns true if the current page in the current WebState is loading. |
+bool IsLoading(); |
+ |
+} // namespace chrome_test_util |
+ |
+#endif // IOS_CHROME_TEST_APP_NAVIGATION_TEST_UTIL_H_ |