test: Replaced DumpParserClient and TestParserClient with TestIntermediateStorage to ease switch to new ParserClient API

This commit is contained in:
Eberhard Graether
2018-10-15 15:05:15 +02:00
parent 3d5b90364a
commit aab29b241e
167 changed files with 51652 additions and 49716 deletions
+10
View File
@@ -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()
{
}
+1
View File
@@ -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();