| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 // QuicDecrypter interface | 144 // QuicDecrypter interface |
| 145 bool SetKey(StringPiece key) override { return true; } | 145 bool SetKey(StringPiece key) override { return true; } |
| 146 | 146 |
| 147 bool SetNoncePrefix(StringPiece nonce_prefix) override { return true; } | 147 bool SetNoncePrefix(StringPiece nonce_prefix) override { return true; } |
| 148 | 148 |
| 149 bool SetPreliminaryKey(StringPiece key) override { | 149 bool SetPreliminaryKey(StringPiece key) override { |
| 150 QUIC_BUG << "should not be called"; | 150 QUIC_BUG << "should not be called"; |
| 151 return false; | 151 return false; |
| 152 } | 152 } |
| 153 | 153 |
| 154 bool SetDiversificationNonce(DiversificationNonce key) override { | 154 bool SetDiversificationNonce(const DiversificationNonce& key) override { |
| 155 return true; | 155 return true; |
| 156 } | 156 } |
| 157 | 157 |
| 158 bool DecryptPacket(QuicPathId path_id, | 158 bool DecryptPacket(QuicPathId path_id, |
| 159 QuicPacketNumber packet_number, | 159 QuicPacketNumber packet_number, |
| 160 StringPiece associated_data, | 160 StringPiece associated_data, |
| 161 StringPiece ciphertext, | 161 StringPiece ciphertext, |
| 162 char* output, | 162 char* output, |
| 163 size_t* output_length, | 163 size_t* output_length, |
| 164 size_t max_output_length) override { | 164 size_t max_output_length) override { |
| (...skipping 5078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5243 connection_.SendStreamDataWithString(3, "foo", 0, !kFin, nullptr); | 5243 connection_.SendStreamDataWithString(3, "foo", 0, !kFin, nullptr); |
| 5244 EXPECT_EQ(1u, writer_->frame_count()); | 5244 EXPECT_EQ(1u, writer_->frame_count()); |
| 5245 EXPECT_FALSE(writer_->connection_close_frames().empty()); | 5245 EXPECT_FALSE(writer_->connection_close_frames().empty()); |
| 5246 // Ack frame is not bundled in connection close packet. | 5246 // Ack frame is not bundled in connection close packet. |
| 5247 EXPECT_TRUE(writer_->ack_frames().empty()); | 5247 EXPECT_TRUE(writer_->ack_frames().empty()); |
| 5248 } | 5248 } |
| 5249 | 5249 |
| 5250 } // namespace | 5250 } // namespace |
| 5251 } // namespace test | 5251 } // namespace test |
| 5252 } // namespace net | 5252 } // namespace net |
| OLD | NEW |