axmol/tests/cpp-tests/Classes/PerformanceTest/PerformanceTest.cpp

35 lines
1.8 KiB
C++
Raw Normal View History

#include "PerformanceTest.h"
#include "../testResource.h"
#include "PerformanceNodeChildrenTest.h"
#include "PerformanceParticleTest.h"
2015-03-19 12:32:53 +08:00
#include "PerformanceParticle3DTest.h"
#include "PerformanceSpriteTest.h"
#include "PerformanceTextureTest.h"
#include "PerformanceTouchesTest.h"
2013-09-06 11:02:04 +08:00
#include "PerformanceAllocTest.h"
#include "PerformanceLabelTest.h"
#include "PerformanceContainerTest.h"
2014-01-22 14:12:25 +08:00
#include "PerformanceEventDispatcherTest.h"
#include "PerformanceScenarioTest.h"
#include "PerformanceCallbackTest.h"
#include "PerformanceMathTest.h"
USING_NS_CC;
PerformanceTests::PerformanceTests()
{
addTest("Alloc Test", [](){ return new (std::nothrow) PerformceAllocTests; });
addTest("NodeChildren Test", [](){ return new (std::nothrow) PerformceNodeChildrenTests; });
addTest("Particle Test", [](){ return new (std::nothrow) PerformceParticleTests; });
addTest("Particle3D Perf Test", [](){ return new (std::nothrow) PerformceParticle3DTests; });
addTest("Sprite Perf Test", [](){ return new (std::nothrow) PerformceSpriteTests; });
addTest("Texture Perf Test", [](){ return new (std::nothrow) PerformceTextureTests; });
addTest("Touches Perf Test", [](){ return new (std::nothrow) PerformceTouchesTests; });
addTest("Label Perf Test", [](){ return new (std::nothrow) PerformceLabelTests; });
addTest("Container Perf Test", []() { return new (std::nothrow) PerformceContainerTests; });
addTest("EventDispatcher Perf Test", []() { return new (std::nothrow) PerformceEventDispatcherTests; });
addTest("Scenario Perf Test", []() { return new (std::nothrow) PerformceScenarioTests; });
addTest("Callback Perf Test", []() { return new (std::nothrow) PerformceCallbackTests; });
addTest("Math Perf Test", []() { return new (std::nothrow) PerformceMathTests; });
}