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

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

Issue 710373002: LevelDB: Using base::File for all file I/O (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment for GetDirectoryEntries, using ReadAtCurrentPosNoBestEffort Created 6 years, 1 month 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
« no previous file with comments | « build/secondary/third_party/leveldatabase/BUILD.gn ('k') | third_party/leveldatabase/README.chromium » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « build/secondary/third_party/leveldatabase/BUILD.gn ('k') | third_party/leveldatabase/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698