OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/browser/indexed_db/indexed_db_database.h" | 5 #include "content/browser/indexed_db/indexed_db_database.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 index_keys); | 393 index_keys); |
394 | 394 |
395 // Deletion is asynchronous. | 395 // Deletion is asynchronous. |
396 db_->DeleteObjectStore(transaction_->id(), | 396 db_->DeleteObjectStore(transaction_->id(), |
397 store_id); | 397 store_id); |
398 EXPECT_EQ(1ULL, db_->metadata().object_stores.size()); | 398 EXPECT_EQ(1ULL, db_->metadata().object_stores.size()); |
399 | 399 |
400 // This will execute the Put then Delete. | 400 // This will execute the Put then Delete. |
401 RunPostedTasks(); | 401 RunPostedTasks(); |
402 EXPECT_EQ(0ULL, db_->metadata().object_stores.size()); | 402 EXPECT_EQ(0ULL, db_->metadata().object_stores.size()); |
| 403 |
| 404 transaction_->Commit(); // Cleans up the object hierarchy. |
403 } | 405 } |
404 | 406 |
405 } // namespace content | 407 } // namespace content |
OLD | NEW |