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

Side by Side Diff: net/tools/quic/quic_simple_server_session_test.cc

Issue 1783713003: Add a boolean use_stateless_rejects_if_peer_supported argument to the QuicCryptoServerStream constr… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « net/tools/quic/quic_simple_server_session.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/tools/quic/quic_simple_server_session.h" 5 #include "net/tools/quic/quic_simple_server_session.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 bool fin, 77 bool fin,
78 SpdyPriority priority, 78 SpdyPriority priority,
79 QuicAckListenerInterface* ack_listener)); 79 QuicAckListenerInterface* ack_listener));
80 }; 80 };
81 81
82 class MockQuicCryptoServerStream : public QuicCryptoServerStream { 82 class MockQuicCryptoServerStream : public QuicCryptoServerStream {
83 public: 83 public:
84 explicit MockQuicCryptoServerStream( 84 explicit MockQuicCryptoServerStream(
85 const QuicCryptoServerConfig* crypto_config, 85 const QuicCryptoServerConfig* crypto_config,
86 QuicSession* session) 86 QuicSession* session)
87 : QuicCryptoServerStream(crypto_config, session) {} 87 : QuicCryptoServerStream(crypto_config,
88 FLAGS_enable_quic_stateless_reject_support,
89 session) {}
88 ~MockQuicCryptoServerStream() override {} 90 ~MockQuicCryptoServerStream() override {}
89 91
90 MOCK_METHOD1(SendServerConfigUpdate, 92 MOCK_METHOD1(SendServerConfigUpdate,
91 void(const CachedNetworkParameters* cached_network_parameters)); 93 void(const CachedNetworkParameters* cached_network_parameters));
92 94
93 void set_encryption_established(bool has_established) { 95 void set_encryption_established(bool has_established) {
94 encryption_established_ = has_established; 96 encryption_established_ = has_established;
95 } 97 }
96 98
97 private: 99 private:
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 .WillOnce(Return(QuicConsumedData(kStreamFlowControlWindowSize, false))); 559 .WillOnce(Return(QuicConsumedData(kStreamFlowControlWindowSize, false)));
558 560
559 EXPECT_CALL(*connection_, SendBlocked(stream_to_open)); 561 EXPECT_CALL(*connection_, SendBlocked(stream_to_open));
560 QuicRstStreamFrame rst(stream_got_reset, QUIC_STREAM_CANCELLED, 0); 562 QuicRstStreamFrame rst(stream_got_reset, QUIC_STREAM_CANCELLED, 0);
561 visitor_->OnRstStream(rst); 563 visitor_->OnRstStream(rst);
562 } 564 }
563 565
564 } // namespace 566 } // namespace
565 } // namespace test 567 } // namespace test
566 } // namespace net 568 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_simple_server_session.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698