This source file includes following definitions.
- proof_verify_details_
- CreateQuicCryptoClientStream
#include "net/quic/test_tools/mock_crypto_client_stream_factory.h"
#include "base/lazy_instance.h"
#include "net/quic/quic_client_session.h"
#include "net/quic/quic_crypto_client_stream.h"
#include "net/quic/quic_server_id.h"
using std::string;
namespace net {
MockCryptoClientStreamFactory::MockCryptoClientStreamFactory()
: handshake_mode_(MockCryptoClientStream::CONFIRM_HANDSHAKE),
last_stream_(NULL),
proof_verify_details_(NULL) {
}
QuicCryptoClientStream*
MockCryptoClientStreamFactory::CreateQuicCryptoClientStream(
const QuicServerId& server_id,
QuicClientSession* session,
QuicCryptoClientConfig* crypto_config) {
last_stream_ = new MockCryptoClientStream(
server_id, session, NULL, crypto_config, handshake_mode_,
proof_verify_details_);
return last_stream_;
}
}