summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorVictor Costan <costan@google.com>2020-01-10 10:45:16 -0800
committerVictor Costan <pwnall@chromium.org>2020-01-14 18:31:37 -0800
commit5903e7a1125cacaa1d44367b5b84fe9208e42884 (patch)
tree9e7e7a58c50cc0fe8d261187b026bc68e2e6e7ce /db
parenta0191e5563b7a6c24b39edcbdbff29e602e0acfc (diff)
downloadleveldb-5903e7a1125cacaa1d44367b5b84fe9208e42884.tar.gz
Remove Windows workarounds in some tests.
leveldb::Env::DeleteFile was replaced with leveldb::Env::RemoveFile in all tests. This allows us to remove workarounds for windows.h #defining DeleteFile. PiperOrigin-RevId: 289121105
Diffstat (limited to 'db')
-rw-r--r--db/db_test.cc5
-rw-r--r--db/fault_injection_test.cc5
-rw-r--r--db/recovery_test.cc5
3 files changed, 0 insertions, 15 deletions
diff --git a/db/db_test.cc b/db/db_test.cc
index 2ee6761..8cd90f3 100644
--- a/db/db_test.cc
+++ b/db/db_test.cc
@@ -23,11 +23,6 @@
#include "util/mutexlock.h"
#include "util/testutil.h"
-#if defined(_WIN32) && defined(DeleteFile)
-// See rationale in env.h
-#undef DeleteFile
-#endif
-
namespace leveldb {
static std::string RandomString(Random* rnd, int len) {
diff --git a/db/fault_injection_test.cc b/db/fault_injection_test.cc
index 60e4631..8f2b647 100644
--- a/db/fault_injection_test.cc
+++ b/db/fault_injection_test.cc
@@ -25,11 +25,6 @@
#include "util/mutexlock.h"
#include "util/testutil.h"
-#if defined(_WIN32) && defined(DeleteFile)
-// See rationale in env.h
-#undef DeleteFile
-#endif
-
namespace leveldb {
static const int kValueSize = 1000;
diff --git a/db/recovery_test.cc b/db/recovery_test.cc
index 04b39ae..e5cc916 100644
--- a/db/recovery_test.cc
+++ b/db/recovery_test.cc
@@ -13,11 +13,6 @@
#include "util/logging.h"
#include "util/testutil.h"
-#if defined(_WIN32) && defined(DeleteFile)
-// See rationale in env.h
-#undef DeleteFile
-#endif
-
namespace leveldb {
class RecoveryTest : public testing::Test {