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

Side by Side Diff: net/tools/quic/quic_server_test.cc

Issue 2516033003: Landing Recent QUIC changes until Mon Nov 14 04:43:50 2016 +0000 (Closed)
Patch Set: Remove unused UpdatePacketGapSentHistogram() function. Created 4 years, 1 month 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/tools/quic/quic_server_bin.cc ('k') | net/tools/quic/quic_simple_client_bin.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/tools/quic/quic_server.h" 5 #include "net/tools/quic/quic_server.h"
6 6
7 #include "net/quic/core/crypto/quic_random.h" 7 #include "net/quic/core/crypto/quic_random.h"
8 #include "net/quic/core/quic_utils.h" 8 #include "net/quic/core/quic_utils.h"
9 #include "net/quic/test_tools/crypto_test_utils.h" 9 #include "net/quic/test_tools/crypto_test_utils.h"
10 #include "net/quic/test_tools/mock_quic_dispatcher.h" 10 #include "net/quic/test_tools/mock_quic_dispatcher.h"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 // connection_id 180 // connection_id
181 0x10, 0x32, 0x54, 0x76, 181 0x10, 0x32, 0x54, 0x76,
182 0x98, 0xBA, 0xDC, 0xFE, 182 0x98, 0xBA, 0xDC, 0xFE,
183 // packet number 183 // packet number
184 0xBC, 0x9A, 0x78, 0x56, 184 0xBC, 0x9A, 0x78, 0x56,
185 0x34, 0x12, 185 0x34, 0x12,
186 // private flags 186 // private flags
187 0x00 187 0x00
188 }; 188 };
189 // clang-format on 189 // clang-format on
190 QuicReceivedPacket encrypted_valid_packet(QuicUtils::AsChars(valid_packet), 190 QuicReceivedPacket encrypted_valid_packet(
191 arraysize(valid_packet), 191 reinterpret_cast<char*>(valid_packet), arraysize(valid_packet),
192 QuicTime::Zero(), false); 192 QuicTime::Zero(), false);
193 193
194 EXPECT_CALL(dispatcher_, ProcessPacket(_, _, _)).Times(1); 194 EXPECT_CALL(dispatcher_, ProcessPacket(_, _, _)).Times(1);
195 DispatchPacket(encrypted_valid_packet); 195 DispatchPacket(encrypted_valid_packet);
196 } 196 }
197 197
198 } // namespace 198 } // namespace
199 } // namespace test 199 } // namespace test
200 } // namespace net 200 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_server_bin.cc ('k') | net/tools/quic/quic_simple_client_bin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698