Clean Up
This commit is contained in:
@@ -18,16 +18,26 @@ void VideoTest()
|
||||
VideoEngine::cVideo& video = VideoEngine::cVideo::Inst();
|
||||
video.Initialize();
|
||||
|
||||
u.test("Video Initialize", video.IsInit());
|
||||
u.test("Video Initialize. IsInit()", video.IsInit());
|
||||
|
||||
u.test("Video Setup", video.Setup());
|
||||
u.test("Video Setup. Setup()", video.Setup());
|
||||
|
||||
// CaptionTest
|
||||
cString cap_set = "Hello World";
|
||||
u.test("setCaption() and getCaption()", CaptionTest());
|
||||
|
||||
u.report();
|
||||
}
|
||||
|
||||
const bool CaptionTest()
|
||||
{
|
||||
bool rtn = false;
|
||||
|
||||
cString cap_set = "Caption Test";
|
||||
cVideo::Inst().setCaption(cap_set);
|
||||
cString cap_get = cVideo::Inst().getCaption();
|
||||
u.test("setCaption() and getCaption()", (cap_get == cap_set));
|
||||
|
||||
if (cap_get == cap_set)
|
||||
rtn = true;
|
||||
|
||||
u.report();
|
||||
return rtn;
|
||||
}
|
||||
Reference in New Issue
Block a user