Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

EdgeIteratorTest.h

Go to the documentation of this file.
00001 /* 00002 * steghide 0.5.1 - a steganography program 00003 * Copyright (C) 1999-2003 Stefan Hetzl <shetzl@chello.at> 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU General Public License 00007 * as published by the Free Software Foundation; either version 2 00008 * of the License, or (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 * 00019 */ 00020 00021 #ifndef SH_EDGEITERATORTEST_H 00022 #define SH_EDGEITERATORTEST_H 00023 00024 #include "BitString.h" 00025 #include "CvrStgFile.h" 00026 #define private public 00027 #define protected public 00028 #include "Graph.h" 00029 #undef protected 00030 #undef private 00031 #include "EdgeIterator.h" 00032 #include "Selector.h" 00033 00034 #include "UnitTest.h" 00035 #include "TestSuite.h" 00036 00037 class EdgeIteratorTest : public UnitTest { 00038 public: 00039 EdgeIteratorTest (TestSuite* s) ; 00040 00041 void setup (void) ; 00042 void cleanup (void) ; 00043 00044 void testReferenceIteration (void) ; 00045 void testIterationLength (void) ; 00046 00047 private: 00048 BitString *bs1, *bs2 ; 00049 CvrStgFile *f1, *f2 ; 00050 Selector *s1, *s2 ; 00051 Graph *g1, *g2 ; 00052 Globals gl1, gl2 ; 00053 00054 BitString *bs10, *bs11, *bs12 ; 00055 CvrStgFile *f10, *f11, *f12 ; 00056 Selector *s10, *s11, *s12 ; 00057 Graph *g10, *g11, *g12 ; 00058 Globals gl10, gl11, gl12 ; 00059 00060 bool genericTestGraphIteration (Graph* g, EdgeIterator::ITERATIONMODE m) ; 00061 00065 bool genericTestVertexIteration (Vertex* srcvertex, EdgeIterator::ITERATIONMODE m, const std::vector<Edge*>& edges) ; 00066 00070 bool genericTestIterationLength (Graph* g) ; 00071 } ; 00072 00073 #endif // ndef SH_EDGEITERATORTEST_H

Generated on Fri Jul 16 19:41:21 2004 for steghide by doxygen 1.3.7