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

Unified Diff: content/browser/indexed_db/indexed_db_database_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_database_unittest.cc
diff --git a/content/browser/indexed_db/indexed_db_database_unittest.cc b/content/browser/indexed_db/indexed_db_database_unittest.cc
index 30581c84caebdb4f81ad2a2b6ebde1379abd26d5..9f3d0298e8b8611e5578804579506f8dfd44639d 100644
--- a/content/browser/indexed_db/indexed_db_database_unittest.cc
+++ b/content/browser/indexed_db/indexed_db_database_unittest.cc
@@ -220,7 +220,7 @@ void DummyOperation(IndexedDBTransaction* transaction) {
class IndexedDBDatabaseOperationTest : public testing::Test {
public:
- IndexedDBDatabaseOperationTest() : commit_success_(true) {}
+ IndexedDBDatabaseOperationTest() : commit_success_(leveldb::Status::OK()) {}
virtual void SetUp() {
backing_store_ = new IndexedDBFakeBackingStore();
@@ -268,7 +268,7 @@ class IndexedDBDatabaseOperationTest : public testing::Test {
scoped_refptr<MockIndexedDBDatabaseCallbacks> callbacks_;
scoped_refptr<IndexedDBTransaction> transaction_;
- bool commit_success_;
+ leveldb::Status commit_success_;
private:
base::MessageLoop message_loop_;
@@ -321,7 +321,9 @@ TEST_F(IndexedDBDatabaseOperationTest, CreateIndex) {
class IndexedDBDatabaseOperationAbortTest
: public IndexedDBDatabaseOperationTest {
public:
- IndexedDBDatabaseOperationAbortTest() { commit_success_ = false; }
+ IndexedDBDatabaseOperationAbortTest() {
+ commit_success_ = leveldb::Status::NotFound("Bummer.");
+ }
};
TEST_F(IndexedDBDatabaseOperationAbortTest, CreateObjectStore) {
« no previous file with comments | « content/browser/indexed_db/indexed_db_database.cc ('k') | content/browser/indexed_db/indexed_db_fake_backing_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698