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

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: Merged out--bot failed due to staleness. 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 74f402919324f45c0efc283b73e6b7be564b74b0..c6a1244d4dc9717107de1264139c264ed7648aae 100644
--- a/content/browser/indexed_db/indexed_db_transaction_unittest.cc
+++ b/content/browser/indexed_db/indexed_db_transaction_unittest.cc
@@ -79,7 +79,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(),
@@ -123,7 +123,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(),
@@ -155,14 +155,14 @@ TEST_F(IndexedDBTransactionTest, NoTimeoutReadOnly) {
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());
@@ -217,7 +217,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(),
@@ -278,7 +278,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(),
@@ -308,7 +308,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(),
« no previous file with comments | « content/browser/indexed_db/indexed_db_transaction.cc ('k') | content/browser/indexed_db/leveldb/leveldb_comparator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698