axmol/tests/cpp-tests/Classes/ExtensionsTest/AssetsManagerExTest/AssetsManagerExTest.h

36 lines
798 B
C
Raw Normal View History

2014-10-09 18:30:39 +08:00
#ifndef __AssetsManagerEx_Test_H__
#define __AssetsManagerEx_Test_H__
#include "extensions/cocos-ext.h"
#include "../../BaseTest.h"
DEFINE_TEST_SUITE(AssetsManagerExTests);
2014-10-09 18:30:39 +08:00
class AssetsManagerExLoaderScene : public TestCase
2014-10-09 18:30:39 +08:00
{
public:
static AssetsManagerExLoaderScene* create(int testIndex);
2014-10-09 18:30:39 +08:00
AssetsManagerExLoaderScene(int testIndex);
2014-10-09 18:30:39 +08:00
void startDownloadCallback(cocos2d::Ref* sender);
virtual std::string title() const;
virtual bool init() override;
2014-10-09 18:30:39 +08:00
virtual void onExit() override;
private:
int _testIndex;
cocos2d::Layer* _loadLayer;
cocos2d::Menu* _downloadMenu;
2014-10-09 18:30:39 +08:00
AssetsManagerEx *_am;
cocos2d::Label* _progress;
2014-10-09 18:30:39 +08:00
EventListenerAssetsManagerEx* _amListener;
void onLoadEnd();
2014-10-09 18:30:39 +08:00
};
#endif /* defined(__AssetsManagerEx_Test_H__) */