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