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

Unified Diff: net/quic/chromium/quic_end_to_end_unittest.cc

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/quic/chromium/quic_connection_logger.cc ('k') | net/quic/chromium/quic_http_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/chromium/quic_end_to_end_unittest.cc
diff --git a/net/quic/chromium/quic_end_to_end_unittest.cc b/net/quic/chromium/quic_end_to_end_unittest.cc
index 30e89f18ee55f6af47875f218d59405f881012a4..2be21032ab0408ba10ec84c66ec7b3603f264f65 100644
--- a/net/quic/chromium/quic_end_to_end_unittest.cc
+++ b/net/quic/chromium/quic_end_to_end_unittest.cc
@@ -31,6 +31,7 @@
#include "net/http/transport_security_state.h"
#include "net/log/net_log_with_source.h"
#include "net/proxy/proxy_service.h"
+#include "net/quic/platform/api/quic_string_piece.h"
#include "net/quic/test_tools/crypto_test_utils.h"
#include "net/quic/test_tools/quic_test_utils.h"
#include "net/ssl/default_channel_id_store.h"
@@ -44,8 +45,6 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
-using base::StringPiece;
-
namespace net {
using test::IsOk;
@@ -189,10 +188,10 @@ class QuicEndToEndTest : public ::testing::TestWithParam<TestParams> {
// Adds an entry to the cache used by the QUIC server to serve
// responses.
- void AddToCache(StringPiece path,
+ void AddToCache(QuicStringPiece path,
int response_code,
- StringPiece response_detail,
- StringPiece body) {
+ QuicStringPiece response_detail,
+ QuicStringPiece body) {
response_cache_.AddSimpleResponse("test.example.com", path, response_code,
body);
}
« no previous file with comments | « net/quic/chromium/quic_connection_logger.cc ('k') | net/quic/chromium/quic_http_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698