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

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

Issue 2945563002: ChromeWebView integration test for Incognito. (Closed)
Patch Set: Self review 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_test_util.mm b/ios/web_view/test/web_view_test_util.mm
index f2538708a581a572e074e5983d96fbf18e70d594..79cf7be898db17bd24c5ff87ed2680bc0d94d39e 100644
--- a/ios/web_view/test/web_view_test_util.mm
+++ b/ios/web_view/test/web_view_test_util.mm
@@ -17,10 +17,13 @@ using testing::WaitUntilConditionOrTimeout;
namespace ios_web_view {
namespace test {
+CWVWebView* CreateWebView(CWVWebViewConfiguration* configuration) {
+ return [[CWVWebView alloc] initWithFrame:UIScreen.mainScreen.bounds
+ configuration:configuration];
+}
+
CWVWebView* CreateWebView() {
- return [[CWVWebView alloc]
- initWithFrame:UIScreen.mainScreen.bounds
- configuration:[CWVWebViewConfiguration defaultConfiguration]];
+ return CreateWebView([CWVWebViewConfiguration defaultConfiguration]);
}
bool LoadUrl(CWVWebView* web_view, NSURL* url) {
« 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