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

Unified Diff: ios/web_view/test/web_view_test_util.h

Issue 2941763003: Cleanup ios_web_view integration tests. (Closed)
Patch Set: Addressed review comments Created 3 years, 6 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
« no previous file with comments | « ios/web_view/test/web_view_interaction_test_util.mm ('k') | ios/web_view/test/web_view_test_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web_view/test/web_view_test_util.h
diff --git a/ios/web_view/test/web_view_interaction_test_util.h b/ios/web_view/test/web_view_test_util.h
similarity index 78%
rename from ios/web_view/test/web_view_interaction_test_util.h
rename to ios/web_view/test/web_view_test_util.h
index eba3c51b800de4b617a4467327edfb493265797b..79a36708fac86accd582e64f9862766a09364242 100644
--- a/ios/web_view/test/web_view_interaction_test_util.h
+++ b/ios/web_view/test/web_view_test_util.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef IOS_WEB_VIEW_TEST_WEB_VIEW_INTERACTION_TEST_UTIL_H_
-#define IOS_WEB_VIEW_TEST_WEB_VIEW_INTERACTION_TEST_UTIL_H_
+#ifndef IOS_WEB_VIEW_TEST_WEB_VIEW_TEST_UTIL_H_
+#define IOS_WEB_VIEW_TEST_WEB_VIEW_TEST_UTIL_H_
#import <Foundation/Foundation.h>
@@ -12,6 +12,9 @@
namespace ios_web_view {
namespace test {
+// Creates web view with default configuration and frame equal to screen bounds.
+CWVWebView* CreateWebView();
+
// Returns whether the element with |element_id| in the passed |web_view| has
// been tapped using a JavaScript click() event.
bool TapChromeWebViewElementWithId(CWVWebView* web_view, NSString* element_id);
@@ -28,4 +31,4 @@ bool WaitForWebViewContainingTextOrTimeout(CWVWebView* web_view,
} // namespace test
} // namespace ios_web_view
-#endif // IOS_WEB_VIEW_TEST_WEB_VIEW_INTERACTION_TEST_UTIL_H_
+#endif // IOS_WEB_VIEW_TEST_WEB_VIEW_TEST_UTIL_H_
« no previous file with comments | « ios/web_view/test/web_view_interaction_test_util.mm ('k') | ios/web_view/test/web_view_test_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698