Kaynağa Gözat

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
baseline
Victor Costan 5 yıl önce
işlemeyi yapan: Victor Costan
ebeveyn
işleme
5903e7a112
6 değiştirilmiş dosya ile 0 ekleme ve 30 silme
  1. +0
    -5
      benchmarks/db_bench.cc
  2. +0
    -5
      db/db_test.cc
  3. +0
    -5
      db/fault_injection_test.cc
  4. +0
    -5
      db/recovery_test.cc
  5. +0
    -5
      helpers/memenv/memenv_test.cc
  6. +0
    -5
      util/env_test.cc

+ 0
- 5
benchmarks/db_bench.cc Dosyayı Görüntüle

@ -18,11 +18,6 @@
#include "util/random.h"
#include "util/testutil.h"
#if defined(_WIN32) && defined(DeleteFile)
// See rationale in env.h
#undef DeleteFile
#endif
// Comma-separated list of operations to run in the specified order
// Actual benchmarks:
// fillseq -- write N values in sequential key order in async mode

+ 0
- 5
db/db_test.cc Dosyayı Görüntüle

@ -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) {

+ 0
- 5
db/fault_injection_test.cc Dosyayı Görüntüle

@ -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;

+ 0
- 5
db/recovery_test.cc Dosyayı Görüntüle

@ -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 {

+ 0
- 5
helpers/memenv/memenv_test.cc Dosyayı Görüntüle

@ -13,11 +13,6 @@
#include "leveldb/env.h"
#include "util/testutil.h"
#if defined(_WIN32) && defined(DeleteFile)
// See rationale in env.h
#undef DeleteFile
#endif
namespace leveldb {
class MemEnvTest : public testing::Test {

+ 0
- 5
util/env_test.cc Dosyayı Görüntüle

@ -12,11 +12,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 kDelayMicros = 100000;

Yükleniyor…
İptal
Kaydet