axmol/tests/cpp-tests/Classes/TextureCacheTest/TextureCacheTest.h

29 lines
575 B
C
Raw Normal View History

#ifndef _TEXTURECACHE_TEST_H_
#define _TEXTURECACHE_TEST_H_
2011-11-21 12:04:21 +08:00
#include "cocos2d.h"
#include "../BaseTest.h"
DEFINE_TEST_SUITE(TextureCacheTests);
class TextureCacheTest : public TestCase
{
public:
CREATE_FUNC(TextureCacheTest);
TextureCacheTest();
void addSprite();
2014-01-02 17:23:00 +08:00
void loadingCallBack(cocos2d::Texture2D *texture);
virtual float getDuration() const override { return 3.5f; }
private:
cocos2d::Label *_labelLoading;
cocos2d::Label *_labelPercent;
int _numberOfSprites;
int _numberOfLoadedSprites;
};
#endif // _TEXTURECACHE_TEST_H_