aboutsummaryrefslogtreecommitdiff
path: root/engines/testbed/graphics.cpp
diff options
context:
space:
mode:
authorNeeraj Kumar2010-06-02 13:56:04 +0000
committerNeeraj Kumar2010-06-02 13:56:04 +0000
commit91a8d25cea4eb44e55ac5e966b21c89bd044bc49 (patch)
tree71a50e3539402ec3c4fbad82c59fa92eb81a0696 /engines/testbed/graphics.cpp
parent5df3809d371c1d37d03dfd51689a58420cc337a6 (diff)
downloadscummvm-rg350-91a8d25cea4eb44e55ac5e966b21c89bd044bc49.tar.gz
scummvm-rg350-91a8d25cea4eb44e55ac5e966b21c89bd044bc49.tar.bz2
scummvm-rg350-91a8d25cea4eb44e55ac5e966b21c89bd044bc49.zip
completed the basic testsuite class
svn-id: r49392
Diffstat (limited to 'engines/testbed/graphics.cpp')
-rw-r--r--engines/testbed/graphics.cpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/engines/testbed/graphics.cpp b/engines/testbed/graphics.cpp
index b8fcc40564..a2b6a8657b 100644
--- a/engines/testbed/graphics.cpp
+++ b/engines/testbed/graphics.cpp
@@ -27,14 +27,29 @@ bool testFullScreenMode() {
g_system->endGFXTransaction();
}
+ return true;
}
GFXTestSuite::GFXTestSuite() {
addTest("FullScreenMode", &testFullScreenMode);
}
-int execute() {
- //TODO: Implement the method
+GFXTestSuite::~GFXTestSuite() {
+ printf("Cleanup\n");
+}
+
+const char *GFXTestSuite::getName() {
+ return "GFX";
+}
+
+int GFXTestSuite::execute() {
+ //TODO: Implement the method
+ for (Common::Array<Test*>::iterator i = _testsToExecute.begin(); i != _testsToExecute.end(); ++i) {
+ printf("Executing Test:%s\n", ((*i)->featureName).c_str());
+ printf("Result:%d",(*i)->driver());
+ }
+
+ return 1;
}
}