summaryrefslogtreecommitdiff
path: root/cesar/maximus/ethernet/inc/EtherSciMsgTest.h
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/maximus/ethernet/inc/EtherSciMsgTest.h')
-rw-r--r--cesar/maximus/ethernet/inc/EtherSciMsgTest.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/cesar/maximus/ethernet/inc/EtherSciMsgTest.h b/cesar/maximus/ethernet/inc/EtherSciMsgTest.h
new file mode 100644
index 0000000000..174142701c
--- /dev/null
+++ b/cesar/maximus/ethernet/inc/EtherSciMsgTest.h
@@ -0,0 +1,60 @@
+
+#ifndef ETHERSCIMSGTEST_H
+#define ETHERSCIMSGTEST_H
+
+#include <cppunit/TestFixture.h>
+#include <cppunit/extensions/HelperMacros.h>
+
+class EtherSciMsg;
+class IEthernet;
+class ISci;
+
+
+class EtherSciMsgTest : public CPPUNIT_NS::TestFixture
+{
+
+ CPPUNIT_TEST_SUITE (EtherSciMsgTest);
+ CPPUNIT_TEST (createTest);
+ CPPUNIT_TEST (dispatchMsgTest);
+ CPPUNIT_TEST (identifySpecializedSciMsgHeaderTest);
+ CPPUNIT_TEST (checkCompatibilityTest);
+ CPPUNIT_TEST (checkValidityTest);
+ CPPUNIT_TEST (displaySpecializedSciMsgHeaderTest);
+ CPPUNIT_TEST (displaySpecializedSciMsgTypeTest);
+ CPPUNIT_TEST (returnSpecializedSciMsgHeaderTest);
+ CPPUNIT_TEST (setSpecializedSciMsgHeaderTest);
+ CPPUNIT_TEST (setSpecializedSciMsgTypeTest);
+ CPPUNIT_TEST (setSnifferTypeTest);
+ CPPUNIT_TEST (setFlagsTest);
+ CPPUNIT_TEST_SUITE_END ();
+
+public:
+
+ void setUp (void);
+ void tearDown (void);
+
+protected:
+
+ void createTest (void);
+ void dispatchMsgTest (void);
+ void identifySpecializedSciMsgHeaderTest (void);
+ void checkCompatibilityTest (void);
+ void checkValidityTest (void);
+ void displaySpecializedSciMsgHeaderTest (void);
+ void displaySpecializedSciMsgTypeTest(void);
+ void returnSpecializedSciMsgHeaderTest (void);
+ void setSpecializedSciMsgHeaderTest (void);
+ void setSpecializedSciMsgTypeTest (void);
+ void setSnifferTypeTest (void);
+ void setFlagsTest (void);
+
+private:
+
+ EtherSciMsg * mpEtherSciMsg;
+ IEthernet * mpEthernet;
+ ISci * mpSci;
+
+};
+
+
+#endif // ETHERSCIMSGTEST_H