Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Unified Diff: net/quic/test_tools/mock_crypto_client_stream_factory.cc

Issue 2565563002: Move various Chromium QUIC files to net/quic/chromium where they belong (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/quic/test_tools/mock_crypto_client_stream_factory.cc
diff --git a/net/quic/test_tools/mock_crypto_client_stream_factory.cc b/net/quic/test_tools/mock_crypto_client_stream_factory.cc
deleted file mode 100644
index dfda4db7a3600f8977084c95c32d9fd1a38ae91c..0000000000000000000000000000000000000000
--- a/net/quic/test_tools/mock_crypto_client_stream_factory.cc
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "net/quic/test_tools/mock_crypto_client_stream_factory.h"
-
-#include "base/lazy_instance.h"
-#include "net/quic/chromium/quic_chromium_client_session.h"
-#include "net/quic/core/quic_crypto_client_stream.h"
-
-using std::string;
-
-namespace net {
-
-MockCryptoClientStreamFactory::~MockCryptoClientStreamFactory() {}
-
-MockCryptoClientStreamFactory::MockCryptoClientStreamFactory()
- : handshake_mode_(MockCryptoClientStream::CONFIRM_HANDSHAKE),
- last_stream_(nullptr),
- config_(new QuicConfig()) {}
-
-void MockCryptoClientStreamFactory::SetConfig(const QuicConfig& config) {
- config_.reset(new QuicConfig(config));
-}
-
-QuicCryptoClientStream*
-MockCryptoClientStreamFactory::CreateQuicCryptoClientStream(
- const QuicServerId& server_id,
- QuicChromiumClientSession* session,
- std::unique_ptr<ProofVerifyContext> /*proof_verify_context*/,
- QuicCryptoClientConfig* crypto_config) {
- const ProofVerifyDetailsChromium* proof_verify_details = nullptr;
- if (!proof_verify_details_queue_.empty()) {
- proof_verify_details = proof_verify_details_queue_.front();
- proof_verify_details_queue_.pop();
- }
- last_stream_ = new MockCryptoClientStream(
- server_id, session, nullptr, *(config_.get()), crypto_config,
- handshake_mode_, proof_verify_details);
- return last_stream_;
-}
-
-} // namespace net
« no previous file with comments | « net/quic/test_tools/mock_crypto_client_stream_factory.h ('k') | net/quic/test_tools/quic_test_packet_maker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698