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

Side by Side Diff: content/browser/service_worker/service_worker_cache_unittest.cc

Issue 549493002: Expose ServiceWorkerCache objects to ServiceWorkerCacheStorageManager clients. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refptr3
Patch Set: Fix after rebase Created 6 years, 3 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/service_worker/service_worker_cache.h" 5 #include "content/browser/service_worker/service_worker_cache.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/message_loop/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 237
238 virtual bool MemoryOnly() { return false; } 238 virtual bool MemoryOnly() { return false; }
239 239
240 protected: 240 protected:
241 TestBrowserContext browser_context_; 241 TestBrowserContext browser_context_;
242 TestBrowserThreadBundle browser_thread_bundle_; 242 TestBrowserThreadBundle browser_thread_bundle_;
243 scoped_ptr<net::URLRequestJobFactoryImpl> url_request_job_factory_; 243 scoped_ptr<net::URLRequestJobFactoryImpl> url_request_job_factory_;
244 storage::BlobStorageContext* blob_storage_context_; 244 storage::BlobStorageContext* blob_storage_context_;
245 245
246 base::ScopedTempDir temp_dir_; 246 base::ScopedTempDir temp_dir_;
247 scoped_ptr<ServiceWorkerCache> cache_; 247 scoped_refptr<ServiceWorkerCache> cache_;
248 248
249 ServiceWorkerFetchRequest body_request_; 249 ServiceWorkerFetchRequest body_request_;
250 ServiceWorkerResponse body_response_; 250 ServiceWorkerResponse body_response_;
251 ServiceWorkerFetchRequest no_body_request_; 251 ServiceWorkerFetchRequest no_body_request_;
252 ServiceWorkerResponse no_body_response_; 252 ServiceWorkerResponse no_body_response_;
253 scoped_ptr<storage::BlobDataHandle> blob_handle_; 253 scoped_ptr<storage::BlobDataHandle> blob_handle_;
254 std::string expected_blob_data_; 254 std::string expected_blob_data_;
255 255
256 ServiceWorkerCache::ErrorType callback_error_; 256 ServiceWorkerCache::ErrorType callback_error_;
257 scoped_ptr<ServiceWorkerResponse> callback_response_; 257 scoped_ptr<ServiceWorkerResponse> callback_response_;
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 ASSERT_TRUE(Delete(body_request_)); 386 ASSERT_TRUE(Delete(body_request_));
387 } 387 }
388 } 388 }
389 #endif // OS_WIN 389 #endif // OS_WIN
390 390
391 INSTANTIATE_TEST_CASE_P(ServiceWorkerCacheTest, 391 INSTANTIATE_TEST_CASE_P(ServiceWorkerCacheTest,
392 ServiceWorkerCacheTestP, 392 ServiceWorkerCacheTestP,
393 ::testing::Values(false, true)); 393 ::testing::Values(false, true));
394 394
395 } // namespace content 395 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698