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

Side by Side Diff: net/quic/test_tools/quic_test_utils.cc

Issue 1320303009: relnote: Allow individual QUIC writers to limit the maximum packet size. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0909_1
Patch Set: Created 5 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/test_tools/quic_test_utils.h ('k') | net/tools/quic/quic_client_base.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/test_tools/quic_test_utils.h" 5 #include "net/quic/test_tools/quic_test_utils.h"
6 6
7 #include "base/sha1.h" 7 #include "base/sha1.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "net/quic/crypto/crypto_framer.h" 10 #include "net/quic/crypto/crypto_framer.h"
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 } 376 }
377 377
378 TestQuicSpdyClientSession::~TestQuicSpdyClientSession() { 378 TestQuicSpdyClientSession::~TestQuicSpdyClientSession() {
379 } 379 }
380 380
381 QuicCryptoClientStream* TestQuicSpdyClientSession::GetCryptoStream() { 381 QuicCryptoClientStream* TestQuicSpdyClientSession::GetCryptoStream() {
382 return crypto_stream_.get(); 382 return crypto_stream_.get();
383 } 383 }
384 384
385 MockPacketWriter::MockPacketWriter() { 385 MockPacketWriter::MockPacketWriter() {
386 ON_CALL(*this, GetMaxPacketSize(_))
387 .WillByDefault(testing::Return(kMaxPacketSize));
386 } 388 }
387 389
388 MockPacketWriter::~MockPacketWriter() { 390 MockPacketWriter::~MockPacketWriter() {
389 } 391 }
390 392
391 MockSendAlgorithm::MockSendAlgorithm() { 393 MockSendAlgorithm::MockSendAlgorithm() {
392 } 394 }
393 395
394 MockSendAlgorithm::~MockSendAlgorithm() { 396 MockSendAlgorithm::~MockSendAlgorithm() {
395 } 397 }
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 *server_session = new TestQuicSpdyServerSession( 826 *server_session = new TestQuicSpdyServerSession(
825 *server_connection, DefaultQuicConfig(), server_crypto_config); 827 *server_connection, DefaultQuicConfig(), server_crypto_config);
826 828
827 // We advance the clock initially because the default time is zero and the 829 // We advance the clock initially because the default time is zero and the
828 // strike register worries that we've just overflowed a uint32 time. 830 // strike register worries that we've just overflowed a uint32 time.
829 (*server_connection)->AdvanceTime(connection_start_time); 831 (*server_connection)->AdvanceTime(connection_start_time);
830 } 832 }
831 833
832 } // namespace test 834 } // namespace test
833 } // namespace net 835 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_test_utils.h ('k') | net/tools/quic/quic_client_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698