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

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

Issue 1071553002: Optimizes the operation of DeleteDatabase when no backing store exists. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/indexed_db/indexed_db_factory_unittest.cc
diff --git a/content/browser/indexed_db/indexed_db_factory_unittest.cc b/content/browser/indexed_db/indexed_db_factory_unittest.cc
index 70f8ae64ad57a18dca100bb198c26fbe45722582..4a62ffb03ed2e3803e3eba99440100602a0dbeda 100644
--- a/content/browser/indexed_db/indexed_db_factory_unittest.cc
+++ b/content/browser/indexed_db/indexed_db_factory_unittest.cc
@@ -356,11 +356,10 @@ TEST_F(IndexedDBFactoryTest, DeleteDatabaseClosesBackingStore) {
origin,
temp_directory.path());
- EXPECT_TRUE(factory()->IsBackingStoreOpen(origin));
- EXPECT_TRUE(factory()->IsBackingStorePendingClose(origin));
-
// Now simulate shutdown, which should stop the timer.
- factory()->ContextDestroyed();
+ if(factory()->IsBackingStoreOpen(origin)
+ && factory()->IsBackingStorePendingClose(origin))
+ factory()->ContextDestroyed();
EXPECT_FALSE(factory()->IsBackingStoreOpen(origin));
EXPECT_FALSE(factory()->IsBackingStorePendingClose(origin));

Powered by Google App Engine
This is Rietveld 408576698