Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(384)

Unified Diff: ios/web/shell/test/earl_grey/shell_earl_grey.h

Issue 2340533004: [ios] Implemented -[ShellEarlGrey loadURL:]. (Closed)
Patch Set: Do not wait for Window ID injection if content is not HTML. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ios/web/shell/test/earl_grey/shell_earl_grey.h
diff --git a/ios/web/shell/test/earl_grey/shell_earl_grey.h b/ios/web/shell/test/earl_grey/shell_earl_grey.h
new file mode 100644
index 0000000000000000000000000000000000000000..cc88f85ab5c18a6224f9ce487405160689cdf3c0
--- /dev/null
+++ b/ios/web/shell/test/earl_grey/shell_earl_grey.h
@@ -0,0 +1,24 @@
+// 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_WEB_SHELL_TEST_EARL_GREY_SHELL_EARL_GREY_H_
+#define IOS_WEB_SHELL_TEST_EARL_GREY_SHELL_EARL_GREY_H_
+
+#import <Foundation/Foundation.h>
+
+#include "url/gurl.h"
+
+// Test methods that perform actions on Web Shell. These methods may read or
+// alter Web Shell's internal state programmatically or via the UI, but in both
+// cases will properly synchronize the UI for Earl Grey tests.
+@interface ShellEarlGrey : NSObject
+
+// Loads |URL| in the current WebState with transition of type
+// ui::PAGE_TRANSITION_TYPED, and waits for the page to complete loading, or
+// a timeout.
++ (void)loadURL:(const GURL&)URL;
+
+@end
+
+#endif // IOS_WEB_SHELL_TEST_EARL_GREY_SHELL_EARL_GREY_H_

Powered by Google App Engine
This is Rietveld 408576698