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

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

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_test_util.h ('k') | no next file » | 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.mm
diff --git a/ios/web_view/test/web_view_interaction_test_util.mm b/ios/web_view/test/web_view_test_util.mm
similarity index 90%
rename from ios/web_view/test/web_view_interaction_test_util.mm
rename to ios/web_view/test/web_view_test_util.mm
index 56572335aa2f21af665165a5519fb1481ef99774..8ed4bc6a71e5ff04e19ac5d4399d17c5367f6869 100644
--- a/ios/web_view/test/web_view_interaction_test_util.mm
+++ b/ios/web_view/test/web_view_test_util.mm
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#import "ios/web_view/test/web_view_interaction_test_util.h"
+#import "ios/web_view/test/web_view_test_util.h"
#import <ChromeWebView/ChromeWebView.h>
@@ -17,6 +17,12 @@ using testing::WaitUntilConditionOrTimeout;
namespace ios_web_view {
namespace test {
+CWVWebView* CreateWebView() {
+ return [[CWVWebView alloc]
+ initWithFrame:UIScreen.mainScreen.bounds
+ configuration:[CWVWebViewConfiguration defaultConfiguration]];
+}
+
bool TapChromeWebViewElementWithId(CWVWebView* web_view, NSString* element_id) {
// TODO(crbug.com/725524): Share this script with Chrome.
NSString* script = [NSString
« no previous file with comments | « ios/web_view/test/web_view_test_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698