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

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: More small build fixes. 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 c5f3a13aaceec2b316d3f8a43395e335bae33070..503c19c8ae701283905e0b2a1fb30208ea8ca3c9 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) {

Powered by Google App Engine
This is Rietveld 408576698