summaryrefslogtreecommitdiff
path: root/util/env_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'util/env_test.cc')
-rw-r--r--util/env_test.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/util/env_test.cc b/util/env_test.cc
index 4bdb89b..e5c30fe 100644
--- a/util/env_test.cc
+++ b/util/env_test.cc
@@ -180,11 +180,21 @@ TEST_F(EnvTest, TestOpenNonExistentFile) {
RandomAccessFile* random_access_file;
Status status =
env_->NewRandomAccessFile(non_existent_file, &random_access_file);
+#if defined(LEVELDB_PLATFORM_CHROMIUM)
+ // TODO(crbug.com/760362): See comment in MakeIOError() from env_chromium.cc.
+ ASSERT_TRUE(status.IsIOError());
+#else
ASSERT_TRUE(status.IsNotFound());
+#endif // defined(LEVELDB_PLATFORM_CHROMIUM)
SequentialFile* sequential_file;
status = env_->NewSequentialFile(non_existent_file, &sequential_file);
+#if defined(LEVELDB_PLATFORM_CHROMIUM)
+ // TODO(crbug.com/760362): See comment in MakeIOError() from env_chromium.cc.
+ ASSERT_TRUE(status.IsIOError());
+#else
ASSERT_TRUE(status.IsNotFound());
+#endif // defined(LEVELDB_PLATFORM_CHROMIUM)
}
TEST_F(EnvTest, ReopenWritableFile) {