2013-01-28 15:17:20 +08:00
|
|
|
#ifndef __FILEUTILSTEST_H__
|
|
|
|
#define __FILEUTILSTEST_H__
|
|
|
|
|
|
|
|
#include "../testBasic.h"
|
2013-06-07 08:12:28 +08:00
|
|
|
#include "../BaseTest.h"
|
|
|
|
|
2013-01-28 15:17:20 +08:00
|
|
|
USING_NS_CC;
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
class FileUtilsTestScene : public TestScene
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void runThisTest();
|
|
|
|
};
|
|
|
|
|
2013-06-07 08:12:28 +08:00
|
|
|
class FileUtilsDemo : public BaseTest
|
2013-01-28 15:17:20 +08:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual string title();
|
|
|
|
virtual string subtitle();
|
|
|
|
void backCallback(CCObject* pSender);
|
|
|
|
void nextCallback(CCObject* pSender);
|
|
|
|
void restartCallback(CCObject* pSender);
|
|
|
|
};
|
|
|
|
|
|
|
|
class TestResolutionDirectories : public FileUtilsDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual void onExit();
|
|
|
|
virtual string title();
|
|
|
|
virtual string subtitle();
|
|
|
|
private:
|
|
|
|
vector<string> m_defaultSearchPathArray;
|
|
|
|
vector<string> m_defaultResolutionsOrderArray;
|
|
|
|
};
|
|
|
|
|
|
|
|
class TestSearchPath : public FileUtilsDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual void onExit();
|
|
|
|
virtual string title();
|
|
|
|
virtual string subtitle();
|
|
|
|
private:
|
|
|
|
vector<string> m_defaultSearchPathArray;
|
|
|
|
vector<string> m_defaultResolutionsOrderArray;
|
|
|
|
};
|
|
|
|
|
|
|
|
class TestFilenameLookup : public FileUtilsDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual void onExit();
|
|
|
|
virtual string title();
|
|
|
|
virtual string subtitle();
|
|
|
|
};
|
|
|
|
|
2013-02-01 22:18:43 +08:00
|
|
|
class TestIsFileExist : public FileUtilsDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual void onExit();
|
|
|
|
virtual string title();
|
|
|
|
virtual string subtitle();
|
|
|
|
};
|
2013-01-28 15:17:20 +08:00
|
|
|
|
2013-04-28 00:36:37 +08:00
|
|
|
class TextWritePlist : public FileUtilsDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual void onExit();
|
|
|
|
virtual string title();
|
|
|
|
virtual string subtitle();
|
|
|
|
};
|
|
|
|
|
2013-01-28 15:17:20 +08:00
|
|
|
#endif /* __FILEUTILSTEST_H__ */
|