Page MenuHomePhorge

ApplicationTest.cpp
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

ApplicationTest.cpp

/*
* File: ApplicationTest.cpp
* Author: sean
*
* Created on 15-Sep-2014, 12:06:15
*/
#include <stdlib.h>
#include <iostream>
#include <echo/Application.h>
#include <echo/Kernel/Kernel.h>
#include <echo/PlatformStub.h>
using namespace Echo;
class MyApplication : public Application
{
public:
MyApplication() : mTask("MyTask")
{
AddTask(mTask);
}
private:
Task mTask;
};
shared_ptr<Kernel> EchoInitialise()
{
std::cout << "%SUITE_STARTING% ApplicationTest" << std::endl;
std::cout << "%SUITE_STARTED%" << std::endl;
std::cout << "%TEST_STARTED% ApplicationTest (ApplicationTest)" << std::endl;
shared_ptr<Application> application(new MyApplication());
Configuration configuration;
configuration.Set<u32>("resolution.x",800);
configuration.Set<u32>("resolution.y",600);
if(application->Initialise("ApplicationTest", configuration))
{
std::cout << "%TEST_FINISHED% time=0 ApplicationTest (ApplicationTest)" << std::endl;
std::cout << "%SUITE_FINISHED% time=0" << std::endl;
return application;
}
std::cout << "%TEST_FAILED% time=0 testname=ApplicationTest (ApplicationTest) message=Unable to initialise application" << std::endl;
std::cout << "%SUITE_FINISHED% time=0" << std::endl;
return shared_ptr<Kernel>();
}

File Metadata

Mime Type
text/x-c++
Expires
Thu, Dec 5, 2:01 AM (6 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
62581
Default Alt Text
ApplicationTest.cpp (1 KB)

Event Timeline