equal
deleted
inserted
replaced
49 void NotifyInternalCollision (uint32_t i); |
49 void NotifyInternalCollision (uint32_t i); |
50 void NotifyCollision (uint32_t i); |
50 void NotifyCollision (uint32_t i); |
51 |
51 |
52 |
52 |
53 private: |
53 private: |
54 void StartTest (uint64_t slotTime, uint64_t sifs, uint64_t ackTxDuration); |
54 void StartTest (uint64_t slotTime, uint64_t sifs, uint64_t eifsNoDifsNoSifs); |
55 void AddDcfState (uint32_t aifsn); |
55 void AddDcfState (uint32_t aifsn); |
56 void EndTest (void); |
56 void EndTest (void); |
57 void ExpectInternalCollision (uint64_t time, uint32_t from, uint32_t nSlots); |
57 void ExpectInternalCollision (uint64_t time, uint32_t from, uint32_t nSlots); |
58 void ExpectCollision (uint64_t time, uint32_t from, uint32_t nSlots); |
58 void ExpectCollision (uint64_t time, uint32_t from, uint32_t nSlots); |
59 void AddRxOkEvt (uint64_t at, uint64_t duration); |
59 void AddRxOkEvt (uint64_t at, uint64_t duration); |
169 col.nSlots = nSlots; |
169 col.nSlots = nSlots; |
170 state->m_expectedCollision.push_back (col); |
170 state->m_expectedCollision.push_back (col); |
171 } |
171 } |
172 |
172 |
173 void |
173 void |
174 DcfManagerTest::StartTest (uint64_t slotTime, uint64_t sifs, uint64_t ackTxDuration) |
174 DcfManagerTest::StartTest (uint64_t slotTime, uint64_t sifs, uint64_t eifsNoDifsNoSifs) |
175 { |
175 { |
176 m_dcfManager = new DcfManager (); |
176 m_dcfManager = new DcfManager (); |
177 m_dcfManager->SetSlotTime (MicroSeconds (slotTime)); |
177 m_dcfManager->SetSlot (MicroSeconds (slotTime)); |
178 m_dcfManager->SetSifs (MicroSeconds (sifs)); |
178 m_dcfManager->SetSifs (MicroSeconds (sifs)); |
179 m_dcfManager->SetAckTxDuration (MicroSeconds (ackTxDuration)); |
179 m_dcfManager->SetEifsNoDifs (MicroSeconds (eifsNoDifsNoSifs+sifs)); |
180 } |
180 } |
181 |
181 |
182 void |
182 void |
183 DcfManagerTest::AddDcfState (uint32_t aifsn) |
183 DcfManagerTest::AddDcfState (uint32_t aifsn) |
184 { |
184 { |