Updated FSF address in all files. Fixes ticket:51
[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., 51 Franklin Street,
20  * Boston, MA 02110-1301, 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 (t9);
43   CPPUNIT_TEST (t10);
44   CPPUNIT_TEST (t11);
45   CPPUNIT_TEST (t12);
46   CPPUNIT_TEST (t13);
47   CPPUNIT_TEST (t14);
48   CPPUNIT_TEST (t15);
49   CPPUNIT_TEST (t16);
50   CPPUNIT_TEST (t17);
51   CPPUNIT_TEST (t18);
52   CPPUNIT_TEST (t19);
53   CPPUNIT_TEST (t20);
54   CPPUNIT_TEST (t21);
55   CPPUNIT_TEST (t22);
56   CPPUNIT_TEST (t23);
57   CPPUNIT_TEST (t24);
58   CPPUNIT_TEST (t25);
59   CPPUNIT_TEST (t26);
60   CPPUNIT_TEST (t27);
61   CPPUNIT_TEST (t28);
62   CPPUNIT_TEST (t29);
63   CPPUNIT_TEST (t30);
64   CPPUNIT_TEST (t31);
65   CPPUNIT_TEST (t32);
66   CPPUNIT_TEST (t33);
67   CPPUNIT_TEST (t34);
68   CPPUNIT_TEST (t35);
69   CPPUNIT_TEST (t36);
70   CPPUNIT_TEST (t37);
71   CPPUNIT_TEST (t38);
72   CPPUNIT_TEST (t39);
73   CPPUNIT_TEST (t40);
74   CPPUNIT_TEST (t41);
75   CPPUNIT_TEST (t42);
76   CPPUNIT_TEST (t43);
77   CPPUNIT_TEST (t44);
78   CPPUNIT_TEST (t45);
79   CPPUNIT_TEST (t46);
80   CPPUNIT_TEST (t47);
81   CPPUNIT_TEST_SUITE_END ();
82
83  private:
84   void do_encoder_check (bool use_encode_in_or_out,
85                          const char** c_t1_in,
86                          const char** c_t1_res,
87                          const size_t n_io_items,
88                          const size_t* n_input_items,
89                          const size_t* n_output_items,
90                          const size_t block_size_bits,
91                          const size_t n_code_inputs,
92                          const size_t n_code_outputs,
93                          const int* code_generators,
94                          const int* code_feedback = 0,
95                          const bool do_termination = true,
96                          const size_t start_state = 0,
97                          const size_t term_state = 0,
98                          const int encode_soai = -1);
99
100   void t0 ();
101   void t1 ();
102   void t2 ();
103   void t3 ();
104   void t4 ();
105   void t5 ();
106   void t6 ();
107   void t7 ();
108   void t8 ();
109   void t9 ();
110   void t10 ();
111   void t11 ();
112   void t12 ();
113   void t13 ();
114   void t14 ();
115   void t15 ();
116   void t16 ();
117   void t17 ();
118   void t18 ();
119   void t19 ();
120   void t20 ();
121   void t21 ();
122   void t22 ();
123   void t23 ();
124   void t24 ();
125   void t25 ();
126   void t26 ();
127   void t27 ();
128   void t28 ();
129   void t29 ();
130   void t30 ();
131   void t31 ();
132   void t32 ();
133   void t33 ();
134   void t34 ();
135   void t35 ();
136   void t36 ();
137   void t37 ();
138   void t38 ();
139   void t39 ();
140   void t40 ();
141   void t41 ();
142   void t42 ();
143   void t43 ();
144   void t44 ();
145   void t45 ();
146   void t46 ();
147   void t47 ();
148 };
149
150 #endif /* INCLUDED_QA_ENCODER_CONVOLUTIONAL_IC1_IC1_H */