• Home
  • Raw
  • Download

Lines Matching refs:FileTest

34 FileTest::FileTest(std::unique_ptr<FileTest::LineReader> reader,  in FileTest()  function in FileTest
41 FileTest::~FileTest() {} in ~FileTest()
81 FileTest::ReadResult FileTest::ReadNext() { in ReadNext()
229 void FileTest::PrintLine(const char *format, ...) { in PrintLine()
240 const std::string &FileTest::GetType() { in GetType()
245 const std::string &FileTest::GetParameter() { in GetParameter()
250 bool FileTest::HasAttribute(const std::string &key) { in HasAttribute()
255 bool FileTest::GetAttribute(std::string *out_value, const std::string &key) { in GetAttribute()
266 const std::string &FileTest::GetAttributeOrDie(const std::string &key) { in GetAttributeOrDie()
273 bool FileTest::HasInstruction(const std::string &key) { in HasInstruction()
278 bool FileTest::GetInstruction(std::string *out_value, const std::string &key) { in GetInstruction()
289 void FileTest::IgnoreAllUnusedInstructions() { in IgnoreAllUnusedInstructions()
293 const std::string &FileTest::GetInstructionOrDie(const std::string &key) { in GetInstructionOrDie()
300 bool FileTest::GetInstructionBytes(std::vector<uint8_t> *out, in GetInstructionBytes()
306 const std::string &FileTest::CurrentTestToString() const { in CurrentTestToString()
310 bool FileTest::GetBytes(std::vector<uint8_t> *out, const std::string &key) { in GetBytes()
315 void FileTest::ClearTest() { in ClearTest()
326 void FileTest::ClearInstructions() { in ClearInstructions()
331 void FileTest::OnKeyUsed(const std::string &key) { in OnKeyUsed()
335 void FileTest::OnInstructionUsed(const std::string &key) { in OnInstructionUsed()
339 bool FileTest::ConvertToBytes(std::vector<uint8_t> *out, in ConvertToBytes()
353 bool FileTest::IsAtNewInstructionBlock() const { in IsAtNewInstructionBlock()
357 void FileTest::InjectInstruction(const std::string &key, in InjectInstruction()
362 class FileLineReader : public FileTest::LineReader {
374 FileTest::ReadResult ReadLine(char *out, size_t len) override { in ReadLine()
377 return FileTest::kReadError; in ReadLine()
381 return feof(file_) ? FileTest::kReadEOF : FileTest::kReadError; in ReadLine()
386 return FileTest::kReadError; in ReadLine()
389 return FileTest::kReadSuccess; in ReadLine()
400 FileTest::Options opts; in FileTestMain()
408 int FileTestMain(const FileTest::Options &opts) { in FileTestMain()
417 FileTest t(std::move(reader), opts.comment_callback, opts.is_kas_test); in FileTestMain()
421 FileTest::ReadResult ret = t.ReadNext(); in FileTestMain()
422 if (ret == FileTest::kReadError) { in FileTestMain()
424 } else if (ret == FileTest::kReadEOF) { in FileTestMain()
462 void FileTest::SkipCurrent() { in SkipCurrent()