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

Side by Side Diff: net/quic/core/quic_connection_test.cc

Issue 2856243003: Revert of Landing Recent QUIC changes until Sat Apr 29 00:22:04 2017 +0000 (Closed)
Patch Set: Created 3 years, 7 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/quic/core/quic_client_push_promise_index_test.cc ('k') | net/quic/core/quic_flags_list.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/quic/core/quic_client_push_promise_index_test.cc ('k') | net/quic/core/quic_flags_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698