mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 14:58:10 -05:00
test: add unit test for IPakCreator
This commit is contained in:
@ -15,6 +15,8 @@ public:
|
||||
|
||||
MockOutputFile();
|
||||
MockOutputFile(std::string name, std::vector<std::uint8_t> data);
|
||||
|
||||
[[nodiscard]] std::string AsString() const;
|
||||
};
|
||||
|
||||
class MockOutputPath final : public IOutputPath
|
||||
@ -23,6 +25,7 @@ public:
|
||||
std::unique_ptr<std::ostream> Open(const std::string& fileName) override;
|
||||
|
||||
[[nodiscard]] const MockOutputFile* GetMockedFile(const std::string& name) const;
|
||||
[[nodiscard]] const std::vector<MockOutputFile>& GetMockedFileList() const;
|
||||
|
||||
private:
|
||||
std::vector<MockOutputFile> m_files;
|
||||
|
Reference in New Issue
Block a user