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 | |
64 const char data1[] = "foo"; | 61 const char data1[] = "foo"; |
65 const char data2[] = "bar"; | 62 const char data2[] = "bar"; |
66 | 63 |
67 const bool kHasStopWaiting = true; | 64 const bool kHasStopWaiting = true; |
68 | 65 |
69 const int kDefaultRetransmissionTimeMs = 500; | 66 const int kDefaultRetransmissionTimeMs = 500; |
70 | 67 |
71 const QuicSocketAddress kPeerAddress = | 68 const QuicSocketAddress kPeerAddress = |
72 QuicSocketAddress(QuicIpAddress::Loopback6(), | 69 QuicSocketAddress(QuicIpAddress::Loopback6(), |
73 /*port=*/12345); | 70 /*port=*/12345); |
(...skipping 5143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5217 error_details, ConnectionCloseSource::FROM_PEER)); | 5214 error_details, ConnectionCloseSource::FROM_PEER)); |
5218 connection_.set_perspective(Perspective::IS_CLIENT); | 5215 connection_.set_perspective(Perspective::IS_CLIENT); |
5219 connection_.CloseConnection(QUIC_CRYPTO_HANDSHAKE_STATELESS_REJECT, | 5216 connection_.CloseConnection(QUIC_CRYPTO_HANDSHAKE_STATELESS_REJECT, |
5220 error_details, | 5217 error_details, |
5221 ConnectionCloseBehavior::SILENT_CLOSE); | 5218 ConnectionCloseBehavior::SILENT_CLOSE); |
5222 } | 5219 } |
5223 | 5220 |
5224 } // namespace | 5221 } // namespace |
5225 } // namespace test | 5222 } // namespace test |
5226 } // namespace net | 5223 } // namespace net |
OLD | NEW |