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
3 // found in the LICENSE file.
5 #include "net/quic/test_tools/mock_crypto_client_stream_factory.h"
7 #include "base/lazy_instance.h"
8 #include "net/quic/quic_crypto_client_stream.h"
14 MockCryptoClientStreamFactory::MockCryptoClientStreamFactory()
15 : handshake_mode_(MockCryptoClientStream::CONFIRM_HANDSHAKE),
19 QuicCryptoClientStream*
20 MockCryptoClientStreamFactory::CreateQuicCryptoClientStream(
21 const string& server_hostname,
23 QuicCryptoClientConfig* crypto_config) {
24 last_stream_ = new MockCryptoClientStream(server_hostname, session,
25 crypto_config, handshake_mode_);