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

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

Issue 1332223003: relnote: Add MigrateSocket method to quic_test_client. In loadtesting, (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Fixes_test_102047537
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/tools/quic/test_tools/quic_test_client.h ('k') | net/tools/quic/test_tools/simple_client.h » ('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/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 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 ssize_t QuicTestClient::SendAndWaitForResponse(const void *buffer, 577 ssize_t QuicTestClient::SendAndWaitForResponse(const void *buffer,
578 size_t size) { 578 size_t size) {
579 LOG(DFATAL) << "Not implemented"; 579 LOG(DFATAL) << "Not implemented";
580 return 0; 580 return 0;
581 } 581 }
582 582
583 void QuicTestClient::Bind(IPEndPoint* local_address) { 583 void QuicTestClient::Bind(IPEndPoint* local_address) {
584 DLOG(WARNING) << "Bind will be done during connect"; 584 DLOG(WARNING) << "Bind will be done during connect";
585 } 585 }
586 586
587 void QuicTestClient::MigrateSocket(const IPAddressNumber& new_host) {
588 client_->MigrateSocket(new_host);
589 }
590
587 string QuicTestClient::SerializeMessage(const HTTPMessage& message) { 591 string QuicTestClient::SerializeMessage(const HTTPMessage& message) {
588 LOG(DFATAL) << "Not implemented"; 592 LOG(DFATAL) << "Not implemented";
589 return ""; 593 return "";
590 } 594 }
591 595
592 IPAddressNumber QuicTestClient::bind_to_address() const { 596 IPAddressNumber QuicTestClient::bind_to_address() const {
593 return client_->bind_to_address(); 597 return client_->bind_to_address();
594 } 598 }
595 599
596 void QuicTestClient::set_bind_to_address(IPAddressNumber address) { 600 void QuicTestClient::set_bind_to_address(IPAddressNumber address) {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 message->headers()->SetRequestVersion( 641 message->headers()->SetRequestVersion(
638 HTTPMessage::VersionToString(HttpConstants::HTTP_1_1)); 642 HTTPMessage::VersionToString(HttpConstants::HTTP_1_1));
639 message->headers()->SetRequestMethod( 643 message->headers()->SetRequestMethod(
640 HTTPMessage::MethodToString(HttpConstants::GET)); 644 HTTPMessage::MethodToString(HttpConstants::GET));
641 message->headers()->SetRequestUri(uri); 645 message->headers()->SetRequestUri(uri);
642 } 646 }
643 647
644 } // namespace test 648 } // namespace test
645 } // namespace tools 649 } // namespace tools
646 } // namespace net 650 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/test_tools/quic_test_client.h ('k') | net/tools/quic/test_tools/simple_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698