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) { |