summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/http/http_cache_unittest.cc10
-rw-r--r--net/http/http_transaction_unittest.cc4
2 files changed, 7 insertions, 7 deletions
diff --git a/net/http/http_cache_unittest.cc b/net/http/http_cache_unittest.cc
index 9026599..d692c51 100644
--- a/net/http/http_cache_unittest.cc
+++ b/net/http/http_cache_unittest.cc
@@ -3791,7 +3791,7 @@ TEST(HttpCache, DoomOnDestruction3) {
"Last-Modified: Wed, 28 Nov 2007 00:40:09 GMT\n"
"Content-Length: 22\n"
"Accept-Ranges: none\n"
- "Etag: foopy\n";
+ "Etag: \"foopy\"\n";
AddMockTransaction(&transaction);
MockHttpRequest request(transaction);
@@ -3834,7 +3834,7 @@ TEST(HttpCache, SetTruncatedFlag) {
transaction.response_headers =
"Last-Modified: Wed, 28 Nov 2007 00:40:09 GMT\n"
"Content-Length: 22\n"
- "Etag: foopy\n";
+ "Etag: \"foopy\"\n";
AddMockTransaction(&transaction);
MockHttpRequest request(transaction);
@@ -3894,7 +3894,7 @@ TEST(HttpCache, DontSetTruncatedFlag) {
transaction.response_headers =
"Last-Modified: Wed, 28 Nov 2007 00:40:09 GMT\n"
"Content-Length: 22\n"
- "Etag: foopy\n";
+ "Etag: \"foopy\"\n";
AddMockTransaction(&transaction);
MockHttpRequest request(transaction);
@@ -4821,7 +4821,7 @@ TEST(HttpCache, StopCachingSavesEntry) {
AddMockTransaction(&mock_transaction);
mock_transaction.response_headers = "Cache-Control: max-age=10000\n"
"Content-Length: 42\n"
- "Etag: foo\n";
+ "Etag: \"foo\"\n";
rv = trans->Start(&request, callback.callback(), net::BoundNetLog());
EXPECT_EQ(net::OK, callback.GetResult(rv));
@@ -4936,7 +4936,7 @@ TEST(HttpCache, TruncatedByContentLength2) {
AddMockTransaction(&transaction);
transaction.response_headers = "Cache-Control: max-age=10000\n"
"Content-Length: 100\n"
- "Etag: foo\n";
+ "Etag: \"foo\"\n";
RunTransactionTest(cache.http_cache(), transaction);
RemoveMockTransaction(&transaction);
diff --git a/net/http/http_transaction_unittest.cc b/net/http/http_transaction_unittest.cc
index d3854d3..9c09c42 100644
--- a/net/http/http_transaction_unittest.cc
+++ b/net/http/http_transaction_unittest.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -80,7 +80,7 @@ const MockTransaction kETagGET_Transaction = {
net::LOAD_NORMAL,
"HTTP/1.1 200 OK",
"Cache-Control: max-age=10000\n"
- "Etag: foopy\n",
+ "Etag: \"foopy\"\n",
base::Time(),
"<html><body>Google Blah Blah</body></html>",
TEST_MODE_NORMAL,