summaryrefslogtreecommitdiffstats
path: root/content/browser/indexed_db/indexed_db_database_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/indexed_db/indexed_db_database_unittest.cc')
-rw-r--r--content/browser/indexed_db/indexed_db_database_unittest.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/content/browser/indexed_db/indexed_db_database_unittest.cc b/content/browser/indexed_db/indexed_db_database_unittest.cc
index a25bb2d..80609e9 100644
--- a/content/browser/indexed_db/indexed_db_database_unittest.cc
+++ b/content/browser/indexed_db/indexed_db_database_unittest.cc
@@ -102,11 +102,14 @@ TEST(IndexedDBDatabaseTest, ConnectionLifecycle) {
EXPECT_FALSE(backing_store->HasOneRef()); // local and connection
- db->Close(request1->connection(), true /* forced */);
+ request1->connection()->ForceClose();
+ EXPECT_FALSE(request1->connection()->IsConnected());
EXPECT_FALSE(backing_store->HasOneRef()); // local and connection
- db->Close(request2->connection(), true /* forced */);
+ request2->connection()->ForceClose();
+ EXPECT_FALSE(request2->connection()->IsConnected());
+
EXPECT_TRUE(backing_store->HasOneRef());
EXPECT_FALSE(db->BackingStore());