Index: content/browser/indexed_db/indexed_db_transaction_unittest.cc |
diff --git a/content/browser/indexed_db/indexed_db_transaction_unittest.cc b/content/browser/indexed_db/indexed_db_transaction_unittest.cc |
index cf35852fa1837af047e35051a65c20c14bb6966b..3bbe85ac087f4f06f218eae0652d82297f1e7180 100644 |
--- a/content/browser/indexed_db/indexed_db_transaction_unittest.cc |
+++ b/content/browser/indexed_db/indexed_db_transaction_unittest.cc |
@@ -59,7 +59,7 @@ class IndexedDBTransactionTestMode : public IndexedDBTransactionTest, |
TEST_F(IndexedDBTransactionTest, Timeout) { |
const int64 id = 0; |
const std::set<int64> scope; |
- const bool commit_success = true; |
+ const leveldb::Status commit_success = leveldb::Status::OK(); |
scoped_refptr<IndexedDBTransaction> transaction = new IndexedDBTransaction( |
id, |
new MockIndexedDBDatabaseCallbacks(), |
@@ -103,7 +103,7 @@ TEST_F(IndexedDBTransactionTest, Timeout) { |
TEST_F(IndexedDBTransactionTest, NoTimeoutReadOnly) { |
const int64 id = 0; |
const std::set<int64> scope; |
- const bool commit_success = true; |
+ const leveldb::Status commit_success = leveldb::Status::OK(); |
scoped_refptr<IndexedDBTransaction> transaction = new IndexedDBTransaction( |
id, |
new MockIndexedDBDatabaseCallbacks(), |
@@ -150,14 +150,14 @@ class AbortObserver { |
TEST_P(IndexedDBTransactionTestMode, ScheduleNormalTask) { |
const int64 id = 0; |
const std::set<int64> scope; |
- const bool commit_failure = false; |
+ const leveldb::Status commit_success = leveldb::Status::OK(); |
scoped_refptr<IndexedDBTransaction> transaction = new IndexedDBTransaction( |
id, |
new MockIndexedDBDatabaseCallbacks(), |
scope, |
GetParam(), |
db_, |
- new IndexedDBFakeBackingStore::FakeTransaction(commit_failure)); |
+ new IndexedDBFakeBackingStore::FakeTransaction(commit_success)); |
EXPECT_FALSE(transaction->HasPendingTasks()); |
EXPECT_TRUE(transaction->IsTaskQueueEmpty()); |
@@ -212,7 +212,7 @@ TEST_P(IndexedDBTransactionTestMode, ScheduleNormalTask) { |
TEST_F(IndexedDBTransactionTest, SchedulePreemptiveTask) { |
const int64 id = 0; |
const std::set<int64> scope; |
- const bool commit_failure = false; |
+ const leveldb::Status commit_failure = leveldb::Status::Corruption("Ouch."); |
scoped_refptr<IndexedDBTransaction> transaction = new IndexedDBTransaction( |
id, |
new MockIndexedDBDatabaseCallbacks(), |
@@ -273,7 +273,7 @@ TEST_F(IndexedDBTransactionTest, SchedulePreemptiveTask) { |
TEST_P(IndexedDBTransactionTestMode, AbortTasks) { |
const int64 id = 0; |
const std::set<int64> scope; |
- const bool commit_failure = false; |
+ const leveldb::Status commit_failure = leveldb::Status::Corruption("Ouch."); |
scoped_refptr<IndexedDBTransaction> transaction = new IndexedDBTransaction( |
id, |
new MockIndexedDBDatabaseCallbacks(), |
@@ -303,7 +303,7 @@ TEST_P(IndexedDBTransactionTestMode, AbortTasks) { |
TEST_P(IndexedDBTransactionTestMode, AbortPreemptive) { |
const int64 id = 0; |
const std::set<int64> scope; |
- const bool commit_success = true; |
+ const leveldb::Status commit_success = leveldb::Status::OK(); |
scoped_refptr<IndexedDBTransaction> transaction = new IndexedDBTransaction( |
id, |
new MockIndexedDBDatabaseCallbacks(), |