| 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 <vector> | 5 #include <vector> |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
| (...skipping 1238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1249 mock_quic_data.AddSocketDataToFactory(&socket_factory_); | 1249 mock_quic_data.AddSocketDataToFactory(&socket_factory_); |
| 1250 | 1250 |
| 1251 scoped_refptr<X509Certificate> cert( | 1251 scoped_refptr<X509Certificate> cert( |
| 1252 ImportCertFromFile(GetTestCertsDirectory(), "spdy_pooling.pem")); | 1252 ImportCertFromFile(GetTestCertsDirectory(), "spdy_pooling.pem")); |
| 1253 ASSERT_TRUE(cert.get()); | 1253 ASSERT_TRUE(cert.get()); |
| 1254 bool common_name_fallback_used; | 1254 bool common_name_fallback_used; |
| 1255 EXPECT_TRUE( | 1255 EXPECT_TRUE( |
| 1256 cert->VerifyNameMatch("www.example.org", &common_name_fallback_used)); | 1256 cert->VerifyNameMatch("www.example.org", &common_name_fallback_used)); |
| 1257 ProofVerifyDetailsChromium verify_details; | 1257 ProofVerifyDetailsChromium verify_details; |
| 1258 verify_details.cert_verify_result.verified_cert = cert; | 1258 verify_details.cert_verify_result.verified_cert = cert; |
| 1259 crypto_client_stream_factory_.set_proof_verify_details(&verify_details); | 1259 crypto_client_stream_factory_.AddProofVerifyDetails(&verify_details); |
| 1260 | 1260 |
| 1261 request_.url = GURL("https://www.example.org:443"); | 1261 request_.url = GURL("https://www.example.org:443"); |
| 1262 AddHangingNonAlternateProtocolSocketData(); | 1262 AddHangingNonAlternateProtocolSocketData(); |
| 1263 CreateSessionWithNextProtos(); | 1263 CreateSessionWithNextProtos(); |
| 1264 AddQuicAlternateProtocolMapping(MockCryptoClientStream::CONFIRM_HANDSHAKE); | 1264 AddQuicAlternateProtocolMapping(MockCryptoClientStream::CONFIRM_HANDSHAKE); |
| 1265 SendRequestAndExpectQuicResponse("hello!"); | 1265 SendRequestAndExpectQuicResponse("hello!"); |
| 1266 } | 1266 } |
| 1267 | 1267 |
| 1268 } // namespace test | 1268 } // namespace test |
| 1269 } // namespace net | 1269 } // namespace net |
| OLD | NEW |