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

36 lines
847 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);
2015-07-15 12:04:48 +08:00
virtual std::string title() const override;
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;
2015-04-09 12:23:47 +08:00
cocos2d::extension::AssetsManagerEx* _am;
cocos2d::Label* _progress;
2015-04-09 12:23:47 +08:00
cocos2d::extension::EventListenerAssetsManagerEx* _amListener;
void onLoadEnd();
2014-10-09 18:30:39 +08:00
};
#endif /* defined(__AssetsManagerEx_Test_H__) */