OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/quic/core/quic_connection.h" | 5 #include "net/quic/core/quic_connection.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <memory> | 8 #include <memory> |
9 #include <ostream> | 9 #include <ostream> |
10 #include <utility> | 10 #include <utility> |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 using testing::Return; | 51 using testing::Return; |
52 using testing::SaveArg; | 52 using testing::SaveArg; |
53 using testing::SetArgPointee; | 53 using testing::SetArgPointee; |
54 using testing::StrictMock; | 54 using testing::StrictMock; |
55 using testing::_; | 55 using testing::_; |
56 | 56 |
57 namespace net { | 57 namespace net { |
58 namespace test { | 58 namespace test { |
59 namespace { | 59 namespace { |
60 | 60 |
| 61 const QuicStreamId kClientDataStreamId1 = kHeadersStreamId + 2; |
| 62 const QuicStreamId kClientDataStreamId2 = kClientDataStreamId1 + 2; |
| 63 |
61 const char data1[] = "foo"; | 64 const char data1[] = "foo"; |
62 const char data2[] = "bar"; | 65 const char data2[] = "bar"; |
63 | 66 |
64 const bool kHasStopWaiting = true; | 67 const bool kHasStopWaiting = true; |
65 | 68 |
66 const int kDefaultRetransmissionTimeMs = 500; | 69 const int kDefaultRetransmissionTimeMs = 500; |
67 | 70 |
68 const QuicSocketAddress kPeerAddress = | 71 const QuicSocketAddress kPeerAddress = |
69 QuicSocketAddress(QuicIpAddress::Loopback6(), | 72 QuicSocketAddress(QuicIpAddress::Loopback6(), |
70 /*port=*/12345); | 73 /*port=*/12345); |
(...skipping 5143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5214 error_details, ConnectionCloseSource::FROM_PEER)); | 5217 error_details, ConnectionCloseSource::FROM_PEER)); |
5215 connection_.set_perspective(Perspective::IS_CLIENT); | 5218 connection_.set_perspective(Perspective::IS_CLIENT); |
5216 connection_.CloseConnection(QUIC_CRYPTO_HANDSHAKE_STATELESS_REJECT, | 5219 connection_.CloseConnection(QUIC_CRYPTO_HANDSHAKE_STATELESS_REJECT, |
5217 error_details, | 5220 error_details, |
5218 ConnectionCloseBehavior::SILENT_CLOSE); | 5221 ConnectionCloseBehavior::SILENT_CLOSE); |
5219 } | 5222 } |
5220 | 5223 |
5221 } // namespace | 5224 } // namespace |
5222 } // namespace test | 5225 } // namespace test |
5223 } // namespace net | 5226 } // namespace net |
OLD | NEW |