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

Unified Diff: content/browser/cache_storage/cache_storage_cache_unittest.cc

Issue 1108273002: Add Client Attribute to FetchEvent- Chromium Side. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
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"]);
« no previous file with comments | « content/browser/cache_storage/cache_storage_cache.cc ('k') | content/browser/cache_storage/cache_storage_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698