author | Mitch Watrous <watrous@u.washington.edu> |
Mon, 17 Jan 2011 12:53:20 -0800 | |
changeset 6775 | 0783f42a364b |
parent 6774 | 034f362af24d |
permissions | -rw-r--r-- |
5967 | 1 |
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
2 |
/* |
|
6590
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
3 |
* Copyright (c) 2009, 2010 MIRKO BANCHI |
5967 | 4 |
* |
5 |
* This program is free software; you can redistribute it and/or modify |
|
6 |
* it under the terms of the GNU General Public License version 2 as |
|
7 |
* published by the Free Software Foundation; |
|
8 |
* |
|
9 |
* This program is distributed in the hope that it will be useful, |
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 |
* GNU General Public License for more details. |
|
13 |
* |
|
14 |
* You should have received a copy of the GNU General Public License |
|
15 |
* along with this program; if not, write to the Free Software |
|
16 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
17 |
* |
|
18 |
* Author: Mirko Banchi <mk.banchi@gmail.com> |
|
19 |
*/ |
|
20 |
#include "ns3/test.h" |
|
21 |
#include "ns3/log.h" |
|
22 |
#include "qos-utils.h" |
|
6590
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
23 |
#include "ctrl-headers.h" |
5967 | 24 |
#include <list> |
25 |
||
26 |
using namespace ns3; |
|
27 |
||
28 |
NS_LOG_COMPONENT_DEFINE ("BlockAckTest"); |
|
29 |
/** |
|
30 |
* This simple test verifies the correctness of buffering for packets received |
|
31 |
* under block ack. In order to completely understand this example is important to cite |
|
32 |
* section 9.10.3 in IEEE802.11 standard: |
|
33 |
* |
|
34 |
* "[...] The sequence number space is considered divided into two parts, one of which |
|
35 |
* is “old” and one of which is “new” by means of a boundary created by adding half the |
|
36 |
* sequence number range to the current start of receive window (modulo 2^12)." |
|
37 |
*/ |
|
38 |
//------------------------------------------------------------------------------------- |
|
39 |
||
40 |
/* ----- = old packets |
|
41 |
* +++++ = new packets |
|
42 |
* |
|
43 |
* CASE A: startSeq < endSeq |
|
44 |
* - - + |
|
45 |
* initial buffer state: 0 16 56000 |
|
46 |
* |
|
47 |
* |
|
48 |
* 0 4095 |
|
49 |
* |------|++++++++++++++++|-----| |
|
50 |
* ^ ^ |
|
51 |
* | startSeq | endSeq = 4000 |
|
52 |
* |
|
53 |
* first received packet's sequence control = 64016 (seqNum = 4001, fragNum = 0) - |
|
54 |
* second received packet's sequence control = 63984 (seqNum = 3999, fragNum = 0) + |
|
55 |
* 4001 is older seq number so this packet should be inserted at the buffer's begin. |
|
56 |
* 3999 is previous element of older of new packets: it should be inserted at the end of buffer. |
|
57 |
* |
|
58 |
* expected buffer state: 64016 0 16 56000 63984 |
|
59 |
* |
|
60 |
*/ |
|
61 |
class PacketBufferingCaseA : public TestCase |
|
62 |
{ |
|
63 |
public: |
|
64 |
PacketBufferingCaseA (); |
|
65 |
virtual ~PacketBufferingCaseA (); |
|
66 |
private: |
|
6775
0783f42a364b
Make test cases not return bool valuesMake all TestSuite instances be static
Mitch Watrous <watrous@u.washington.edu>
parents:
6774
diff
changeset
|
67 |
virtual void DoRun (void); |
5967 | 68 |
std::list<uint16_t> m_expectedBuffer; |
69 |
}; |
|
70 |
||
71 |
PacketBufferingCaseA::PacketBufferingCaseA () |
|
72 |
: TestCase ("Check correct order of buffering when startSequence < endSeq") |
|
73 |
{ |
|
74 |
m_expectedBuffer.push_back (64016); |
|
75 |
m_expectedBuffer.push_back (0); |
|
76 |
m_expectedBuffer.push_back (16); |
|
77 |
m_expectedBuffer.push_back (56000); |
|
78 |
m_expectedBuffer.push_back (63984); |
|
79 |
} |
|
80 |
||
81 |
PacketBufferingCaseA::~PacketBufferingCaseA () |
|
82 |
{} |
|
83 |
||
6775
0783f42a364b
Make test cases not return bool valuesMake all TestSuite instances be static
Mitch Watrous <watrous@u.washington.edu>
parents:
6774
diff
changeset
|
84 |
void |
5967 | 85 |
PacketBufferingCaseA::DoRun (void) |
86 |
{ |
|
87 |
std::list<uint16_t> m_buffer; |
|
88 |
std::list<uint16_t>::iterator i,j; |
|
89 |
m_buffer.push_back (0); |
|
90 |
m_buffer.push_back (16); |
|
91 |
m_buffer.push_back (56000); |
|
92 |
||
93 |
uint16_t endSeq = 4000; |
|
94 |
||
95 |
uint16_t receivedSeq = 4001 * 16; |
|
96 |
uint32_t mappedSeq = QosUtilsMapSeqControlToUniqueInteger (receivedSeq, endSeq); |
|
97 |
for (i = m_buffer.begin (); i != m_buffer.end () && QosUtilsMapSeqControlToUniqueInteger ((*i), endSeq) < mappedSeq; i++); |
|
98 |
{ |
|
99 |
m_buffer.insert (i, receivedSeq); |
|
100 |
} |
|
101 |
||
102 |
receivedSeq = 3999 * 16; |
|
103 |
mappedSeq = QosUtilsMapSeqControlToUniqueInteger (receivedSeq, endSeq); |
|
104 |
for (i = m_buffer.begin (); i != m_buffer.end () && QosUtilsMapSeqControlToUniqueInteger ((*i), endSeq) < mappedSeq; i++); |
|
105 |
{ |
|
106 |
m_buffer.insert (i, receivedSeq); |
|
107 |
} |
|
108 |
||
109 |
for (i = m_buffer.begin (), j = m_expectedBuffer.begin (); i != m_buffer.end (); i++, j++) |
|
110 |
{ |
|
111 |
NS_TEST_EXPECT_MSG_EQ (*i, *j, "error in buffer order"); |
|
112 |
} |
|
113 |
} |
|
114 |
||
115 |
/* ----- = old packets |
|
116 |
* +++++ = new packets |
|
117 |
* |
|
118 |
* CASE B: startSeq > endSeq |
|
119 |
* - + + |
|
120 |
* initial buffer state: 256 64000 16 |
|
121 |
* |
|
122 |
* |
|
123 |
* 0 4095 |
|
124 |
* |++++++|----------------|++++++| |
|
125 |
* ^ ^ |
|
126 |
* | endSeq = 10 | startSeq |
|
127 |
* |
|
128 |
* first received packet's sequence control = 240 (seqNum = 15, fragNum = 0) - |
|
129 |
* second received packet's sequence control = 241 (seqNum = 15, fragNum = 1) - |
|
130 |
* third received packet's sequence control = 64800 (seqNum = 4050, fragNum = 0) + |
|
131 |
* 240 is an old packet should be inserted at the buffer's begin. |
|
132 |
* 241 is an old packet: second segment of the above packet. |
|
133 |
* 4050 is a new packet: it should be inserted between 64000 and 16. |
|
134 |
* |
|
135 |
* expected buffer state: 240 241 256 64000 64800 16 |
|
136 |
* |
|
137 |
*/ |
|
138 |
class PacketBufferingCaseB : public TestCase |
|
139 |
{ |
|
140 |
public: |
|
141 |
PacketBufferingCaseB (); |
|
142 |
virtual ~PacketBufferingCaseB (); |
|
143 |
private: |
|
6775
0783f42a364b
Make test cases not return bool valuesMake all TestSuite instances be static
Mitch Watrous <watrous@u.washington.edu>
parents:
6774
diff
changeset
|
144 |
virtual void DoRun (void); |
5967 | 145 |
std::list<uint16_t> m_expectedBuffer; |
146 |
}; |
|
147 |
||
148 |
PacketBufferingCaseB::PacketBufferingCaseB () |
|
149 |
: TestCase ("Check correct order of buffering when startSequence > endSeq") |
|
150 |
{ |
|
151 |
m_expectedBuffer.push_back (240); |
|
152 |
m_expectedBuffer.push_back (241); |
|
153 |
m_expectedBuffer.push_back (256); |
|
154 |
m_expectedBuffer.push_back (64000); |
|
155 |
m_expectedBuffer.push_back (64800); |
|
156 |
m_expectedBuffer.push_back (16); |
|
157 |
} |
|
158 |
||
159 |
PacketBufferingCaseB::~PacketBufferingCaseB () |
|
160 |
{} |
|
161 |
||
6775
0783f42a364b
Make test cases not return bool valuesMake all TestSuite instances be static
Mitch Watrous <watrous@u.washington.edu>
parents:
6774
diff
changeset
|
162 |
void |
5967 | 163 |
PacketBufferingCaseB::DoRun (void) |
164 |
{ |
|
165 |
std::list<uint16_t> m_buffer; |
|
166 |
std::list<uint16_t>::iterator i,j; |
|
167 |
m_buffer.push_back (256); |
|
168 |
m_buffer.push_back (64000); |
|
169 |
m_buffer.push_back (16); |
|
170 |
||
171 |
uint16_t endSeq = 10; |
|
172 |
||
173 |
uint16_t receivedSeq = 15 * 16; |
|
174 |
uint32_t mappedSeq = QosUtilsMapSeqControlToUniqueInteger (receivedSeq, endSeq); |
|
175 |
for (i = m_buffer.begin (); i != m_buffer.end () && QosUtilsMapSeqControlToUniqueInteger ((*i), endSeq) < mappedSeq; i++); |
|
176 |
{ |
|
177 |
m_buffer.insert (i, receivedSeq); |
|
178 |
} |
|
179 |
||
180 |
receivedSeq = 15 * 16 + 1; |
|
181 |
mappedSeq = QosUtilsMapSeqControlToUniqueInteger (receivedSeq, endSeq); |
|
182 |
for (i = m_buffer.begin (); i != m_buffer.end () && QosUtilsMapSeqControlToUniqueInteger ((*i), endSeq) < mappedSeq; i++); |
|
183 |
{ |
|
184 |
m_buffer.insert (i, receivedSeq); |
|
185 |
} |
|
186 |
||
187 |
receivedSeq = 4050 * 16; |
|
188 |
mappedSeq = QosUtilsMapSeqControlToUniqueInteger (receivedSeq, endSeq); |
|
189 |
for (i = m_buffer.begin (); i != m_buffer.end () && QosUtilsMapSeqControlToUniqueInteger ((*i), endSeq) < mappedSeq; i++); |
|
190 |
{ |
|
191 |
m_buffer.insert (i, receivedSeq); |
|
192 |
} |
|
193 |
||
194 |
for (i = m_buffer.begin (), j = m_expectedBuffer.begin (); i != m_buffer.end (); i++, j++) |
|
195 |
{ |
|
196 |
NS_TEST_EXPECT_MSG_EQ (*i, *j, "error in buffer order"); |
|
197 |
} |
|
198 |
} |
|
199 |
||
6590
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
200 |
//Test for block ack header |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
201 |
class CtrlBAckResponseHeaderTest : public TestCase |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
202 |
{ |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
203 |
public: |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
204 |
CtrlBAckResponseHeaderTest (); |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
205 |
private: |
6775
0783f42a364b
Make test cases not return bool valuesMake all TestSuite instances be static
Mitch Watrous <watrous@u.washington.edu>
parents:
6774
diff
changeset
|
206 |
virtual void DoRun (); |
6590
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
207 |
CtrlBAckResponseHeader m_blockAckHdr; |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
208 |
}; |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
209 |
|
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
210 |
CtrlBAckResponseHeaderTest::CtrlBAckResponseHeaderTest () |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
211 |
: TestCase ("Check the correctness of block ack compressed bitmap") |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
212 |
{} |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
213 |
|
6775
0783f42a364b
Make test cases not return bool valuesMake all TestSuite instances be static
Mitch Watrous <watrous@u.washington.edu>
parents:
6774
diff
changeset
|
214 |
void |
6590
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
215 |
CtrlBAckResponseHeaderTest::DoRun (void) |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
216 |
{ |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
217 |
m_blockAckHdr.SetType (COMPRESSED_BLOCK_ACK); |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
218 |
|
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
219 |
//Case 1: startSeq < endSeq |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
220 |
// 179 242 |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
221 |
m_blockAckHdr.SetStartingSequence (179); |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
222 |
for (uint32_t i = 179; i < 220; i++) |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
223 |
{ |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
224 |
m_blockAckHdr.SetReceivedPacket (i); |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
225 |
} |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
226 |
for (uint32_t i = 225; i <= 242; i++) |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
227 |
{ |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
228 |
m_blockAckHdr.SetReceivedPacket (i); |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
229 |
} |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
230 |
NS_TEST_EXPECT_MSG_EQ (m_blockAckHdr.GetCompressedBitmap (), 0xffffc1ffffffffffLL, "error in compressed bitmap"); |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
231 |
m_blockAckHdr.SetReceivedPacket (1500); |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
232 |
NS_TEST_EXPECT_MSG_EQ (m_blockAckHdr.GetCompressedBitmap (), 0xffffc1ffffffffffLL, "error in compressed bitmap"); |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
233 |
NS_TEST_EXPECT_MSG_EQ (m_blockAckHdr.IsPacketReceived (220), false, "error in compressed bitmap"); |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
234 |
NS_TEST_EXPECT_MSG_EQ (m_blockAckHdr.IsPacketReceived (225), true, "error in compressed bitmap"); |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
235 |
NS_TEST_EXPECT_MSG_EQ (m_blockAckHdr.IsPacketReceived (1500), false, "error in compressed bitmap"); |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
236 |
|
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
237 |
m_blockAckHdr.ResetBitmap (); |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
238 |
|
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
239 |
//Case 2: startSeq > endSeq |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
240 |
// 4090 58 |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
241 |
m_blockAckHdr.SetStartingSequence (4090); |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
242 |
for (uint32_t i = 4090; i != 10; i = (i + 1) % 4096) |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
243 |
{ |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
244 |
m_blockAckHdr.SetReceivedPacket (i); |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
245 |
} |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
246 |
for (uint32_t i = 22; i < 25; i++) |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
247 |
{ |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
248 |
m_blockAckHdr.SetReceivedPacket (i); |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
249 |
} |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
250 |
NS_TEST_EXPECT_MSG_EQ (m_blockAckHdr.GetCompressedBitmap (), 0x00000000007000ffffLL, "error in compressed bitmap"); |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
251 |
m_blockAckHdr.SetReceivedPacket (80); |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
252 |
NS_TEST_EXPECT_MSG_EQ (m_blockAckHdr.GetCompressedBitmap (), 0x00000000007000ffffLL, "error in compressed bitmap"); |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
253 |
NS_TEST_EXPECT_MSG_EQ (m_blockAckHdr.IsPacketReceived (4090), true, "error in compressed bitmap"); |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
254 |
NS_TEST_EXPECT_MSG_EQ (m_blockAckHdr.IsPacketReceived (4095), true, "error in compressed bitmap"); |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
255 |
NS_TEST_EXPECT_MSG_EQ (m_blockAckHdr.IsPacketReceived (10), false, "error in compressed bitmap"); |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
256 |
NS_TEST_EXPECT_MSG_EQ (m_blockAckHdr.IsPacketReceived (35), false, "error in compressed bitmap"); |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
257 |
NS_TEST_EXPECT_MSG_EQ (m_blockAckHdr.IsPacketReceived (80), false, "error in compressed bitmap"); |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
258 |
} |
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
259 |
|
5967 | 260 |
class BlockAckTestSuite : public TestSuite |
261 |
{ |
|
262 |
public: |
|
263 |
BlockAckTestSuite (); |
|
264 |
}; |
|
265 |
||
266 |
BlockAckTestSuite::BlockAckTestSuite () |
|
267 |
: TestSuite ("wifi-block-ack", UNIT) |
|
268 |
{ |
|
269 |
AddTestCase (new PacketBufferingCaseA); |
|
270 |
AddTestCase (new PacketBufferingCaseB); |
|
6590
fc8db935fbfb
Add some tests for block ack response header
Mirko Banchi <mk.banchi@gmail.com>
parents:
5967
diff
changeset
|
271 |
AddTestCase (new CtrlBAckResponseHeaderTest); |
5967 | 272 |
} |
273 |
||
6774
034f362af24d
Make all TestSuite instances be static
Mitch Watrous <watrous@u.washington.edu>
parents:
6590
diff
changeset
|
274 |
static BlockAckTestSuite g_blockAckTestSuite; |