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

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

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh Created 7 years, 8 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') | net/udp/udp_socket_unittest.cc » ('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 "net/tools/flip_server/balsa_headers.h" 7 #include "net/tools/flip_server/balsa_headers.h"
8 #include "net/tools/quic/test_tools/http_message_test_utils.h" 8 #include "net/tools/quic/test_tools/http_message_test_utils.h"
9 9
10 using std::string; 10 using std::string;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 string QuicTestClient::SendCustomSynchronousRequest( 78 string QuicTestClient::SendCustomSynchronousRequest(
79 const HTTPMessage& message) { 79 const HTTPMessage& message) {
80 SendMessage(message); 80 SendMessage(message);
81 WaitForResponse(); 81 WaitForResponse();
82 return response_; 82 return response_;
83 } 83 }
84 84
85 string QuicTestClient::SendSynchronousRequest(const string& uri) { 85 string QuicTestClient::SendSynchronousRequest(const string& uri) {
86 if (SendRequest(uri) == 0) { 86 if (SendRequest(uri) == 0) {
87 DLOG(ERROR) << "Failed to the request for uri:" << uri; 87 DLOG(ERROR) << "Failed to the request for uri:" << uri;
88 return ""; 88 return std::string();
89 } 89 }
90 WaitForResponse(); 90 WaitForResponse();
91 return response_; 91 return response_;
92 } 92 }
93 93
94 QuicReliableClientStream* QuicTestClient::GetOrCreateStream() { 94 QuicReliableClientStream* QuicTestClient::GetOrCreateStream() {
95 if (never_connected_ == true) { 95 if (never_connected_ == true) {
96 if (!connected()) { 96 if (!connected()) {
97 Connect(); 97 Connect();
98 } 98 }
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 stream_error_ = stream_->stream_error(); 174 stream_error_ = stream_->stream_error();
175 connection_error_ = stream_->connection_error(); 175 connection_error_ = stream_->connection_error();
176 bytes_read_ = stream_->stream_bytes_read(); 176 bytes_read_ = stream_->stream_bytes_read();
177 bytes_written_ = stream_->stream_bytes_written(); 177 bytes_written_ = stream_->stream_bytes_written();
178 stream_ = NULL; 178 stream_ = NULL;
179 } 179 }
180 180
181 } // namespace test 181 } // namespace test
182 } // namespace tools 182 } // namespace tools
183 } // namespace net 183 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_client.cc ('k') | net/udp/udp_socket_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698