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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
136 } | 136 } |
137 | 137 |
138 scoped_ptr<QuicEncryptedPacket> ConstructConnectionClosePacket( | 138 scoped_ptr<QuicEncryptedPacket> ConstructConnectionClosePacket( |
139 QuicPacketSequenceNumber num) { | 139 QuicPacketSequenceNumber num) { |
140 return maker_.MakeConnectionClosePacket(num); | 140 return maker_.MakeConnectionClosePacket(num); |
141 } | 141 } |
142 | 142 |
143 scoped_ptr<QuicEncryptedPacket> ConstructAckPacket( | 143 scoped_ptr<QuicEncryptedPacket> ConstructAckPacket( |
144 QuicPacketSequenceNumber largest_received, | 144 QuicPacketSequenceNumber largest_received, |
145 QuicPacketSequenceNumber least_unacked) { | 145 QuicPacketSequenceNumber least_unacked) { |
146 return maker_.MakeAckPacket(2, largest_received, least_unacked, true); | 146 return maker_.MakeAckPacket(2, largest_received, least_unacked, true, |
147 clock_->Now()); | |
ramant (doing other things)
2014/08/23 23:55:28
Hi Ryan,
In QuicFramer::AppendTimestampToAckFram
Ryan Hamilton
2014/08/25 22:07:51
Alternatively, consider passing a clock in to the
ramant (doing other things)
2014/08/25 23:39:35
Thanks for the above suggestion.
Done.
| |
147 } | 148 } |
148 | 149 |
149 SpdyHeaderBlock GetRequestHeaders(const std::string& method, | 150 SpdyHeaderBlock GetRequestHeaders(const std::string& method, |
150 const std::string& scheme, | 151 const std::string& scheme, |
151 const std::string& path) { | 152 const std::string& path) { |
152 return maker_.GetRequestHeaders(method, scheme, path); | 153 return maker_.GetRequestHeaders(method, scheme, path); |
153 } | 154 } |
154 | 155 |
155 SpdyHeaderBlock GetResponseHeaders(const std::string& status) { | 156 SpdyHeaderBlock GetResponseHeaders(const std::string& status) { |
156 return maker_.GetResponseHeaders(status); | 157 return maker_.GetResponseHeaders(status); |
(...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1032 NULL, | 1033 NULL, |
1033 net_log_.bound()); | 1034 net_log_.bound()); |
1034 | 1035 |
1035 CreateSessionWithNextProtos(); | 1036 CreateSessionWithNextProtos(); |
1036 AddQuicAlternateProtocolMapping(MockCryptoClientStream::ZERO_RTT); | 1037 AddQuicAlternateProtocolMapping(MockCryptoClientStream::ZERO_RTT); |
1037 SendRequestAndExpectHttpResponse("hello world"); | 1038 SendRequestAndExpectHttpResponse("hello world"); |
1038 } | 1039 } |
1039 | 1040 |
1040 } // namespace test | 1041 } // namespace test |
1041 } // namespace net | 1042 } // namespace net |
OLD | NEW |