2013-05-10 15:07:05 +08:00
|
|
|
#ifndef __DATAVISITOR_TEST_H__
|
|
|
|
#define __DATAVISITOR_TEST_H__
|
|
|
|
|
2015-04-03 14:31:03 +08:00
|
|
|
#include "../BaseTest.h"
|
2013-05-10 15:07:05 +08:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2015-04-03 14:31:03 +08:00
|
|
|
DEFINE_TEST_SUITE(DataVisitorTests);
|
|
|
|
|
|
|
|
class PrettyPrinterDemo : public TestCase
|
2013-05-10 15:07:05 +08:00
|
|
|
{
|
|
|
|
public:
|
2015-04-03 14:31:03 +08:00
|
|
|
CREATE_FUNC(PrettyPrinterDemo);
|
2013-12-19 05:52:10 +08:00
|
|
|
virtual std::string title() const;
|
|
|
|
virtual std::string subtitle() const;
|
2014-02-27 21:10:03 +08:00
|
|
|
virtual void onEnter() override;
|
2013-05-10 15:07:05 +08:00
|
|
|
void addSprite();
|
|
|
|
protected:
|
2013-06-15 14:03:30 +08:00
|
|
|
std::string _title;
|
2013-05-10 15:07:05 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // __DATAVISITOR_TEST_H__
|