Index: content/browser/cache_storage/cache_storage_cache_unittest.cc |
diff --git a/content/browser/cache_storage/cache_storage_cache_unittest.cc b/content/browser/cache_storage/cache_storage_cache_unittest.cc |
index 57350d2cc27a2b064de51fa0a8c963a0267e9923..52956ec6301b7acf57f27cef248a32474d1c93d4 100644 |
--- a/content/browser/cache_storage/cache_storage_cache_unittest.cc |
+++ b/content/browser/cache_storage/cache_storage_cache_unittest.cc |
@@ -217,12 +217,12 @@ class CacheStorageCacheTest : public testing::Test { |
ServiceWorkerHeaderMap headers; |
headers.insert(std::make_pair("a", "a")); |
headers.insert(std::make_pair("b", "b")); |
- body_request_ = |
- ServiceWorkerFetchRequest(GURL("http://example.com/body.html"), "GET", |
- headers, Referrer(), false); |
- no_body_request_ = |
- ServiceWorkerFetchRequest(GURL("http://example.com/no_body.html"), |
- "GET", headers, Referrer(), false); |
+ body_request_ = ServiceWorkerFetchRequest( |
+ GURL("http://example.com/body.html"), "GET", headers, Referrer(), false, |
+ ServiceWorkerClientInfo()); |
+ no_body_request_ = ServiceWorkerFetchRequest( |
+ GURL("http://example.com/no_body.html"), "GET", headers, Referrer(), |
+ false, ServiceWorkerClientInfo()); |
std::string expected_response; |
for (int i = 0; i < 100; ++i) |
@@ -249,7 +249,7 @@ class CacheStorageCacheTest : public testing::Test { |
const ServiceWorkerFetchRequest& request) { |
return make_scoped_ptr(new ServiceWorkerFetchRequest( |
request.url, request.method, request.headers, request.referrer, |
- request.is_reload)); |
+ request.is_reload, request.client)); |
} |
CacheStorageError BatchOperation( |
@@ -751,8 +751,8 @@ TEST_F(CacheStorageCacheTest, CaselessServiceWorkerFetchRequestHeaders) { |
// CacheStorageCache depends on ServiceWorkerFetchRequest having caseless |
// headers so that it can quickly lookup vary headers. |
ServiceWorkerFetchRequest request(GURL("http://www.example.com"), "GET", |
- ServiceWorkerHeaderMap(), Referrer(), |
- false); |
+ ServiceWorkerHeaderMap(), Referrer(), false, |
+ ServiceWorkerClientInfo()); |
request.headers["content-type"] = "foo"; |
request.headers["Content-Type"] = "bar"; |
EXPECT_EQ("bar", request.headers["content-type"]); |