Index: content/browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc |
diff --git a/content/browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc b/content/browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc |
index 27f72f2b4b5a2407210ab836997a4c66a6e959d7..2b803d0aea353cb448d398dcf57fe5088cea9f63 100644 |
--- a/content/browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc |
+++ b/content/browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc |
@@ -142,8 +142,9 @@ TEST(IndexedDBNonRecoverableIOErrorTest, NuancedCleanupTest) { |
EXPECT_CALL(mock_leveldb_factory, OpenLevelDB(_, _, _, _)).Times(Exactly(4)); |
EXPECT_CALL(mock_leveldb_factory, DestroyLevelDB(_)).Times(Exactly(0)); |
- busted_factory.SetOpenError(MakeIOError( |
- "some filename", "some message", leveldb_env::kNewLogger, ENOSPC)); |
+ busted_factory.SetOpenError(MakeIOError("some filename", "some message", |
+ leveldb_env::kNewLogger, |
+ base::File::FILE_ERROR_NO_SPACE)); |
scoped_refptr<IndexedDBBackingStore> backing_store = |
IndexedDBBackingStore::Open(factory, |
origin, |
@@ -176,8 +177,9 @@ TEST(IndexedDBNonRecoverableIOErrorTest, NuancedCleanupTest) { |
&s); |
ASSERT_TRUE(s.IsIOError()); |
- busted_factory.SetOpenError(MakeIOError( |
- "some filename", "some message", leveldb_env::kNewLogger, EIO)); |
+ busted_factory.SetOpenError(MakeIOError("some filename", "some message", |
+ leveldb_env::kNewLogger, |
+ base::File::FILE_ERROR_IO)); |
scoped_refptr<IndexedDBBackingStore> backing_store3 = |
IndexedDBBackingStore::Open(factory, |
origin, |