| 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 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |