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

Side by Side Diff: content/browser/cache_storage/cache_storage_manager_unittest.cc

Issue 2703343002: ServiceWorker: Use mojo's data pipe for respondWith(stream) (Closed)
Patch Set: Addressed comments from kinuko and haraken Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/cache_storage/cache_storage_manager.h" 5 #include "content/browser/cache_storage/cache_storage_manager.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 373
374 std::unique_ptr<storage::BlobDataHandle> blob_handle = 374 std::unique_ptr<storage::BlobDataHandle> blob_handle =
375 blob_storage_context_->AddFinishedBlob(blob_data.get()); 375 blob_storage_context_->AddFinishedBlob(blob_data.get());
376 std::unique_ptr<std::vector<GURL>> url_list = 376 std::unique_ptr<std::vector<GURL>> url_list =
377 base::MakeUnique<std::vector<GURL>>(); 377 base::MakeUnique<std::vector<GURL>>();
378 url_list->push_back(request.url); 378 url_list->push_back(request.url);
379 ServiceWorkerResponse response( 379 ServiceWorkerResponse response(
380 std::move(url_list), status_code, "OK", 380 std::move(url_list), status_code, "OK",
381 blink::kWebServiceWorkerResponseTypeDefault, 381 blink::kWebServiceWorkerResponseTypeDefault,
382 base::MakeUnique<ServiceWorkerHeaderMap>(response_headers), 382 base::MakeUnique<ServiceWorkerHeaderMap>(response_headers),
383 blob_handle->uuid(), request.url.spec().size(), GURL(), 383 blob_handle->uuid(), request.url.spec().size(),
384 blink::kWebServiceWorkerResponseErrorUnknown, base::Time(), 384 blink::kWebServiceWorkerResponseErrorUnknown, base::Time(),
385 false /* is_in_cache_storage */, 385 false /* is_in_cache_storage */,
386 std::string() /* cache_storage_cache_name */, 386 std::string() /* cache_storage_cache_name */,
387 base::MakeUnique< 387 base::MakeUnique<
388 ServiceWorkerHeaderList>() /* cors_exposed_header_names */); 388 ServiceWorkerHeaderList>() /* cors_exposed_header_names */);
389 389
390 CacheStorageBatchOperation operation; 390 CacheStorageBatchOperation operation;
391 operation.operation_type = CACHE_STORAGE_CACHE_OPERATION_TYPE_PUT; 391 operation.operation_type = CACHE_STORAGE_CACHE_OPERATION_TYPE_PUT;
392 operation.request = request; 392 operation.request = request;
393 operation.response = response; 393 operation.response = response;
(...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after
1502 1502
1503 INSTANTIATE_TEST_CASE_P(CacheStorageManagerTests, 1503 INSTANTIATE_TEST_CASE_P(CacheStorageManagerTests,
1504 CacheStorageManagerTestP, 1504 CacheStorageManagerTestP,
1505 ::testing::Values(false, true)); 1505 ::testing::Values(false, true));
1506 1506
1507 INSTANTIATE_TEST_CASE_P(CacheStorageQuotaClientTests, 1507 INSTANTIATE_TEST_CASE_P(CacheStorageQuotaClientTests,
1508 CacheStorageQuotaClientTestP, 1508 CacheStorageQuotaClientTestP,
1509 ::testing::Values(false, true)); 1509 ::testing::Values(false, true));
1510 1510
1511 } // namespace content 1511 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698