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

Unified Diff: net/tools/quic/test_tools/quic_test_client.h

Issue 763833003: Remove using namespace in net/quic/quic_stream_sequencer.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix missing part device_cloud_policy_manager_chromeos_unittest.cc Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/quic/test_tools/packet_dropping_test_writer.h ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/test_tools/quic_test_client.h
diff --git a/net/tools/quic/test_tools/quic_test_client.h b/net/tools/quic/test_tools/quic_test_client.h
index a1dea9ee3a30028a8559ac66ff73ec8f88cacbea..79224ba683f3ac31bf881d9c0630c3fb40f611fe 100644
--- a/net/tools/quic/test_tools/quic_test_client.h
+++ b/net/tools/quic/test_tools/quic_test_client.h
@@ -63,11 +63,11 @@ class QuicTestClient : public SimpleClient,
public QuicDataStream::Visitor {
public:
QuicTestClient(IPEndPoint server_address,
- const string& server_hostname,
+ const std::string& server_hostname,
bool secure,
const QuicVersionVector& supported_versions);
QuicTestClient(IPEndPoint server_address,
- const string& server_hostname,
+ const std::string& server_hostname,
bool secure,
const QuicConfig& config,
const QuicVersionVector& supported_versions);
@@ -80,18 +80,18 @@ class QuicTestClient : public SimpleClient,
void ExpectCertificates(bool on);
// Sets the |user_agent_id| of the |client_|.
- void SetUserAgentID(const string& user_agent_id);
+ void SetUserAgentID(const std::string& user_agent_id);
// Wraps data in a quic packet and sends it.
- ssize_t SendData(string data, bool last_data);
+ ssize_t SendData(std::string data, bool last_data);
// From SimpleClient
// Clears any outstanding state and sends a simple GET of 'uri' to the
// server. Returns 0 if the request failed and no bytes were written.
- ssize_t SendRequest(const string& uri) override;
+ ssize_t SendRequest(const std::string& uri) override;
ssize_t SendMessage(const HTTPMessage& message) override;
- string SendCustomSynchronousRequest(const HTTPMessage& message) override;
- string SendSynchronousRequest(const string& uri) override;
+ std::string SendCustomSynchronousRequest(const HTTPMessage& message) override;
+ std::string SendSynchronousRequest(const std::string& uri) override;
void Connect() override;
void ResetConnection() override;
void Disconnect() override;
@@ -111,13 +111,13 @@ class QuicTestClient : public SimpleClient,
bool buffer_body() const override;
void set_buffer_body(bool buffer_body) override;
bool ServerInLameDuckMode() const override;
- const string& response_body() override;
+ const std::string& response_body() override;
bool connected() const override;
// These functions are all unimplemented functions from SimpleClient, and log
// DFATAL if called by users of SimpleClient.
ssize_t SendAndWaitForResponse(const void* buffer, size_t size) override;
void Bind(IPEndPoint* local_address) override;
- string SerializeMessage(const HTTPMessage& message) override;
+ std::string SerializeMessage(const HTTPMessage& message) override;
IPAddressNumber bind_to_address() const override;
void set_bind_to_address(IPAddressNumber address) override;
const IPEndPoint& address() const override;
@@ -143,7 +143,7 @@ class QuicTestClient : public SimpleClient,
// cert_common_name returns the common name value of the server's certificate,
// or the empty string if no certificate was presented.
- const string& cert_common_name() const;
+ const std::string& cert_common_name() const;
// Get the server config map.
QuicTagValueMap GetServerConfig() const;
@@ -178,7 +178,7 @@ class QuicTestClient : public SimpleClient,
bool response_headers_complete_;
BalsaHeaders headers_;
QuicPriority priority_;
- string response_;
+ std::string response_;
uint64 bytes_read_;
uint64 bytes_written_;
// The number of uncompressed HTTP header bytes received.
« no previous file with comments | « net/tools/quic/test_tools/packet_dropping_test_writer.h ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698