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

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

Issue 2740453006: Add QuicStringPiece which is actually StringPiece. (Closed)
Patch Set: fix compile error and rebase Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/quic/stateless_rejector_test.cc ('k') | net/tools/quic/test_tools/quic_test_client.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 90610228e0e4b60a10b54265c12bcbf7fbdf3879..5080320b88c9ead7852cb9019711ddd432ae0560 100644
--- a/net/tools/quic/test_tools/quic_test_client.h
+++ b/net/tools/quic/test_tools/quic_test_client.h
@@ -14,11 +14,10 @@
#include "net/quic/core/quic_framer.h"
#include "net/quic/core/quic_packet_creator.h"
#include "net/quic/core/quic_packets.h"
+#include "net/quic/platform/api/quic_string_piece.h"
#include "net/tools/quic/quic_client.h"
#include "testing/gmock/include/gmock/gmock.h"
-using base::StringPiece;
-
namespace net {
class ProofVerifier;
@@ -117,12 +116,12 @@ class QuicTestClient : public QuicSpdyStream::Visitor,
const std::vector<std::string>& url_list);
// Sends a request containing |headers| and |body| and returns the number of
// bytes sent (the size of the serialized request headers and body).
- ssize_t SendMessage(const SpdyHeaderBlock& headers, base::StringPiece body);
+ ssize_t SendMessage(const SpdyHeaderBlock& headers, QuicStringPiece body);
// Sends a request containing |headers| and |body| with the fin bit set to
// |fin| and returns the number of bytes sent (the size of the serialized
// request headers and body).
ssize_t SendMessage(const SpdyHeaderBlock& headers,
- base::StringPiece body,
+ QuicStringPiece body,
bool fin);
// Sends a request containing |headers| and |body|, waits for the response,
// and returns the response body.
@@ -208,7 +207,7 @@ class QuicTestClient : public QuicSpdyStream::Visitor,
// null, only the body will be sent on the stream.
ssize_t GetOrCreateStreamAndSendRequest(
const SpdyHeaderBlock* headers,
- base::StringPiece body,
+ QuicStringPiece body,
bool fin,
QuicReferenceCountedPointer<QuicAckListenerInterface> ack_listener);
@@ -271,7 +270,7 @@ class QuicTestClient : public QuicSpdyStream::Visitor,
public:
TestClientDataToResend(
std::unique_ptr<SpdyHeaderBlock> headers,
- base::StringPiece body,
+ QuicStringPiece body,
bool fin,
QuicTestClient* test_client,
QuicReferenceCountedPointer<QuicAckListenerInterface> ack_listener);
« no previous file with comments | « net/tools/quic/stateless_rejector_test.cc ('k') | net/tools/quic/test_tools/quic_test_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698