Index: third_party/WebKit/Source/core/loader/MixedContentCheckerTest.cpp |
diff --git a/third_party/WebKit/Source/core/loader/MixedContentCheckerTest.cpp b/third_party/WebKit/Source/core/loader/MixedContentCheckerTest.cpp |
index 6e1ea8399e6143df76aacdc4b976db34b376d320..1dd05d64a588a5f3aa82b35d2cf3294f34ee37b8 100644 |
--- a/third_party/WebKit/Source/core/loader/MixedContentCheckerTest.cpp |
+++ b/third_party/WebKit/Source/core/loader/MixedContentCheckerTest.cpp |
@@ -84,8 +84,8 @@ namespace { |
: EmptyFrameLoaderClient() |
{ |
} |
- MOCK_METHOD2(didDisplayContentWithCertificateErrors, void(const KURL&, const CString&)); |
- MOCK_METHOD2(didRunContentWithCertificateErrors, void(const KURL&, const CString&)); |
+ MOCK_METHOD1(didDisplayContentWithCertificateErrors, void(const KURL&)); |
+ MOCK_METHOD1(didRunContentWithCertificateErrors, void(const KURL&)); |
}; |
} // namespace |
@@ -102,16 +102,14 @@ TEST(MixedContentCheckerTest, HandleCertificateError) |
dummyPageHolder->frame().document()->setURL(mainResourceUrl); |
ResourceResponse response1; |
response1.setURL(ranUrl); |
- response1.setSecurityInfo("security info1"); |
- EXPECT_CALL(*client, didRunContentWithCertificateErrors(ranUrl, response1.getSecurityInfo())); |
+ EXPECT_CALL(*client, didRunContentWithCertificateErrors(ranUrl)); |
MixedContentChecker::handleCertificateError(&dummyPageHolder->frame(), response1, WebURLRequest::FrameTypeNone, WebURLRequest::RequestContextScript); |
ResourceResponse response2; |
WebURLRequest::RequestContext requestContext = WebURLRequest::RequestContextImage; |
ASSERT_EQ(WebMixedContent::ContextType::OptionallyBlockable, WebMixedContent::contextTypeFromRequestContext(requestContext, dummyPageHolder->frame().settings()->strictMixedContentCheckingForPlugin())); |
response2.setURL(displayedUrl); |
- response2.setSecurityInfo("security info2"); |
- EXPECT_CALL(*client, didDisplayContentWithCertificateErrors(displayedUrl, response2.getSecurityInfo())); |
+ EXPECT_CALL(*client, didDisplayContentWithCertificateErrors(displayedUrl)); |
MixedContentChecker::handleCertificateError(&dummyPageHolder->frame(), response2, WebURLRequest::FrameTypeNone, requestContext); |
} |