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

Side by Side Diff: net/tools/quic/test_tools/quic_test_client.cc

Issue 139103002: Break out of the loop in QuicSession::OnCanWrite if the QuicConnection (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « net/tools/quic/quic_client.cc ('k') | no next file » | 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/tools/quic/test_tools/quic_test_client.h" 5 #include "net/tools/quic/test_tools/quic_test_client.h"
6 6
7 #include "base/time/time.h" 7 #include "base/time/time.h"
8 #include "net/base/completion_callback.h" 8 #include "net/base/completion_callback.h"
9 #include "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
10 #include "net/cert/cert_verify_result.h" 10 #include "net/cert/cert_verify_result.h"
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 void QuicTestClient::UseWriter(QuicPacketWriterWrapper* writer) { 444 void QuicTestClient::UseWriter(QuicPacketWriterWrapper* writer) {
445 client_->UseWriter(writer); 445 client_->UseWriter(writer);
446 } 446 }
447 447
448 void QuicTestClient::UseGuid(QuicGuid guid) { 448 void QuicTestClient::UseGuid(QuicGuid guid) {
449 DCHECK(!connected()); 449 DCHECK(!connected());
450 client_->UseGuid(guid); 450 client_->UseGuid(guid);
451 } 451 }
452 452
453 void QuicTestClient::WaitForWriteToFlush() { 453 void QuicTestClient::WaitForWriteToFlush() {
454 while (connected() && client()->session()->HasQueuedData()) { 454 while (connected() && client()->session()->HasDataToWrite()) {
455 client_->WaitForEvents(); 455 client_->WaitForEvents();
456 } 456 }
457 } 457 }
458 458
459 } // namespace test 459 } // namespace test
460 } // namespace tools 460 } // namespace tools
461 } // namespace net 461 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698