OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <memory> | 5 #include <memory> |
6 #include <utility> | 6 #include <utility> |
7 | 7 |
8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 8872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8883 // lookup abc | 8883 // lookup abc |
8884 // insert xyz | 8884 // insert xyz |
8885 | 8885 |
8886 EXPECT_EQ(1, d.response_started_count()); | 8886 EXPECT_EQ(1, d.response_started_count()); |
8887 AssertTwoDistinctSessionsInserted(d.data_received()); | 8887 AssertTwoDistinctSessionsInserted(d.data_received()); |
8888 } | 8888 } |
8889 } | 8889 } |
8890 | 8890 |
8891 // This the fingerprint of the "Testing CA" certificate used by the testserver. | 8891 // This the fingerprint of the "Testing CA" certificate used by the testserver. |
8892 // See net/data/ssl/certificates/ocsp-test-root.pem. | 8892 // See net/data/ssl/certificates/ocsp-test-root.pem. |
8893 static const SHA1HashValue kOCSPTestCertFingerprint = | 8893 static const SHA1HashValue kOCSPTestCertFingerprint = {{ |
8894 { { 0xf1, 0xad, 0xf6, 0xce, 0x42, 0xac, 0xe7, 0xb4, 0xf4, 0x24, | 8894 0xa7, 0xea, 0x4b, 0x0d, 0x13, 0xc1, 0x63, 0xbf, 0xb8, 0x4e, |
8895 0xdb, 0x1a, 0xf7, 0xa0, 0x9f, 0x09, 0xa1, 0xea, 0xf1, 0x5c } }; | 8895 0x9a, 0xaf, 0x33, 0x05, 0xb0, 0x8f, 0x9c, 0xbe, 0x23, 0xe9, |
| 8896 }}; |
8896 | 8897 |
8897 // This is the SHA256, SPKI hash of the "Testing CA" certificate used by the | 8898 // This is the SHA256, SPKI hash of the "Testing CA" certificate used by the |
8898 // testserver. | 8899 // testserver. |
8899 static const SHA256HashValue kOCSPTestCertSPKI = { { | 8900 static const SHA256HashValue kOCSPTestCertSPKI = { { |
8900 0xee, 0xe6, 0x51, 0x2d, 0x4c, 0xfa, 0xf7, 0x3e, | 8901 0xee, 0xe6, 0x51, 0x2d, 0x4c, 0xfa, 0xf7, 0x3e, |
8901 0x6c, 0xd8, 0xca, 0x67, 0xed, 0xb5, 0x5d, 0x49, | 8902 0x6c, 0xd8, 0xca, 0x67, 0xed, 0xb5, 0x5d, 0x49, |
8902 0x76, 0xe1, 0x52, 0xa7, 0x6e, 0x0e, 0xa0, 0x74, | 8903 0x76, 0xe1, 0x52, 0xa7, 0x6e, 0x0e, 0xa0, 0x74, |
8903 0x09, 0x75, 0xe6, 0x23, 0x24, 0xbd, 0x1b, 0x28, | 8904 0x09, 0x75, 0xe6, 0x23, 0x24, 0xbd, 0x1b, 0x28, |
8904 } }; | 8905 } }; |
8905 | 8906 |
(...skipping 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10211 AddTestInterceptor()->set_main_intercept_job(std::move(job)); | 10212 AddTestInterceptor()->set_main_intercept_job(std::move(job)); |
10212 | 10213 |
10213 req->Start(); | 10214 req->Start(); |
10214 req->Cancel(); | 10215 req->Cancel(); |
10215 base::RunLoop().RunUntilIdle(); | 10216 base::RunLoop().RunUntilIdle(); |
10216 EXPECT_EQ(ERR_ABORTED, d.request_status()); | 10217 EXPECT_EQ(ERR_ABORTED, d.request_status()); |
10217 EXPECT_EQ(0, d.received_redirect_count()); | 10218 EXPECT_EQ(0, d.received_redirect_count()); |
10218 } | 10219 } |
10219 | 10220 |
10220 } // namespace net | 10221 } // namespace net |
OLD | NEW |