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/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/files/file.h" | 8 #include "base/files/file.h" |
9 #include "base/message_loop/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "net/base/mock_file_stream.h" | 21 #include "net/base/mock_file_stream.h" |
22 #include "net/base/request_priority.h" | 22 #include "net/base/request_priority.h" |
23 #include "net/cert/x509_certificate.h" | 23 #include "net/cert/x509_certificate.h" |
24 #include "net/ssl/client_cert_store.h" | 24 #include "net/ssl/client_cert_store.h" |
25 #include "net/ssl/ssl_cert_request_info.h" | 25 #include "net/ssl/ssl_cert_request_info.h" |
26 #include "net/url_request/url_request.h" | 26 #include "net/url_request/url_request.h" |
27 #include "net/url_request/url_request_job_factory_impl.h" | 27 #include "net/url_request/url_request_job_factory_impl.h" |
28 #include "net/url_request/url_request_test_job.h" | 28 #include "net/url_request/url_request_test_job.h" |
29 #include "net/url_request/url_request_test_util.h" | 29 #include "net/url_request/url_request_test_util.h" |
30 #include "testing/gtest/include/gtest/gtest.h" | 30 #include "testing/gtest/include/gtest/gtest.h" |
31 #include "webkit/common/blob/shareable_file_reference.h" | 31 #include "storage/common/blob/shareable_file_reference.h" |
32 | 32 |
33 using webkit_blob::ShareableFileReference; | 33 using storage::ShareableFileReference; |
34 | 34 |
35 namespace content { | 35 namespace content { |
36 namespace { | 36 namespace { |
37 | 37 |
38 // Stub client certificate store that returns a preset list of certificates for | 38 // Stub client certificate store that returns a preset list of certificates for |
39 // each request and records the arguments of the most recent request for later | 39 // each request and records the arguments of the most recent request for later |
40 // inspection. | 40 // inspection. |
41 class ClientCertStoreStub : public net::ClientCertStore { | 41 class ClientCertStoreStub : public net::ClientCertStore { |
42 public: | 42 public: |
43 ClientCertStoreStub(const net::CertificateList& certs) | 43 ClientCertStoreStub(const net::CertificateList& certs) |
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
721 ASSERT_TRUE(base::ReadFileToString(temp_path(), &contents)); | 721 ASSERT_TRUE(base::ReadFileToString(temp_path(), &contents)); |
722 EXPECT_EQ(test_data(), contents); | 722 EXPECT_EQ(test_data(), contents); |
723 | 723 |
724 // Release the loader. The file should be gone now. | 724 // Release the loader. The file should be gone now. |
725 ReleaseLoader(); | 725 ReleaseLoader(); |
726 base::RunLoop().RunUntilIdle(); | 726 base::RunLoop().RunUntilIdle(); |
727 EXPECT_FALSE(base::PathExists(temp_path())); | 727 EXPECT_FALSE(base::PathExists(temp_path())); |
728 } | 728 } |
729 | 729 |
730 } // namespace content | 730 } // namespace content |
OLD | NEW |