void SpritePerfScreen::Input(UIEvent * touch) { if ((touch->phase == UIEvent::PHASE_ENDED) && (touch->tid == UIEvent::BUTTON_1)) { RestartTest(); } }
void SpritePerfScreen::LoadResources() { redSprite = Sprite::Create("~res:/Gfx/SpriteBasics/redsprite"); greenSprite = Sprite::Create("~res:/Gfx/SpriteBasics/greensprite"); blueSprite = Sprite::Create("~res:/Gfx/SpriteBasics/bluesprite"); tranclucentSprite = Sprite::Create("~res:/Gfx/SpriteBasics/transclucentsprite"); zebraSprite = Sprite::Create("~res:/Gfx/SpriteBasics/zebrasprite"); redGameObject = GameObject::Create("~res:/Gfx/SpriteBasics/redsprite"); RestartTest(); }
void CFtpTest02::DoTest() { //Removed teporarily due to problem with host resolution // iCFTPSession->Connect(iTestParams.iHostName,iTestParams.iUserName, //Login using hostname // iTestParams.iPassword,CFTPSession::EActive,iTestParams.iPort); // StartScheduler(); // iCFTPSession->Close(); // StartScheduler(); iCFTPSession->Connect(iTestParams.iInetAddr,iTestParams.iUserName, //Login using Active mode iTestParams.iPassword,CFTPSession::EActive); StartScheduler(); iCFTPSession->Close(); StartScheduler(); iCFTPSession->Connect(iTestParams.iInetAddr,iTestParams.iUserName, //Login using passive mode iTestParams.iPassword,CFTPSession::Epassive); StartScheduler(); iCFTPSession->ChangeDirectory(iTestParams.iDirectoryPath); //Move to appropriate directory. StartScheduler(); ListTest(); RetriveveTestOverwrite(); FailedRetrievalTest(); FailedRetrievalTestOverwrite(); RenameTest(); DeleteFileTest(); StoreTest(); RestartTest(); DirectoryTest(); iCFTPSession->Close(); StartScheduler(); }