winfsp unit tests and fixes

This commit is contained in:
2024-11-07 14:06:39 -06:00
parent 489d9b1960
commit c14b637536
7 changed files with 119 additions and 94 deletions

View File

@@ -106,7 +106,9 @@ public:
[[nodiscard]] virtual auto is_write_supported() const -> bool = 0;
virtual void remove(std::uint64_t handle, bool noQueue = false) = 0;
virtual void remove(std::uint64_t handle) = 0;
virtual void remove_all() = 0;
};
} // namespace repertory

View File

@@ -107,7 +107,9 @@ public:
native_operation_callback callback)
-> api_error override;
void remove(std::uint64_t handle, bool noQueue = false) override;
void remove(std::uint64_t handle) override;
void remove_all() override;
[[nodiscard]] auto read(std::size_t read_size, std::uint64_t read_offset,
data_buffer &data) -> api_error override;

View File

@@ -185,7 +185,9 @@ public:
[[nodiscard]] auto is_modified() const -> bool override;
void remove(std::uint64_t handle, bool noQueue = false) override;
void remove(std::uint64_t handle) override;
void remove_all() override;
void set_api_path(const std::string &api_path) override;
};