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 "base/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "content/browser/browser_thread_impl.h" | 8 #include "content/browser/browser_thread_impl.h" |
9 #include "content/browser/loader/resource_loader_delegate.h" | 9 #include "content/browser/loader/resource_loader_delegate.h" |
10 #include "content/public/browser/resource_request_info.h" | 10 #include "content/public/browser/resource_request_info.h" |
11 #include "content/public/test/mock_resource_context.h" | 11 #include "content/public/test/mock_resource_context.h" |
12 #include "content/test/test_content_browser_client.h" | 12 #include "content/test/test_content_browser_client.h" |
13 #include "net/cert/x509_certificate.h" | 13 #include "net/cert/x509_certificate.h" |
14 #include "net/ssl/client_cert_store.h" | 14 #include "net/ssl/client_cert_store.h" |
15 #include "net/ssl/ssl_cert_request_info.h" | 15 #include "net/ssl/ssl_cert_request_info.h" |
16 #include "net/url_request/url_request.h" | 16 #include "net/url_request/url_request.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 EXPECT_EQ(dummy_authority, raw_ptr_to_store->requested_authorities()); | 246 EXPECT_EQ(dummy_authority, raw_ptr_to_store->requested_authorities()); |
247 | 247 |
248 // Check if the retrieved certificates were passed to the content browser | 248 // Check if the retrieved certificates were passed to the content browser |
249 // client. | 249 // client. |
250 EXPECT_EQ(1, test_client.call_count()); | 250 EXPECT_EQ(1, test_client.call_count()); |
251 EXPECT_EQ(dummy_certs, test_client.passed_certs()); | 251 EXPECT_EQ(dummy_certs, test_client.passed_certs()); |
252 } | 252 } |
253 #endif // !defined(OPENSSL) | 253 #endif // !defined(OPENSSL) |
254 | 254 |
255 } // namespace content | 255 } // namespace content |
OLD | NEW |