OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015, Google Inc. All rights reserved. | 2 * Copyright (c) 2015, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
568 | 568 |
569 // Tests that when a resource with certificate errors is loaded from the | 569 // Tests that when a resource with certificate errors is loaded from the |
570 // memory cache, the embedder is notified. | 570 // memory cache, the embedder is notified. |
571 TEST_F(FrameFetchContextDisplayedCertificateErrorsTest, MemoryCacheCertificateEr
ror) | 571 TEST_F(FrameFetchContextDisplayedCertificateErrorsTest, MemoryCacheCertificateEr
ror) |
572 { | 572 { |
573 ResourceRequest resourceRequest(url); | 573 ResourceRequest resourceRequest(url); |
574 ResourceResponse response; | 574 ResourceResponse response; |
575 response.setURL(url); | 575 response.setURL(url); |
576 response.setSecurityInfo(securityInfo); | 576 response.setSecurityInfo(securityInfo); |
577 response.setHasMajorCertificateErrors(true); | 577 response.setHasMajorCertificateErrors(true); |
578 ResourcePtr<Resource> resource = new Resource(resourceRequest, Resource::Ima
ge); | 578 RefPtrWillBeRawPtr<Resource> resource = Resource::create(resourceRequest, Re
source::Image); |
579 resource->setResponse(response); | 579 resource->setResponse(response); |
580 fetchContext->dispatchDidLoadResourceFromMemoryCache(resource.get(), WebURLR
equest::FrameTypeNone, WebURLRequest::RequestContextImage); | 580 fetchContext->dispatchDidLoadResourceFromMemoryCache(resource.get(), WebURLR
equest::FrameTypeNone, WebURLRequest::RequestContextImage); |
581 } | 581 } |
582 | 582 |
583 } // namespace blink | 583 } // namespace blink |
OLD | NEW |