file_path_watcher_inotify.h 670 B

1234567891011121314151617181920212223
  1. // Copyright 2021 The Chromium 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.
  4. #ifndef BASE_FILES_FILE_PATH_WATCHER_INOTIFY_H_
  5. #define BASE_FILES_FILE_PATH_WATCHER_INOTIFY_H_
  6. #include <stddef.h>
  7. #include "base/base_export.h"
  8. namespace base {
  9. // Overrides max inotify watcher counter for test.
  10. class BASE_EXPORT ScopedMaxNumberOfInotifyWatchesOverrideForTest {
  11. public:
  12. explicit ScopedMaxNumberOfInotifyWatchesOverrideForTest(size_t override_max);
  13. ~ScopedMaxNumberOfInotifyWatchesOverrideForTest();
  14. };
  15. } // namespace base
  16. #endif // BASE_FILES_FILE_PATH_WATCHER_INOTIFY_H_