summaryrefslogtreecommitdiff
path: root/util/env_windows_test_helper.h
diff options
context:
space:
mode:
authorcmumford <cmumford@google.com>2019-03-19 17:30:42 -0700
committerVictor Costan <pwnall@chromium.org>2019-03-20 13:57:03 -0700
commitea49b27d062c4bc998616cef7944f7f9088a327d (patch)
tree3616eb24ed7f65461ccc7c5675bad4028836c650 /util/env_windows_test_helper.h
parentce399ac28af7023b1aff0ede4986cb6d89b3c0b5 (diff)
downloadleveldb-ea49b27d062c4bc998616cef7944f7f9088a327d.tar.gz
Switch corruption_test to use InMemEnv.
This change switches corruption_test, which previously used direct file I/O to corrupt table files for open databases, to use InMemEnv. Using an Env eliminates some platform dependencies thus simplifying the tests. Also removed EnvWindowsTestHelper::RelaxFilePermissions(). This was only added because the Windows Env opens files for exclusive access. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=239305329
Diffstat (limited to 'util/env_windows_test_helper.h')
-rw-r--r--util/env_windows_test_helper.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/util/env_windows_test_helper.h b/util/env_windows_test_helper.h
index 5ffbe44..e6f6020 100644
--- a/util/env_windows_test_helper.h
+++ b/util/env_windows_test_helper.h
@@ -18,11 +18,6 @@ class EnvWindowsTestHelper {
// Set the maximum number of read-only files that will be mapped via mmap.
// Must be called before creating an Env.
static void SetReadOnlyMMapLimit(int limit);
-
- // Relax file permissions for tests. This results in most files being opened
- // with read-write permissions. This is helpful for corruption tests that
- // need to corrupt the database files for open databases.
- static void RelaxFilePermissions();
};
} // namespace leveldb