EdgeIteratorTest.h
Go to the documentation of this file.
/*
* steghide 0.5.1 - a steganography program
* Copyright (C) 1999-2003 Stefan Hetzl <shetzl@chello.at>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
#ifndef SH_EDGEITERATORTEST_H
#define SH_EDGEITERATORTEST_H
#include "BitString.h"
#include "CvrStgFile.h"
#define private public
#define protected public
#include "Graph.h"
#undef protected
#undef private
#include "EdgeIterator.h"
#include "Selector.h"
#include "UnitTest.h"
#include "TestSuite.h"
class EdgeIteratorTest : public UnitTest {
public:
EdgeIteratorTest (TestSuite* s) ;
void setup (void) ;
void cleanup (void) ;
void testReferenceIteration (void) ;
void testIterationLength (void) ;
private:
BitString *bs1, *bs2 ;
CvrStgFile *f1, *f2 ;
Selector *s1, *s2 ;
Graph *g1, *g2 ;
Globals gl1, gl2 ;
BitString *bs10, *bs11, *bs12 ;
CvrStgFile *f10, *f11, *f12 ;
Selector *s10, *s11, *s12 ;
Graph *g10, *g11, *g12 ;
Globals gl10, gl11, gl12 ;
bool genericTestGraphIteration (Graph* g, EdgeIterator::ITERATIONMODE m) ;
bool genericTestVertexIteration (Vertex* srcvertex, EdgeIterator::ITERATIONMODE m, const std::vector<Edge*>& edges) ;
bool genericTestIterationLength (Graph* g) ;
} ;
#endif // ndef SH_EDGEITERATORTEST_H
EdgeIterator::ITERATIONMODE
ITERATIONMODE
Definition: EdgeIterator.h:53
EdgeIteratorTest::f2
CvrStgFile * f2
Definition: EdgeIteratorTest.h:49
EdgeIteratorTest::setup
void setup(void)
Definition: EdgeIteratorTest.cc:40
EdgeIteratorTest::s2
Selector * s2
Definition: EdgeIteratorTest.h:50
EdgeIteratorTest::bs11
BitString * bs11
Definition: EdgeIteratorTest.h:54
EdgeIteratorTest::genericTestGraphIteration
bool genericTestGraphIteration(Graph *g, EdgeIterator::ITERATIONMODE m)
Graph
a graph constructed from a cover file and a message to be embedded
Definition: Graph.h:51
Selector.h
CvrStgFile
a cover-/stego-file
Definition: CvrStgFile.h:46
EdgeIteratorTest::bs2
BitString * bs2
Definition: EdgeIteratorTest.h:48
EdgeIteratorTest::gl2
Globals gl2
Definition: EdgeIteratorTest.h:52
EdgeIteratorTest::f12
CvrStgFile * f12
Definition: EdgeIteratorTest.h:55
BitString.h
EdgeIteratorTest::f1
CvrStgFile * f1
Definition: EdgeIteratorTest.h:49
Globals
some useful pointers that should be global
Definition: Globals.h:52
EdgeIteratorTest::bs1
BitString * bs1
Definition: EdgeIteratorTest.h:48
EdgeIteratorTest::genericTestVertexIteration
bool genericTestVertexIteration(Vertex *srcvertex, EdgeIterator::ITERATIONMODE m, const std::vector< Edge *> &edges)
Definition: EdgeIteratorTest.cc:164
EdgeIteratorTest::gl10
Globals gl10
Definition: EdgeIteratorTest.h:58
EdgeIteratorTest::g1
Graph * g1
Definition: EdgeIteratorTest.h:51
EdgeIteratorTest::gl11
Globals gl11
Definition: EdgeIteratorTest.h:58
EdgeIteratorTest::bs12
BitString * bs12
Definition: EdgeIteratorTest.h:54
EdgeIteratorTest::f11
CvrStgFile * f11
Definition: EdgeIteratorTest.h:55
EdgeIteratorTest::s10
Selector * s10
Definition: EdgeIteratorTest.h:56
EdgeIteratorTest::gl1
Globals gl1
Definition: EdgeIteratorTest.h:52
UnitTest
Definition: UnitTest.h:38
EdgeIterator.h
EdgeIteratorTest::s1
Selector * s1
Definition: EdgeIteratorTest.h:50
EdgeIteratorTest::g10
Graph * g10
Definition: EdgeIteratorTest.h:57
Selector
a random permutation of a random combination
Definition: Selector.h:36
EdgeIteratorTest::g11
Graph * g11
Definition: EdgeIteratorTest.h:57
UnitTest.h
EdgeIteratorTest::EdgeIteratorTest
EdgeIteratorTest(TestSuite *s)
Definition: EdgeIteratorTest.cc:33
Graph.h
CvrStgFile.h
TestSuite
Definition: TestSuite.h:31
BitString
a string of bits
Definition: BitString.h:42
EdgeIteratorTest::s12
Selector * s12
Definition: EdgeIteratorTest.h:56
EdgeIteratorTest::gl12
Globals gl12
Definition: EdgeIteratorTest.h:58
EdgeIteratorTest::genericTestIterationLength
bool genericTestIterationLength(Graph *g)
Definition: EdgeIteratorTest.cc:216
TestSuite.h
EdgeIteratorTest::bs10
BitString * bs10
Definition: EdgeIteratorTest.h:54
EdgeIteratorTest::g2
Graph * g2
Definition: EdgeIteratorTest.h:51
EdgeIteratorTest::f10
CvrStgFile * f10
Definition: EdgeIteratorTest.h:55
EdgeIteratorTest::testReferenceIteration
void testReferenceIteration(void)
Definition: EdgeIteratorTest.cc:87
EdgeIteratorTest::cleanup
void cleanup(void)
Definition: EdgeIteratorTest.cc:83
EdgeIteratorTest::testIterationLength
void testIterationLength(void)
Definition: EdgeIteratorTest.cc:150
EdgeIteratorTest
Definition: EdgeIteratorTest.h:37
EdgeIteratorTest::g12
Graph * g12
Definition: EdgeIteratorTest.h:57
Vertex
a vertex in a graph
Definition: Vertex.h:43
EdgeIteratorTest::s11
Selector * s11
Definition: EdgeIteratorTest.h:56