| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/loader/resource_loader.h" | 5 #include "content/browser/loader/resource_loader.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 618 } | 618 } |
| 619 bool HandleExternalProtocol(ResourceLoader* loader, | 619 bool HandleExternalProtocol(ResourceLoader* loader, |
| 620 const GURL& url) override { | 620 const GURL& url) override { |
| 621 return false; | 621 return false; |
| 622 } | 622 } |
| 623 void DidStartRequest(ResourceLoader* loader) override {} | 623 void DidStartRequest(ResourceLoader* loader) override {} |
| 624 void DidReceiveRedirect(ResourceLoader* loader, | 624 void DidReceiveRedirect(ResourceLoader* loader, |
| 625 const GURL& new_url) override {} | 625 const GURL& new_url) override {} |
| 626 void DidReceiveResponse(ResourceLoader* loader) override {} | 626 void DidReceiveResponse(ResourceLoader* loader) override {} |
| 627 void DidFinishLoading(ResourceLoader* loader) override {} | 627 void DidFinishLoading(ResourceLoader* loader) override {} |
| 628 void LoaderDestroyed(ResourceLoader* loader) override {} |
| 628 | 629 |
| 629 TestBrowserThreadBundle thread_bundle_; | 630 TestBrowserThreadBundle thread_bundle_; |
| 630 RenderViewHostTestEnabler rvh_test_enabler_; | 631 RenderViewHostTestEnabler rvh_test_enabler_; |
| 631 | 632 |
| 632 net::URLRequestJobFactoryImpl job_factory_; | 633 net::URLRequestJobFactoryImpl job_factory_; |
| 633 net::TestURLRequestContext test_url_request_context_; | 634 net::TestURLRequestContext test_url_request_context_; |
| 634 ResourceContextStub resource_context_; | 635 ResourceContextStub resource_context_; |
| 635 scoped_ptr<TestBrowserContext> browser_context_; | 636 scoped_ptr<TestBrowserContext> browser_context_; |
| 636 scoped_ptr<TestWebContents> web_contents_; | 637 scoped_ptr<TestWebContents> web_contents_; |
| 637 | 638 |
| (...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1147 ASSERT_TRUE( | 1148 ASSERT_TRUE( |
| 1148 CertStore::GetInstance()->RetrieveCert(deserialized.cert_id, &cert)); | 1149 CertStore::GetInstance()->RetrieveCert(deserialized.cert_id, &cert)); |
| 1149 EXPECT_TRUE(cert->Equals(GetTestCert().get())); | 1150 EXPECT_TRUE(cert->Equals(GetTestCert().get())); |
| 1150 | 1151 |
| 1151 EXPECT_EQ(kTestCertError, deserialized.cert_status); | 1152 EXPECT_EQ(kTestCertError, deserialized.cert_status); |
| 1152 EXPECT_EQ(kTestConnectionStatus, deserialized.connection_status); | 1153 EXPECT_EQ(kTestConnectionStatus, deserialized.connection_status); |
| 1153 EXPECT_EQ(kTestSecurityBits, deserialized.security_bits); | 1154 EXPECT_EQ(kTestSecurityBits, deserialized.security_bits); |
| 1154 } | 1155 } |
| 1155 | 1156 |
| 1156 } // namespace content | 1157 } // namespace content |
| OLD | NEW |