|
Video Processing Framework
|
00001 #ifndef TESTS_H_62B23520_7C8E_11DE_8A39_0800200C9A66 00002 #define TESTS_H_62B23520_7C8E_11DE_8A39_0800200C9A66 00003 00004 #if !defined(__GNUC__) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4 00005 #pragma once 00006 #endif 00007 00008 #include <string> 00009 00010 namespace Test { 00011 void RunAll(); 00012 00013 namespace Parser { 00014 // scalar tests 00015 void SimpleScalar(std::string& inputScalar, std::string& desiredOutput); 00016 void MultiLineScalar(std::string& inputScalar, std::string& desiredOutput); 00017 void LiteralScalar(std::string& inputScalar, std::string& desiredOutput); 00018 void FoldedScalar(std::string& inputScalar, std::string& desiredOutput); 00019 void ChompedFoldedScalar(std::string& inputScalar, std::string& desiredOutput); 00020 void ChompedLiteralScalar(std::string& inputScalar, std::string& desiredOutput); 00021 void FoldedScalarWithIndent(std::string& inputScalar, std::string& desiredOutput); 00022 void ColonScalar(std::string& inputScalar, std::string& desiredOutput); 00023 void QuotedScalar(std::string& inputScalar, std::string& desiredOutput); 00024 void CommaScalar(std::string& inputScalar, std::string& desiredOutput); 00025 void DashScalar(std::string& inputScalar, std::string& desiredOutput); 00026 void URLScalar(std::string& inputScalar, std::string& desiredOutput); 00027 00028 // misc tests 00029 bool SimpleSeq(); 00030 bool SimpleMap(); 00031 bool FlowSeq(); 00032 bool FlowMap(); 00033 bool FlowMapWithOmittedKey(); 00034 bool FlowMapWithOmittedValue(); 00035 bool FlowMapWithSoloEntry(); 00036 bool FlowMapEndingWithSoloEntry(); 00037 bool QuotedSimpleKeys(); 00038 bool CompressedMapAndSeq(); 00039 bool NullBlockSeqEntry(); 00040 bool NullBlockMapKey(); 00041 bool NullBlockMapValue(); 00042 bool SimpleAlias(); 00043 bool AliasWithNull(); 00044 bool AnchorInSimpleKey(); 00045 bool AliasAsSimpleKey(); 00046 bool ExplicitDoc(); 00047 bool MultipleDocs(); 00048 bool ExplicitEndDoc(); 00049 bool MultipleDocsWithSomeExplicitIndicators(); 00050 } 00051 } 00052 00053 #endif // TESTS_H_62B23520_7C8E_11DE_8A39_0800200C9A66