33 lines
677 B
C++
33 lines
677 B
C++
#include "VideoTest.hpp"
|
|
|
|
#include "../UTest/UTest.hpp"
|
|
|
|
/*** TrooperEngine DLL Header Files ***/
|
|
#include "TrooperEngine.hpp"
|
|
|
|
using VideoEngine::cVideo;
|
|
|
|
void VideoTest()
|
|
{
|
|
// cVideo
|
|
printf("\nTesting cVideo -----\n\n");
|
|
|
|
UTest u("cVideo");
|
|
|
|
TrooperEngineCore::cTrooperEngineCore::Inst();
|
|
VideoEngine::cVideo& video = VideoEngine::cVideo::Inst();
|
|
video.Initialize();
|
|
|
|
u.test("Video Initialize", video.IsInit());
|
|
|
|
u.test("Video Setup", video.Setup());
|
|
|
|
// CaptionTest
|
|
cString cap_set = "Hello World";
|
|
cVideo::Inst().setCaption(cap_set);
|
|
cString cap_get = cVideo::Inst().getCaption();
|
|
u.test("setCaption() and getCaption()", (cap_get == cap_set));
|
|
|
|
|
|
u.report();
|
|
} |