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/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 Loading... |
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 |
OLD | NEW |