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

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

Issue 1470713003: Landing Recent QUIC changes until and including Mon Nov 16 14:15:48 2015 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding NET_EXPORT_PRIVATE to DelegateInterface. Created 5 years 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
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 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 580
581 IPAddressNumber QuicTestClient::bind_to_address() const { 581 IPAddressNumber QuicTestClient::bind_to_address() const {
582 return client_->bind_to_address(); 582 return client_->bind_to_address();
583 } 583 }
584 584
585 void QuicTestClient::set_bind_to_address(IPAddressNumber address) { 585 void QuicTestClient::set_bind_to_address(IPAddressNumber address) {
586 client_->set_bind_to_address(address); 586 client_->set_bind_to_address(address);
587 } 587 }
588 588
589 const IPEndPoint& QuicTestClient::address() const { 589 const IPEndPoint& QuicTestClient::address() const {
590 LOG(DFATAL) << "Not implemented";
591 return client_->server_address(); 590 return client_->server_address();
592 } 591 }
593 592
594 size_t QuicTestClient::requests_sent() const { 593 size_t QuicTestClient::requests_sent() const {
595 LOG(DFATAL) << "Not implemented"; 594 LOG(DFATAL) << "Not implemented";
596 return 0; 595 return 0;
597 } 596 }
598 597
599 void QuicTestClient::WaitForWriteToFlush() { 598 void QuicTestClient::WaitForWriteToFlush() {
600 while (connected() && client()->session()->HasDataToWrite()) { 599 while (connected() && client()->session()->HasDataToWrite()) {
(...skipping 25 matching lines...) Expand all
626 message->headers()->SetRequestVersion( 625 message->headers()->SetRequestVersion(
627 HTTPMessage::VersionToString(HttpConstants::HTTP_1_1)); 626 HTTPMessage::VersionToString(HttpConstants::HTTP_1_1));
628 message->headers()->SetRequestMethod( 627 message->headers()->SetRequestMethod(
629 HTTPMessage::MethodToString(HttpConstants::GET)); 628 HTTPMessage::MethodToString(HttpConstants::GET));
630 message->headers()->SetRequestUri(uri); 629 message->headers()->SetRequestUri(uri);
631 } 630 }
632 631
633 } // namespace test 632 } // namespace test
634 } // namespace tools 633 } // namespace tools
635 } // namespace net 634 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698