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

Unified Diff: net/server/http_server_unittest.cc

Issue 1182183003: Move EndsWith to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/crypto/quic_crypto_client_config.cc ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/server/http_server_unittest.cc
diff --git a/net/server/http_server_unittest.cc b/net/server/http_server_unittest.cc
index 09b6bf4c11f9c2daf57350ab37f4e266ee10a1d5..c76ae63f273121da4ce7978651eb306112e96f8e 100644
--- a/net/server/http_server_unittest.cc
+++ b/net/server/http_server_unittest.cc
@@ -443,7 +443,7 @@ TEST_F(HttpServerTest, Send200) {
std::string response;
ASSERT_TRUE(client.ReadResponse(&response));
ASSERT_TRUE(base::StartsWithASCII(response, "HTTP/1.1 200 OK", true));
- ASSERT_TRUE(EndsWith(response, "Response!", true));
+ ASSERT_TRUE(base::EndsWith(response, "Response!", true));
}
TEST_F(HttpServerTest, SendRaw) {
@@ -592,7 +592,7 @@ TEST_F(HttpServerTest, MultipleRequestsOnSameConnection) {
std::string response1;
ASSERT_TRUE(client.ReadResponse(&response1));
ASSERT_TRUE(base::StartsWithASCII(response1, "HTTP/1.1 200 OK", true));
- ASSERT_TRUE(EndsWith(response1, "Content for /test", true));
+ ASSERT_TRUE(base::EndsWith(response1, "Content for /test", true));
client.Send("GET /test2 HTTP/1.1\r\n\r\n");
ASSERT_TRUE(RunUntilRequestsReceived(2));
@@ -613,7 +613,7 @@ TEST_F(HttpServerTest, MultipleRequestsOnSameConnection) {
std::string response3;
ASSERT_TRUE(client.ReadResponse(&response3));
ASSERT_TRUE(base::StartsWithASCII(response3, "HTTP/1.1 200 OK", true));
- ASSERT_TRUE(EndsWith(response3, "Content for /test3", true));
+ ASSERT_TRUE(base::EndsWith(response3, "Content for /test3", true));
}
class CloseOnConnectHttpServerTest : public HttpServerTest {
« no previous file with comments | « net/quic/crypto/quic_crypto_client_config.cc ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698