00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef INCLUDED_QA_GR_FLOWGRAPH_H
00024 #define INCLUDED_QA_GR_FLOWGRAPH_H
00025
00026 #include <cppunit/extensions/HelperMacros.h>
00027 #include <cppunit/TestCase.h>
00028 #include <stdexcept>
00029
00030 class qa_gr_flowgraph : public CppUnit::TestCase
00031 {
00032 CPPUNIT_TEST_SUITE(qa_gr_flowgraph);
00033
00034 CPPUNIT_TEST(t0);
00035 CPPUNIT_TEST(t1_connect);
00036 CPPUNIT_TEST(t2_connect_invalid_src_port_neg);
00037 CPPUNIT_TEST(t3_connect_src_port_exceeds);
00038 CPPUNIT_TEST(t4_connect_invalid_dst_port_neg);
00039 CPPUNIT_TEST(t5_connect_dst_port_exceeds);
00040 CPPUNIT_TEST(t6_connect_dst_in_use);
00041 CPPUNIT_TEST(t7_connect_one_src_two_dst);
00042 CPPUNIT_TEST(t8_connect_type_mismatch);
00043 CPPUNIT_TEST(t9_disconnect);
00044 CPPUNIT_TEST(t10_disconnect_unconnected_block);
00045 CPPUNIT_TEST(t11_disconnect_unconnected_port);
00046 CPPUNIT_TEST(t12_validate);
00047 CPPUNIT_TEST(t13_validate_missing_input_assignment);
00048 CPPUNIT_TEST(t14_validate_missing_output_assignment);
00049 CPPUNIT_TEST(t15_clear);
00050 CPPUNIT_TEST(t16_partition);
00051
00052 CPPUNIT_TEST_SUITE_END();
00053
00054 private:
00055
00056 void t0();
00057 void t1_connect();
00058 void t2_connect_invalid_src_port_neg();
00059 void t3_connect_src_port_exceeds();
00060 void t4_connect_invalid_dst_port_neg();
00061 void t5_connect_dst_port_exceeds();
00062 void t6_connect_dst_in_use();
00063 void t7_connect_one_src_two_dst();
00064 void t8_connect_type_mismatch();
00065 void t9_disconnect();
00066 void t10_disconnect_unconnected_block();
00067 void t11_disconnect_unconnected_port();
00068 void t12_validate();
00069 void t13_validate_missing_input_assignment();
00070 void t14_validate_missing_output_assignment();
00071 void t15_clear();
00072 void t16_partition();
00073 };
00074
00075 #endif