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

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

Issue 18023022: Blob support for IDB [Chromium] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DeleteRange now seems to work. Created 6 years, 7 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_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(),

Powered by Google App Engine
This is Rietveld 408576698