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

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

Issue 2862563003: Landing Recent QUIC changes until Sat Apr 29 00:22:04 2017 +0000 (Closed)
Patch Set: rebase and fix test bugs detected by swarm bot. 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
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
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
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