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

Unified Diff: content/browser/indexed_db/indexed_db_dispatcher_host_unittest.cc

Issue 2930183002: Let IndexedDBContextImpl create its own task runner (Closed)
Patch Set: Use ScopedTaskEnvironment for most tests Created 3 years, 6 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/indexed_db/indexed_db_dispatcher_host_unittest.cc
diff --git a/content/browser/indexed_db/indexed_db_dispatcher_host_unittest.cc b/content/browser/indexed_db/indexed_db_dispatcher_host_unittest.cc
index a73e010483e2c2093e5e66c9605207db1aeccded..9f27b8bb9199c40d992c039b0a5af5495d9f273c 100644
--- a/content/browser/indexed_db/indexed_db_dispatcher_host_unittest.cc
+++ b/content/browser/indexed_db/indexed_db_dispatcher_host_unittest.cc
@@ -148,8 +148,7 @@ class IndexedDBDispatcherHostTest : public testing::Test {
context_impl_(
new IndexedDBContextImpl(CreateAndReturnTempDir(&temp_dir_),
special_storage_policy_.get(),
- quota_manager_proxy_.get(),
- idb_task_runner_.get())),
+ quota_manager_proxy_.get())),
blob_storage_(ChromeBlobStorageContext::GetFor(&browser_context_)),
host_(new IndexedDBDispatcherHost(kFakeProcessId,
request_context_getter_.get(),
@@ -159,6 +158,7 @@ class IndexedDBDispatcherHostTest : public testing::Test {
kTemporaryQuota);
quota_manager_->SetQuota(GURL(kOrigin), storage::kStorageTypeTemporary,
kPersistantQuota);
+ context_impl_->SetTaskRunnerForTesting(idb_task_runner_);
}
void TearDown() override {

Powered by Google App Engine
This is Rietveld 408576698