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

Unified Diff: net/quic/test_tools/mock_crypto_client_stream.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 months 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
« no previous file with comments | « net/quic/test_tools/mock_clock.cc ('k') | net/quic/test_tools/mock_crypto_client_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/test_tools/mock_crypto_client_stream.h
diff --git a/net/quic/test_tools/mock_crypto_client_stream.h b/net/quic/test_tools/mock_crypto_client_stream.h
deleted file mode 100644
index d0bda38be17ce1c9d7b2ce0ecc459ede04d15189..0000000000000000000000000000000000000000
--- a/net/quic/test_tools/mock_crypto_client_stream.h
+++ /dev/null
@@ -1,70 +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.
-
-#ifndef NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_
-#define NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_
-
-#include <string>
-
-#include "net/quic/crypto/crypto_handshake.h"
-#include "net/quic/crypto/crypto_protocol.h"
-#include "net/quic/quic_crypto_client_stream.h"
-#include "net/quic/quic_session.h"
-
-namespace net {
-
-class QuicServerId;
-
-class MockCryptoClientStream : public QuicCryptoClientStream {
- public:
- // HandshakeMode enumerates the handshake mode MockCryptoClientStream should
- // mock in CryptoConnect.
- enum HandshakeMode {
- // CONFIRM_HANDSHAKE indicates that CryptoConnect will immediately confirm
- // the handshake and establish encryption. This behavior will never happen
- // in the field, but is convenient for higher level tests.
- CONFIRM_HANDSHAKE,
-
- // ZERO_RTT indicates that CryptoConnect will establish encryption but will
- // not confirm the handshake.
- ZERO_RTT,
-
- // COLD_START indicates that CryptoConnect will neither establish encryption
- // nor confirm the handshake
- COLD_START,
- };
-
- MockCryptoClientStream(
- const QuicServerId& server_id,
- QuicClientSessionBase* session,
- ProofVerifyContext* verify_context,
- QuicCryptoClientConfig* crypto_config,
- HandshakeMode handshake_mode,
- const ProofVerifyDetails* proof_verify_details_);
- ~MockCryptoClientStream() override;
-
- // CryptoFramerVisitorInterface implementation.
- void OnHandshakeMessage(const CryptoHandshakeMessage& message) override;
-
- // QuicCryptoClientStream implementation.
- void CryptoConnect() override;
-
- // Invokes the sessions's CryptoHandshakeEvent method with the specified
- // event.
- void SendOnCryptoHandshakeEvent(QuicSession::CryptoHandshakeEvent event);
-
- HandshakeMode handshake_mode_;
-
- private:
- void SetConfigNegotiated();
- QuicClientSessionBase* client_session();
-
- const ProofVerifyDetails* proof_verify_details_;
-
- DISALLOW_COPY_AND_ASSIGN(MockCryptoClientStream);
-};
-
-} // namespace net
-
-#endif // NET_QUIC_TEST_TOOLS_MOCK_CRYPTO_CLIENT_STREAM_H_
« no previous file with comments | « net/quic/test_tools/mock_clock.cc ('k') | net/quic/test_tools/mock_crypto_client_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698