Replace QuicString with std::string, pass 1
This replaces QuicString with std::string in all of the "QUIC proper". I will
delete QuicString once all code using it is gone.
gfe-relnote: n/a (no functional change)
PiperOrigin-RevId: 237872023
Change-Id: I82de62c9855516b15039734d05155917e68ff4ee
diff --git a/quic/tools/quic_url_test.cc b/quic/tools/quic_url_test.cc
index 384dc2a..3af0be7 100644
--- a/quic/tools/quic_url_test.cc
+++ b/quic/tools/quic_url_test.cc
@@ -16,7 +16,7 @@
TEST_F(QuicUrlTest, Basic) {
// No scheme specified.
- QuicString url_str = "www.example.com";
+ std::string url_str = "www.example.com";
QuicUrl url(url_str);
EXPECT_FALSE(url.IsValid());
@@ -54,7 +54,7 @@
TEST_F(QuicUrlTest, DefaultScheme) {
// Default scheme to HTTP.
- QuicString url_str = "www.example.com";
+ std::string url_str = "www.example.com";
QuicUrl url(url_str, "http");
EXPECT_EQ("http://www.example.com/", url.ToString());
EXPECT_EQ("http", url.scheme());
@@ -73,7 +73,7 @@
}
TEST_F(QuicUrlTest, IsValid) {
- QuicString url_str =
+ std::string url_str =
"ftp://www.example.com:12345/path/to/resource?a=1&campaign=2";
EXPECT_TRUE(QuicUrl(url_str).IsValid());
@@ -86,7 +86,7 @@
EXPECT_FALSE(QuicUrl(url_str).IsValid());
// Host name too long.
- QuicString host(1024, 'a');
+ std::string host(1024, 'a');
url_str = "https://" + host;
EXPECT_FALSE(QuicUrl(url_str).IsValid());
@@ -96,7 +96,7 @@
}
TEST_F(QuicUrlTest, HostPort) {
- QuicString url_str = "http://www.example.com/";
+ std::string url_str = "http://www.example.com/";
QuicUrl url(url_str);
EXPECT_EQ("www.example.com", url.HostPort());
EXPECT_EQ("www.example.com", url.host());
@@ -134,7 +134,7 @@
}
TEST_F(QuicUrlTest, PathParamsQuery) {
- QuicString url_str =
+ std::string url_str =
"https://www.example.com:12345/path/to/resource?a=1&campaign=2";
QuicUrl url(url_str);
EXPECT_EQ("/path/to/resource?a=1&campaign=2", url.PathParamsQuery());