SelectorTest.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_SELECTORTEST_H
#define SH_SELECTORTEST_H
class Selector ;
#include "UnitTest.h"
#include "TestSuite.h"
class SelectorTest : public UnitTest {
public:
SelectorTest (TestSuite* s) ;
void setup (void) ;
void cleanup (void) ;
void testIsPermutation (void) ;
void testIsIdentityPermutation (void) ;
private:
Selector *s1, *s2, *s3, *s4 ;
Selector *sid1, *sid2 ;
bool genericTestIsPermutation (Selector* s) ;
bool genericTestIsIdentityPermutation (Selector* s) ;
} ;
#endif // ndef SH_SELECTORTEST_H
TestSuite.h
UnitTest.h
SelectorTest::setup
void setup(void)
Definition SelectorTest.cc:35
SelectorTest::s3
Selector * s3
Definition SelectorTest.h:40
SelectorTest::genericTestIsIdentityPermutation
bool genericTestIsIdentityPermutation(Selector *s)
Definition SelectorTest.cc:86
SelectorTest::sid1
Selector * sid1
Definition SelectorTest.h:41
SelectorTest::s4
Selector * s4
Definition SelectorTest.h:40
SelectorTest::s2
Selector * s2
Definition SelectorTest.h:40
SelectorTest::genericTestIsPermutation
bool genericTestIsPermutation(Selector *s)
Definition SelectorTest.cc:65
SelectorTest::SelectorTest
SelectorTest(TestSuite *s)
Definition SelectorTest.cc:28
SelectorTest::cleanup
void cleanup(void)
Definition SelectorTest.cc:45
SelectorTest::testIsPermutation
void testIsPermutation(void)
Definition SelectorTest.cc:51
SelectorTest::testIsIdentityPermutation
void testIsIdentityPermutation(void)
Definition SelectorTest.cc:59
SelectorTest::s1
Selector * s1
Definition SelectorTest.h:40
SelectorTest::sid2
Selector * sid2
Definition SelectorTest.h:41
Selector
a random permutation of a random combination
Definition Selector.h:36
TestSuite
Definition TestSuite.h:31
UnitTest::UnitTest
UnitTest(std::string n, TestSuite *s)
Definition UnitTest.h:43