FluteLibTest.h

Go to the documentation of this file.
00001 /*
00002  *   MAD-FLUTE-UNITTEST: FLUTE unit test.
00003  *   File: FluteLibTest.h
00004  *   Copyright (c) 2006-2007 M.B.I. www.mbigroup.it
00005  *   main authors/contacts: gmendola@mbigroup.it and lpoderico@mbigroup.it
00006  *
00007  *   This program is free software; you can redistribute it and/or modify
00008  *   it under the terms of the GNU General Public License as published by
00009  *   the Free Software Foundation; either version 2 of the License, or
00010  *   (at your option) any later version.
00011  *
00012  *   This program is distributed in the hope that it will be useful,
00013  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  *   GNU General Public License for more details.
00016  *
00017  *   You should have received a copy of the GNU General Public License
00018  *   along with this program; if not, write to the Free Software
00019  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020  */
00021 
00022 #ifndef __FLUTELIBTEST__
00023 #define __FLUTELIBTEST__
00024 
00025 #include <cppunit/extensions/HelperMacros.h>
00026 
00027 
00028 class FluteLibTest : public CPPUNIT_NS::TestFixture
00029 {
00030     CPPUNIT_TEST_SUITE( FluteLibTest );
00031     CPPUNIT_TEST( testSimpleDirTrasmission );
00032     CPPUNIT_TEST( testShortestDirTransmission );
00033     CPPUNIT_TEST( testHugeDirTransmission );
00034     CPPUNIT_TEST( testSlowDirTransmission );
00035     CPPUNIT_TEST( testFastDirTransmission );
00036     CPPUNIT_TEST( testVeryFastDirTransmission );
00037     CPPUNIT_TEST( testVeryFastTransmissionHugeDir );
00038 
00039     CPPUNIT_TEST( testSimpleTransmission );
00040     CPPUNIT_TEST( testShortestTransmission );
00041     CPPUNIT_TEST( testHugeTransmission );
00042     CPPUNIT_TEST( testSlowTransmission );
00043     CPPUNIT_TEST( testFastTransmission );
00044     CPPUNIT_TEST( testVeryFastTransmission );
00045 
00046     CPPUNIT_TEST( testSpeedSlowTransmission );
00047     CPPUNIT_TEST( testSpeedFastTransmission );
00048     CPPUNIT_TEST( testSpeedVeryFastTransmission );
00049     CPPUNIT_TEST( testSpeedVeryFastTransmission2 );
00050     CPPUNIT_TEST_SUITE_END();
00051 
00052 public:
00053     void testSimpleTransmission();
00054     void testShortestTransmission();
00055     void testHugeTransmission();
00056     void testSlowTransmission();
00057     void testFastTransmission();
00058     void testVeryFastTransmission();
00059 
00060     void testSimpleDirTrasmission();
00061     void testShortestDirTransmission();
00062     void testHugeDirTransmission();
00063     void testSlowDirTransmission();
00064     void testFastDirTransmission();
00065     void testVeryFastDirTransmission();
00066     void testVeryFastTransmissionHugeDir();
00067 
00068     void testSpeedSlowTransmission();
00069     void testSpeedFastTransmission();
00070     void testSpeedVeryFastTransmission();
00071     void testSpeedVeryFastTransmission2();
00072 
00073 private:
00074     void performsFilesTest(int aFileSize, int aKBitRates, int aRepetition);
00075     void performsDirsTest(std::vector<int> aFileSizes, int aKBitRates, int aRepetition);
00076     unsigned long long performsFileSend(
00077         const class TemporaryFile& aTemporaryFile, int aKBitRates);
00078     void performsSpeedFilesTest(int aFileSize, int aKBitRates);
00079 };
00080 
00081 
00082 #endif //__FLUTELIBTEST__

Generated on Fri Mar 9 20:08:53 2007 for MAD-FCL by  doxygen 1.5.0