| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |