TestGLXRenderWindow.cpp

Go to the documentation of this file.
00001 
00002 //
00003 // This source file is a part of ParCompMark
00004 // Parallel Compositing Benchmark Framework
00005 //
00006 // for latest info see http://parcompmark.sourceforge.net
00007 
00008 //
00009 // Copyright (C) 2006 IT2 ParCompMark Dev. Team
00010 // 
00011 // This program is free software; you can redistribute it and/or
00012 // modify it under the terms of the GNU General Public License
00013 // as published by the Free Software Foundation; either version 2
00014 // of the License, or (at your option) any later version.
00015 // 
00016 // This program is distributed in the hope that it will be useful,
00017 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00018 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00019 // GNU General Public License for more details.
00020 // 
00021 // You should have received a copy of the GNU General Public License
00022 // along with this program; if not, write to the Free Software
00023 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00024 
00027 
00028 #include "../include/TestGLXRenderWindow.h"
00029 #include "../../include/PCMFileSystemManager.h"
00030 
00031 namespace ParCompMarkTest
00032 {
00033 
00034   void TestGLXRenderWindow::setUp()
00035   {
00036         std::string currentLogFile = "logs/TestGLXRenderWindow.log";
00037 
00038         if(Logger::getInstance() && Logger::getInstance()->getLogFileName() != currentLogFile)
00039          Logger::destroyInstance();
00040 
00041         if(!FileSystemManager::getInstance())
00042         {
00043          FileSystemManager::createInstance();
00044          FileSystemManager::getInstance()->setAppDirectory("./");
00045          FileSystemManager::getInstance()->initialize();
00046         }
00047 
00048         if(!Logger::getInstance())
00049         {
00050          Logger::createInstance();
00051          Logger::getInstance()->setLogFileName(currentLogFile);
00052          Logger::getInstance()->initialize();
00053         }
00054   }
00055 
00056  /*----------------------------------------------------------------------*/
00057 
00058   void TestGLXRenderWindow::tearDown()
00059   {
00060   }
00061 
00062  /*----------------------------------------------------------------------*/
00063 
00064   //
00065   // Constructor & destructor tests
00066   //
00067 
00068   void TestGLXRenderWindow:: 
00069 	test_constructor_XDisplay__Pointer_Process_p_cstd__string_cbool_cu32_cu32_cu32_cs32_cs32_cu32()
00070   {
00071 
00072         /*
00073          * You have to verify the following:
00074          * 
00075          * Create GLX render window. Normally called by XDisplay::createRenderWindow.
00076          */
00077 
00078         CPPUNIT_FAIL("Implement this test!");
00079   }
00080 
00081  /*----------------------------------------------------------------------*/
00082 
00083   void TestGLXRenderWindow::test_destructor()
00084   {
00085 
00086         CPPUNIT_FAIL("Implement this test!");
00087   }
00088 
00089  /*----------------------------------------------------------------------*/
00090 
00091   //
00092   // Method tests
00093   //
00094 
00095   void TestGLXRenderWindow::test_reposition_cs32_cs32()
00096   {
00097 
00098         /*
00099          * You have to verify the following:
00100          * 
00101          * Set new window position.
00102          */
00103 
00104         CPPUNIT_FAIL("Implement this test!");
00105   }
00106 
00107  /*----------------------------------------------------------------------*/
00108 
00109   void TestGLXRenderWindow::test_resize_cu32_cu32()
00110   {
00111 
00112         /*
00113          * You have to verify the following:
00114          * 
00115          * Set new window sizes.
00116          */
00117 
00118         CPPUNIT_FAIL("Implement this test!");
00119   }
00120 
00121  /*----------------------------------------------------------------------*/
00122 
00123   void TestGLXRenderWindow::test_startFrame()
00124   {
00125 
00126         /*
00127          * You have to verify the following:
00128          * 
00129          * Start a frame.
00130          */
00131 
00132         CPPUNIT_FAIL("Implement this test!");
00133   }
00134 
00135  /*----------------------------------------------------------------------*/
00136 
00137   void TestGLXRenderWindow::test_finishFrame()
00138   {
00139 
00140         /*
00141          * You have to verify the following:
00142          * 
00143          * Finish current frame.
00144          */
00145 
00146         CPPUNIT_FAIL("Implement this test!");
00147   }
00148 
00149  /*----------------------------------------------------------------------*/
00150 
00151   void TestGLXRenderWindow::test_setCurrent()
00152   {
00153 
00154         /*
00155          * You have to verify the following:
00156          * 
00157          * Enable the context of the window. 
00158          * All subsequent rendering commands will go on this window.
00159          * The side effect of calling this method is reseting the window statistics.
00160          * 
00161          */
00162 
00163         CPPUNIT_FAIL("Implement this test!");
00164   }
00165 
00166  /*----------------------------------------------------------------------*/
00167 
00168   void TestGLXRenderWindow::test_releaseCurrent()
00169   {
00170 
00171         /*
00172          * You have to verify the following:
00173          * 
00174          * Disable the context of the window. 
00175          * Release the current context without assigning a new one.
00176          * 
00177          */
00178 
00179         CPPUNIT_FAIL("Implement this test!");
00180   }
00181 
00182  /*----------------------------------------------------------------------*/
00183 
00184   void TestGLXRenderWindow::test_initialize()
00185   {
00186 
00187         /*
00188          * You have to verify the following:
00189          * 
00190          * Initialize the GLX RenderWindow. Protected method for internal use.
00191          */
00192 
00193         CPPUNIT_FAIL("Implement this test!");
00194   }
00195 
00196  /*----------------------------------------------------------------------*/
00197 
00198   void TestGLXRenderWindow::test_finalize()
00199   {
00200 
00201         /*
00202          * You have to verify the following:
00203          * 
00204          * Finalize the GLX RenderWindow. Protected method for internal use.
00205          */
00206 
00207         CPPUNIT_FAIL("Implement this test!");
00208   }
00209 
00210  /*----------------------------------------------------------------------*/
00211 
00212   void TestGLXRenderWindow::test_resetStatistics()
00213   {
00214 
00215         /*
00216          * You have to verify the following:
00217          * 
00218          * Reset statistics. It is called internally when initializing the window. But it can be called by some other process to 
00219          * get the most accurate window statistics.
00220          * 
00221          */
00222 
00223         CPPUNIT_FAIL("Implement this test!");
00224   }
00225 
00226  /*----------------------------------------------------------------------*/
00227 
00228   void TestGLXRenderWindow::test_reportTriangles_cu32()
00229   {
00230 
00231         /*
00232          * You have to verify the following:
00233          * 
00234          * Report certain number of triangles being rendered to the render window. 
00235          */
00236 
00237         CPPUNIT_FAIL("Implement this test!");
00238   }
00239 
00240  /*----------------------------------------------------------------------*/
00241 
00242   void TestGLXRenderWindow::test_createWindow()
00243   {
00244 
00245         /*
00246          * You have to verify the following:
00247          * 
00248          * Create GLX Window. Protected method for internal use.
00249          */
00250 
00251         CPPUNIT_FAIL("Implement this test!");
00252   }
00253 
00254  /*----------------------------------------------------------------------*/
00255 
00256   void TestGLXRenderWindow::test_destroyWindow()
00257   {
00258 
00259         /*
00260          * You have to verify the following:
00261          * 
00262          * Destroy GLX Window. Protected method for internal use.
00263          */
00264 
00265         CPPUNIT_FAIL("Implement this test!");
00266   }
00267 
00268  /*----------------------------------------------------------------------*/
00269 
00270   void TestGLXRenderWindow::test_updateStatistics()
00271   {
00272 
00273         /*
00274          * You have to verify the following:
00275          * 
00276          * Update statistics of the window. Protected method for internal use.
00277          */
00278 
00279         CPPUNIT_FAIL("Implement this test!");
00280   }
00281 
00282  /*----------------------------------------------------------------------*/
00283 
00284   void TestGLXRenderWindow::test__reposition()
00285   {
00286 
00287         /*
00288          * You have to verify the following:
00289          * 
00290          * Efficiently set window position (for internal use).
00291          */
00292 
00293         CPPUNIT_FAIL("Implement this test!");
00294   }
00295 
00296  /*----------------------------------------------------------------------*/
00297 
00298   void TestGLXRenderWindow::test__resize()
00299   {
00300 
00301         /*
00302          * You have to verify the following:
00303          * 
00304          * Efficiently set window sizes (for internal use).
00305          */
00306 
00307         CPPUNIT_FAIL("Implement this test!");
00308   }
00309 
00310  /*----------------------------------------------------------------------*/
00311 
00312   void TestGLXRenderWindow::test__setCaption()
00313   {
00314 
00315         /*
00316          * You have to verify the following:
00317          * 
00318          * Efficiently set window caption (for internal use).
00319          */
00320 
00321         CPPUNIT_FAIL("Implement this test!");
00322   }
00323 
00324  /*----------------------------------------------------------------------*/
00325 
00326   // To register the suite we add:
00328   CPPUNIT_TEST_SUITE_REGISTRATION(TestGLXRenderWindow);
00329 }