steghide  0.5.1
EmbDataTest.h
Go to the documentation of this file.
1 /*
2  * steghide 0.5.1 - a steganography program
3  * Copyright (C) 1999-2003 Stefan Hetzl <shetzl@chello.at>
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18  *
19  */
20 
21 #ifndef SH_EMBDATATEST_H
22 #define SH_EMBDATATEST_H
23 
24 class BitString ;
25 #define private public
26 #include "EmbData.h"
27 #undef private
28 
29 #include "UnitTest.h"
30 #include "TestSuite.h"
31 
32 class EmbDataTest : public UnitTest {
33  public:
34  EmbDataTest (TestSuite* s) ;
35 
36  void testEmbedding (void) ;
37  void testExtracting (void) ;
38 
39  private:
40  bool genericTestEmbedding (EmbData emb, BitString shouldbe) ;
45  bool feed_to (const BitString& bs, EmbData& emb) ;
46 } ;
47 
48 #endif // ndef SH_EMBDATATEST_H
EmbDataTest::genericTestEmbedding
bool genericTestEmbedding(EmbData emb, BitString shouldbe)
Definition: EmbDataTest.cc:92
EmbDataTest::testExtracting
void testExtracting(void)
Definition: EmbDataTest.cc:63
UnitTest
Definition: UnitTest.h:38
EmbDataTest
Definition: EmbDataTest.h:32
TestSuite.h
UnitTest.h
BitString
a string of bits
Definition: BitString.h:42
TestSuite
Definition: TestSuite.h:31
EmbDataTest::feed_to
bool feed_to(const BitString &bs, EmbData &emb)
Definition: EmbDataTest.cc:107
EmbData.h
EmbData
Definition: EmbData.h:33
EmbDataTest::EmbDataTest
EmbDataTest(TestSuite *s)
Definition: EmbDataTest.cc:29
EmbDataTest::testEmbedding
void testEmbedding(void)
Definition: EmbDataTest.cc:36