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 "net/quic/test_tools/mock_crypto_client_stream_factory.h" | 5 #include "net/quic/chromium/mock_crypto_client_stream_factory.h" |
6 | 6 |
7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
8 #include "net/quic/chromium/quic_chromium_client_session.h" | 8 #include "net/quic/chromium/quic_chromium_client_session.h" |
9 #include "net/quic/core/quic_crypto_client_stream.h" | 9 #include "net/quic/core/quic_crypto_client_stream.h" |
10 | 10 |
11 using std::string; | 11 using std::string; |
12 | 12 |
13 namespace net { | 13 namespace net { |
14 | 14 |
15 MockCryptoClientStreamFactory::~MockCryptoClientStreamFactory() {} | 15 MockCryptoClientStreamFactory::~MockCryptoClientStreamFactory() {} |
(...skipping 18 matching lines...) Expand all Loading... |
34 proof_verify_details = proof_verify_details_queue_.front(); | 34 proof_verify_details = proof_verify_details_queue_.front(); |
35 proof_verify_details_queue_.pop(); | 35 proof_verify_details_queue_.pop(); |
36 } | 36 } |
37 last_stream_ = new MockCryptoClientStream( | 37 last_stream_ = new MockCryptoClientStream( |
38 server_id, session, nullptr, *(config_.get()), crypto_config, | 38 server_id, session, nullptr, *(config_.get()), crypto_config, |
39 handshake_mode_, proof_verify_details); | 39 handshake_mode_, proof_verify_details); |
40 return last_stream_; | 40 return last_stream_; |
41 } | 41 } |
42 | 42 |
43 } // namespace net | 43 } // namespace net |
OLD | NEW |