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

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

Issue 2340583002: Make DiversificationNonce a std::array (Closed)
Patch Set: Created 4 years, 3 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_connection.cc ('k') | net/quic/core/quic_framer.cc » ('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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « net/quic/core/quic_connection.cc ('k') | net/quic/core/quic_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698