tst_cstlcompiler.h 663 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef TST_CSTLCOMPILER_H
  2. #define TST_CSTLCOMPILER_H
  3. #include <QtTest>
  4. #include <tests/tst_request.h>
  5. #include <cwf/cstlcompiler.h>
  6. enum class NUMBER_ATTR : char
  7. {
  8. ZERO,
  9. TWO,
  10. THREE
  11. };
  12. class TST_CSTLCompiler : public QObject
  13. {
  14. Q_OBJECT
  15. const QByteArray header = "<head><title>TestHeader</title></head>";
  16. private slots:
  17. void test();
  18. void testImport();
  19. void testForOutIf();
  20. void fillClient(ClientTest &client, short h);
  21. QByteArray buildHtmlForIf(const QByteArray &condition, NUMBER_ATTR number = NUMBER_ATTR::TWO);
  22. void createFile(const QString &name, const QByteArray &content);
  23. };
  24. #endif // TST_CSTLCOMPILER_H