| // Copyright 2021 The Chromium OS Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef CRYPTOHOME_FAKE_PLATFORM_FAKE_MOUNT_MAPPING_REDIRECT_FACTORY_H_ |
| #define CRYPTOHOME_FAKE_PLATFORM_FAKE_MOUNT_MAPPING_REDIRECT_FACTORY_H_ |
| |
| #include <base/files/file_path.h> |
| |
| namespace cryptohome { |
| |
| // An interface for generating redirects for FakeMoountMapping. |
| class FakeMountMappingRedirectFactory { |
| public: |
| virtual ~FakeMountMappingRedirectFactory() = default; |
| |
| // Returns a newly created redirect within tmpfs. |
| virtual base::FilePath Create() = 0; |
| }; |
| |
| } // namespace cryptohome |
| |
| #endif // CRYPTOHOME_FAKE_PLATFORM_FAKE_MOUNT_MAPPING_REDIRECT_FACTORY_H_ |