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

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

Issue 1413563007: Fix ScopedTempDir in content_unittests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fix Created 5 years, 2 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 3d55ac7e63ee68db9b306beaa90e285190619d08..8be121ac160b1eb46b88b5fca6cdc47501bf0340 100644
--- a/content/browser/indexed_db/indexed_db_factory_unittest.cc
+++ b/content/browser/indexed_db/indexed_db_factory_unittest.cc
@@ -196,6 +196,8 @@ TEST_F(IndexedDBFactoryTest, RejectLongOrigins) {
scoped_refptr<IndexedDBBackingStore> diskStore2 =
factory()->TestOpenBackingStore(ok_origin, base_path);
EXPECT_TRUE(diskStore2.get());
+ // We need a manual close or Windows can't delete the temp directory.
+ factory()->TestCloseBackingStore(diskStore2.get());
}
class DiskFullFactory : public IndexedDBFactoryImpl {

Powered by Google App Engine
This is Rietveld 408576698