test: Replaced DumpParserClient and TestParserClient with TestIntermediateStorage to ease switch to new ParserClient API
This commit is contained in:
@@ -66,6 +66,16 @@ std::shared_ptr<TextAccess> TextAccess::createFromString(const std::string& text
|
||||
return result;
|
||||
}
|
||||
|
||||
std::shared_ptr<TextAccess> TextAccess::createFromLines(const std::vector<std::string>& lines, const FilePath& filePath)
|
||||
{
|
||||
std::shared_ptr<TextAccess> result(new TextAccess());
|
||||
|
||||
result->m_lines = lines;
|
||||
result->m_filePath = filePath;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
TextAccess::~TextAccess()
|
||||
{
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ class TextAccess
|
||||
public:
|
||||
static std::shared_ptr<TextAccess> createFromFile(const FilePath& filePath);
|
||||
static std::shared_ptr<TextAccess> createFromString(const std::string& text, const FilePath& filePath = FilePath());
|
||||
static std::shared_ptr<TextAccess> createFromLines(const std::vector<std::string>& lines, const FilePath& filePath = FilePath());
|
||||
|
||||
virtual ~TextAccess();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user