Houston, we have a trunk.
[debian/gnuradio] / gr-error-correcting-codes / src / lib / libecc / tests / qa_encoder_convolutional_ic1_ic1.h
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2006 Free Software Foundation, Inc.
4  * 
5  * This file is part of GNU Radio
6  * 
7  * GNU Radio is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2, or (at your option)
10  * any later version.
11  * 
12  * GNU Radio is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  * 
17  * You should have received a copy of the GNU General Public License
18  * along with GNU Radio; see the file COPYING.  If not, write to
19  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20  * Boston, MA 02111-1307, USA.
21  */
22
23 #ifndef INCLUDED_QA_ENCODER_CONVOLUTIONAL_IC1_IC1_H
24 #define INCLUDED_QA_ENCODER_CONVOLUTIONAL_IC1_IC1_H
25
26 #include <cppunit/extensions/HelperMacros.h>
27 #include <cppunit/TestCase.h>
28 #include <stdexcept>
29
30 class qa_encoder_convolutional_ic1_ic1 : public CppUnit::TestCase {
31
32   CPPUNIT_TEST_SUITE (qa_encoder_convolutional_ic1_ic1);
33   CPPUNIT_TEST (t0);
34   CPPUNIT_TEST (t1);
35   CPPUNIT_TEST (t2);
36   CPPUNIT_TEST (t3);
37   CPPUNIT_TEST (t4);
38   CPPUNIT_TEST (t5);
39   CPPUNIT_TEST (t6);
40   CPPUNIT_TEST (t7);
41   CPPUNIT_TEST (t8);
42   CPPUNIT_TEST_SUITE_END ();
43
44  private:
45   void do_encoder_check (const char** c_t1_in,
46                          const char** c_t1_res,
47                          int n_output_items,
48                          int block_size_bits,
49                          int n_code_inputs,
50                          int n_code_outputs,
51                          const int* code_generators,
52                          const int* code_feedback = 0);
53
54   void t0 ();
55   void t1 ();
56   void t2 ();
57   void t3 ();
58   void t4 ();
59   void t5 ();
60   void t6 ();
61   void t7 ();
62   void t8 ();
63 };
64
65 #endif /* INCLUDED_QA_ENCODER_CONVOLUTIONAL_IC1_IC1_H */