/ src / leveldb / util / env_windows_test_helper.h
env_windows_test_helper.h
 1  // Copyright 2018 (c) The LevelDB Authors. All rights reserved.
 2  // Use of this source code is governed by a BSD-style license that can be
 3  // found in the LICENSE file. See the AUTHORS file for names of contributors.
 4  
 5  #ifndef STORAGE_LEVELDB_UTIL_ENV_WINDOWS_TEST_HELPER_H_
 6  #define STORAGE_LEVELDB_UTIL_ENV_WINDOWS_TEST_HELPER_H_
 7  
 8  namespace leveldb {
 9  
10  class EnvWindowsTest;
11  
12  // A helper for the Windows Env to facilitate testing.
13  class EnvWindowsTestHelper {
14   private:
15    friend class CorruptionTest;
16    friend class EnvWindowsTest;
17  
18    // Set the maximum number of read-only files that will be mapped via mmap.
19    // Must be called before creating an Env.
20    static void SetReadOnlyMMapLimit(int limit);
21  };
22  
23  }  // namespace leveldb
24  
25  #endif  // STORAGE_LEVELDB_UTIL_ENV_WINDOWS_TEST_HELPER_H_