| Index: ios/web/web_state/web_view_internal_creation_util_unittest.mm
|
| diff --git a/ios/web/web_state/web_view_internal_creation_util_unittest.mm b/ios/web/web_state/web_view_internal_creation_util_unittest.mm
|
| index 6696286124d2d31b743636617c90ba124b0ba7eb..fb94c98de387845e21b3802b41f771e6e7d4ba4c 100644
|
| --- a/ios/web/web_state/web_view_internal_creation_util_unittest.mm
|
| +++ b/ios/web/web_state/web_view_internal_creation_util_unittest.mm
|
| @@ -182,29 +182,12 @@ TEST_F(WebViewCreationUtilsTest, GetActiveWKWebViewsCount) {
|
|
|
| #endif // defined(NDEBUG)
|
|
|
| -// Tests web::CreateStaticFileWebView that it correctly returns a
|
| -// CRWStaticFileWebView with the correct frame, user agent, and calls
|
| -// WebClient::PreWebViewCreation/WebClient::PostWebViewCreation methods.
|
| -TEST_F(WebViewCreationUtilsTest, TestNewStaticFileWebViewTrue) {
|
| - UIWebView* captured_web_view = nil;
|
| - ExpectWebClientCalls(&captured_web_view);
|
| -
|
| - base::scoped_nsobject<UIWebView> web_view(
|
| - CreateStaticFileWebView(kTestFrame, GetBrowserState()));
|
| - ASSERT_TRUE([web_view isMemberOfClass:[CRWStaticFileWebView class]]);
|
| - EXPECT_TRUE(CGRectEqualToRect(kTestFrame, [web_view frame]));
|
| - EXPECT_NSEQ(web_view, captured_web_view);
|
| -
|
| - NSString* user_agent = GetWebViewUserAgent(web_view);
|
| - EXPECT_TRUE([CRWStaticFileWebView isStaticFileUserAgent:user_agent]);
|
| -}
|
| -
|
| // Tests web::CreateSimpleWebViewController returns a CRWSimpleWebViewController
|
| // instance with a web view.
|
| TEST_F(WebViewCreationUtilsTest, CreateSimpleWebViewController) {
|
| base::scoped_nsprotocol<id<CRWSimpleWebViewController>>
|
| simpleWebViewController(
|
| - CreateSimpleWebViewController(CGRectZero, nullptr, UI_WEB_VIEW_TYPE));
|
| + CreateSimpleWebViewController(CGRectZero, nullptr));
|
| EXPECT_TRUE([simpleWebViewController view]);
|
| }
|
|
|
|
|