We started redesigning GpuMemoryBuffer interface to handle multiple buffers [0].
[chromium-blink-merge.git] / net / quic / test_tools / mock_crypto_client_stream_factory.cc
blob5088c4347c8ef27cd4d761230c20cca6aa6681b2
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_client_session.h"
9 #include "net/quic/quic_crypto_client_stream.h"
10 #include "net/quic/quic_server_id.h"
12 using std::string;
14 namespace net {
16 MockCryptoClientStreamFactory::MockCryptoClientStreamFactory()
17 : handshake_mode_(MockCryptoClientStream::CONFIRM_HANDSHAKE),
18 last_stream_(nullptr),
19 proof_verify_details_(nullptr) {
22 QuicCryptoClientStream*
23 MockCryptoClientStreamFactory::CreateQuicCryptoClientStream(
24 const QuicServerId& server_id,
25 QuicClientSession* session,
26 QuicCryptoClientConfig* crypto_config) {
27 last_stream_ = new MockCryptoClientStream(
28 server_id, session, nullptr, crypto_config, handshake_mode_,
29 proof_verify_details_);
30 return last_stream_;
33 } // namespace net