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 8b0d35d5c7a341e2a468c8a10192277c319883ad..a3d036312e86a74c456c8b237ea59222493f0864 100644 |
--- a/content/browser/indexed_db/indexed_db_browsertest.cc |
+++ b/content/browser/indexed_db/indexed_db_browsertest.cc |
@@ -34,6 +34,7 @@ |
#include "net/test/embedded_test_server/embedded_test_server.h" |
#include "net/test/embedded_test_server/http_request.h" |
#include "net/test/embedded_test_server/http_response.h" |
+#include "storage/browser/blob/blob_storage_context.h" |
#include "storage/browser/database/database_util.h" |
#include "storage/browser/quota/quota_manager.h" |
@@ -404,6 +405,14 @@ IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, CanDeleteWhenOverQuotaTest) { |
SimpleTest(GetTestUrl("indexeddb", "delete_over_quota.html")); |
} |
+IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithGCExposed, BlobDidAck) { |
+ SimpleTest(GetTestUrl("indexeddb", "blob_did_ack.html")); |
+ content::ChromeBlobStorageContext* blob_context = |
+ ChromeBlobStorageContext::GetFor( |
+ shell()->web_contents()->GetBrowserContext()); |
+ EXPECT_EQ(0UL, blob_context->context()->blob_count()); |
+} |
+ |
IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, BlobsCountAgainstQuota) { |
SimpleTest(GetTestUrl("indexeddb", "blobs_use_quota.html")); |
} |