Change instances of s.IsCorruption() to leveldb_env::IsCorruption(s).
LevelDB sometimes returns Status::InvalidArgument() when it encounters corruption. But LevelDB doesn't provide a Status::IsInvalidArgument() accessor so we need to indirectly detect it. This patch revealed that IndexedDBDatabaseOperationTest.CreatePutDelete had been passing by accident. In order to make it continue to pass, this patch adds a method to IndexedDBFakeBackingStore. BUG=322707 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273757 Review URL: https://codereview.chromium.org/303073002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274066 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment