Add base for menu parsing integration tests

This commit is contained in:
Jan
2021-12-11 21:40:13 +01:00
parent 899449145c
commit c683c210f5
5 changed files with 222 additions and 0 deletions

View File

@ -0,0 +1,16 @@
#pragma once
#include <map>
#include "SearchPath/ISearchPath.h"
class MockSearchPath final : public ISearchPath
{
std::map<std::string, std::string> m_file_data_map;
public:
void AddFileData(std::string fileName, std::string fileData);
SearchPathOpenFile Open(const std::string& fileName) override;
std::string GetPath() override;
void Find(const SearchPathSearchOptions& options, const std::function<void(const std::string&)>& callback) override;
};