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 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <utility> | 11 #include <utility> |
12 | 12 |
13 #include "base/files/file.h" | 13 #include "base/files/file.h" |
14 #include "base/files/file_util.h" | 14 #include "base/files/file_util.h" |
15 #include "base/location.h" | 15 #include "base/location.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/memory/ptr_util.h" | 17 #include "base/memory/ptr_util.h" |
18 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
19 #include "base/run_loop.h" | 19 #include "base/run_loop.h" |
20 #include "base/single_thread_task_runner.h" | 20 #include "base/single_thread_task_runner.h" |
21 #include "base/thread_task_runner_handle.h" | 21 #include "base/threading/thread_task_runner_handle.h" |
22 #include "content/browser/browser_thread_impl.h" | 22 #include "content/browser/browser_thread_impl.h" |
23 #include "content/browser/loader/redirect_to_file_resource_handler.h" | 23 #include "content/browser/loader/redirect_to_file_resource_handler.h" |
24 #include "content/browser/loader/resource_loader_delegate.h" | 24 #include "content/browser/loader/resource_loader_delegate.h" |
25 #include "content/common/ssl_status_serialization.h" | 25 #include "content/common/ssl_status_serialization.h" |
26 #include "content/public/browser/cert_store.h" | 26 #include "content/public/browser/cert_store.h" |
27 #include "content/public/browser/client_certificate_delegate.h" | 27 #include "content/public/browser/client_certificate_delegate.h" |
28 #include "content/public/browser/resource_request_info.h" | 28 #include "content/public/browser/resource_request_info.h" |
29 #include "content/public/common/content_paths.h" | 29 #include "content/public/common/content_paths.h" |
30 #include "content/public/common/resource_response.h" | 30 #include "content/public/common/resource_response.h" |
31 #include "content/public/test/mock_resource_context.h" | 31 #include "content/public/test/mock_resource_context.h" |
(...skipping 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1146 ASSERT_TRUE( | 1146 ASSERT_TRUE( |
1147 CertStore::GetInstance()->RetrieveCert(deserialized.cert_id, &cert)); | 1147 CertStore::GetInstance()->RetrieveCert(deserialized.cert_id, &cert)); |
1148 EXPECT_TRUE(cert->Equals(GetTestCert().get())); | 1148 EXPECT_TRUE(cert->Equals(GetTestCert().get())); |
1149 | 1149 |
1150 EXPECT_EQ(kTestCertError, deserialized.cert_status); | 1150 EXPECT_EQ(kTestCertError, deserialized.cert_status); |
1151 EXPECT_EQ(kTestConnectionStatus, deserialized.connection_status); | 1151 EXPECT_EQ(kTestConnectionStatus, deserialized.connection_status); |
1152 EXPECT_EQ(kTestSecurityBits, deserialized.security_bits); | 1152 EXPECT_EQ(kTestSecurityBits, deserialized.security_bits); |
1153 } | 1153 } |
1154 | 1154 |
1155 } // namespace content | 1155 } // namespace content |
OLD | NEW |