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 #include <memory> |
8 | 9 |
9 #include "base/macros.h" | 10 #include "base/macros.h" |
10 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
11 #include "net/quic/crypto/quic_crypto_server_config.h" | 12 #include "net/quic/crypto/quic_crypto_server_config.h" |
12 #include "net/quic/crypto/quic_random.h" | 13 #include "net/quic/crypto/quic_random.h" |
13 #include "net/quic/proto/cached_network_parameters.pb.h" | 14 #include "net/quic/proto/cached_network_parameters.pb.h" |
14 #include "net/quic/quic_connection.h" | 15 #include "net/quic/quic_connection.h" |
15 #include "net/quic/quic_crypto_server_stream.h" | 16 #include "net/quic/quic_crypto_server_stream.h" |
16 #include "net/quic/quic_utils.h" | 17 #include "net/quic/quic_utils.h" |
17 #include "net/quic/test_tools/crypto_test_utils.h" | 18 #include "net/quic/test_tools/crypto_test_utils.h" |
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 .WillOnce(Return(QuicConsumedData(kStreamFlowControlWindowSize, false))); | 565 .WillOnce(Return(QuicConsumedData(kStreamFlowControlWindowSize, false))); |
565 | 566 |
566 EXPECT_CALL(*connection_, SendBlocked(stream_to_open)); | 567 EXPECT_CALL(*connection_, SendBlocked(stream_to_open)); |
567 QuicRstStreamFrame rst(stream_got_reset, QUIC_STREAM_CANCELLED, 0); | 568 QuicRstStreamFrame rst(stream_got_reset, QUIC_STREAM_CANCELLED, 0); |
568 visitor_->OnRstStream(rst); | 569 visitor_->OnRstStream(rst); |
569 } | 570 } |
570 | 571 |
571 } // namespace | 572 } // namespace |
572 } // namespace test | 573 } // namespace test |
573 } // namespace net | 574 } // namespace net |
OLD | NEW |