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

Unified Diff: chrome/browser/extensions/extension_service_unittest.cc

Issue 7692016: Delete indexedDBs from the cookie tree ui. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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: chrome/browser/extensions/extension_service_unittest.cc
===================================================================
--- chrome/browser/extensions/extension_service_unittest.cc (revision 97928)
+++ chrome/browser/extensions/extension_service_unittest.cc (working copy)
@@ -2757,14 +2757,13 @@
EXPECT_EQ(0, file_util::WriteFile(lso_path, NULL, 0));
EXPECT_TRUE(file_util::PathExists(lso_path));
- // Create indexed db. Again, it is enough to only simulate this by creating
- // the file on the disk.
+ // Create indexed db. Similarly, it is enough to only simulate this by
+ // creating the directory on the disk.
IndexedDBContext* idb_context =
profile_->GetWebKitContext()->indexed_db_context();
FilePath idb_path = idb_context->GetIndexedDBFilePath(origin_id);
- EXPECT_TRUE(file_util::CreateDirectory(idb_path.DirName()));
- EXPECT_EQ(0, file_util::WriteFile(idb_path, NULL, 0));
- EXPECT_TRUE(file_util::PathExists(idb_path));
+ EXPECT_TRUE(file_util::CreateDirectory(idb_path));
+ EXPECT_TRUE(file_util::DirectoryExists(idb_path));
// Uninstall the extension.
service_->UninstallExtension(good_crx, false, NULL);
@@ -2787,7 +2786,7 @@
EXPECT_FALSE(file_util::PathExists(lso_path));
// Check if the indexed db has disappeared too.
- EXPECT_FALSE(file_util::PathExists(idb_path));
+ EXPECT_FALSE(file_util::DirectoryExists(idb_path));
}
// Tests loading single extensions (like --load-extension)
« no previous file with comments | « chrome/browser/cookies_tree_model_unittest.cc ('k') | chrome/browser/mock_browsing_data_indexed_db_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698