22 #include "ns3/abort.h"
24 #include "ns3/uinteger.h"
25 #include "ns3/inet-socket-address.h"
26 #include "ns3/point-to-point-helper.h"
27 #include "ns3/internet-stack-helper.h"
28 #include "ns3/ipv4-address-helper.h"
29 #include "ns3/ipv4-header.h"
30 #include "ns3/packet-sink-helper.h"
31 #include "ns3/udp-client-server-helper.h"
32 #include "ns3/udp-header.h"
33 #include "ns3/simulator.h"
34 #include "ns3/wimax-helper.h"
35 #include "ns3/mobility-helper.h"
36 #include "ns3/global-route-manager.h"
37 #include "ns3/wimax-tlv.h"
38 #include "ns3/ipcs-classifier-record.h"
39 #include "ns3/service-flow.h"
53 virtual void DoRun (
void);
57 DsaRequestTestCase::DsaRequestTestCase ()
58 :
TestCase (
"Test the DSA request messages")
62 DsaRequestTestCase::~DsaRequestTestCase ()
74 sf.SetConvergenceSublayerParam (csParam);
75 sf.SetCsSpecification (ServiceFlow::IPV4);
76 sf.SetServiceSchedulingType (ServiceFlow::SF_TYPE_UGS);
77 sf.SetMaxSustainedTrafficRate (1000000);
78 sf.SetMinReservedTrafficRate (1000000);
79 sf.SetMinTolerableTrafficRate (1000000);
80 sf.SetMaximumLatency (10);
81 sf.SetMaxTrafficBurst (1000);
82 sf.SetTrafficPriority (1);
93 NS_TEST_ASSERT_MSG_EQ (sfRecv.GetDirection (), ServiceFlow::SF_DIRECTION_DOWN,
"The sfRecv had the wrong direction.");
94 NS_TEST_ASSERT_MSG_EQ (sfRecv.GetSfid (), 100,
"The sfRecv had the wrong sfid.");
95 NS_TEST_ASSERT_MSG_EQ (sfRecv.GetCsSpecification (), ServiceFlow::IPV4,
"The sfRecv had the wrong cs specification.");
96 NS_TEST_ASSERT_MSG_EQ (sfRecv.GetServiceSchedulingType (), ServiceFlow::SF_TYPE_UGS,
"The sfRecv had the wrong service scheduling type.");
97 NS_TEST_ASSERT_MSG_EQ (sfRecv.GetMaxSustainedTrafficRate (), 1000000,
"The sfRecv had the wrong maximum sustained traffic rate.");
98 NS_TEST_ASSERT_MSG_EQ (sfRecv.GetMinReservedTrafficRate (), 1000000,
"The sfRecv had the wrong minimum reserved traffic rate.");
99 NS_TEST_ASSERT_MSG_EQ (sfRecv.GetMinTolerableTrafficRate (), 1000000,
"The sfRecv had the wrong minimum tolerable traffic rate.");
100 NS_TEST_ASSERT_MSG_EQ (sfRecv.GetMaximumLatency (), 10,
"The sfRecv had the wrong maximum latency.");
101 NS_TEST_ASSERT_MSG_EQ (sfRecv.GetMaxTrafficBurst (), 1000,
"The sfRecv had the wrong maximum traffic burst.");
102 NS_TEST_ASSERT_MSG_EQ (sfRecv.GetTrafficPriority (), 1,
"The sfRecv had the wrong traffic priority.");
112 Ns3WimaxMacMessagesTestSuite::Ns3WimaxMacMessagesTestSuite ()
uint32_t RemoveHeader(Header &header)
ServiceFlow GetServiceFlow(void) const
virtual void DoRun(void)
Implementation to actually run this test case.
void AddTestCase(TestCase *testCase) NS_DEPRECATED
Add an individual test case to this test suite.
void AddHeader(const Header &header)