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

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

Issue 932143003: IndexedDB: Report QuotaExceededError when commit fails due to disk full (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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_browsertest.cc
diff --git a/content/browser/indexed_db/indexed_db_browsertest.cc b/content/browser/indexed_db/indexed_db_browsertest.cc
index e2b419aaae1fbd4a4e43929fbe929390bc97ed30..962d8de0fc9753197b984a16b615cb1ee6d9e020 100644
--- a/content/browser/indexed_db/indexed_db_browsertest.cc
+++ b/content/browser/indexed_db/indexed_db_browsertest.cc
@@ -441,6 +441,14 @@ IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, DeleteForOriginDeletesBlobs) {
EXPECT_EQ(0, RequestDiskUsage());
}
+IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, DiskFullOnCommit) {
+ const int instance_num = 7;
jsbell 2015/02/19 19:05:44 I want to document why this is 7. The test preambl
jsbell 2015/02/19 21:26:26 Done in latest PS. Also filed crbug.com/460236 to
+ const int call_num = 1;
+ FailOperation(FAIL_CLASS_LEVELDB_TRANSACTION, FAIL_METHOD_COMMIT_DISK_FULL,
+ instance_num, call_num);
+ SimpleTest(GetTestUrl("indexeddb", "disk_full_on_commit.html"));
+}
+
namespace {
static void CompactIndexedDBBackingStore(

Powered by Google App Engine
This is Rietveld 408576698