OLD | NEW |
1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2011-2013 Centre Tecnologic de Telecomunicacions de Catalunya (
CTTC) | 3 * Copyright (c) 2011-2013 Centre Tecnologic de Telecomunicacions de Catalunya (
CTTC) |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 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 | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 } | 110 } |
111 | 111 |
112 LenaDataPhyErrorModelTestCase::LenaDataPhyErrorModelTestCase (uint16_t nUser, ui
nt16_t dist, uint16_t tbSize, double blerRef, uint16_t toleranceRxPackets) | 112 LenaDataPhyErrorModelTestCase::LenaDataPhyErrorModelTestCase (uint16_t nUser, ui
nt16_t dist, uint16_t tbSize, double blerRef, uint16_t toleranceRxPackets) |
113 : TestCase (BuildNameString (nUser, dist)),·············· | 113 : TestCase (BuildNameString (nUser, dist)),·············· |
114 m_nUser (nUser), | 114 m_nUser (nUser), |
115 m_dist (dist), | 115 m_dist (dist), |
116 m_tbSize (tbSize), | 116 m_tbSize (tbSize), |
117 m_blerRef (blerRef), | 117 m_blerRef (blerRef), |
118 m_toleranceRxPackets (toleranceRxPackets) | 118 m_toleranceRxPackets (toleranceRxPackets) |
119 { | 119 { |
| 120 NS_UNUSED (m_tbSize); |
120 } | 121 } |
121 | 122 |
122 LenaDataPhyErrorModelTestCase::~LenaDataPhyErrorModelTestCase () | 123 LenaDataPhyErrorModelTestCase::~LenaDataPhyErrorModelTestCase () |
123 { | 124 { |
124 } | 125 } |
125 | 126 |
126 void | 127 void |
127 LenaDataPhyErrorModelTestCase::DoRun (void) | 128 LenaDataPhyErrorModelTestCase::DoRun (void) |
128 { | 129 { |
129 ·· | 130 ·· |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 } | 260 } |
260 | 261 |
261 | 262 |
262 LenaDlCtrlPhyErrorModelTestCase::LenaDlCtrlPhyErrorModelTestCase (uint16_t nEnb,
uint16_t dist, uint16_t tbSize, double blerRef) | 263 LenaDlCtrlPhyErrorModelTestCase::LenaDlCtrlPhyErrorModelTestCase (uint16_t nEnb,
uint16_t dist, uint16_t tbSize, double blerRef) |
263 : TestCase (BuildNameString (nEnb, dist)),·············· | 264 : TestCase (BuildNameString (nEnb, dist)),·············· |
264 m_nEnb (nEnb), | 265 m_nEnb (nEnb), |
265 m_dist (dist), | 266 m_dist (dist), |
266 m_tbSize (tbSize), | 267 m_tbSize (tbSize), |
267 m_blerRef (blerRef) | 268 m_blerRef (blerRef) |
268 { | 269 { |
| 270 NS_UNUSED (m_tbSize); |
269 } | 271 } |
270 | 272 |
271 LenaDlCtrlPhyErrorModelTestCase::~LenaDlCtrlPhyErrorModelTestCase () | 273 LenaDlCtrlPhyErrorModelTestCase::~LenaDlCtrlPhyErrorModelTestCase () |
272 { | 274 { |
273 } | 275 } |
274 | 276 |
275 void | 277 void |
276 LenaDlCtrlPhyErrorModelTestCase::DoRun (void) | 278 LenaDlCtrlPhyErrorModelTestCase::DoRun (void) |
277 { | 279 { |
278 ·· | 280 ·· |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 NS_TEST_ASSERT_MSG_GT (dlTxPackets, expectedMinDlTxPackets, " too few TX p
ackets reported"); | 383 NS_TEST_ASSERT_MSG_GT (dlTxPackets, expectedMinDlTxPackets, " too few TX p
ackets reported"); |
382 | 384 |
383 NS_TEST_ASSERT_MSG_EQ_TOL (bler, m_blerRef, 0.1, " Unexpected BLER distrib
ution!"); | 385 NS_TEST_ASSERT_MSG_EQ_TOL (bler, m_blerRef, 0.1, " Unexpected BLER distrib
ution!"); |
384 }·· | 386 }·· |
385 ·· | 387 ·· |
386 Simulator::Destroy (); | 388 Simulator::Destroy (); |
387 } | 389 } |
388 | 390 |
389 | 391 |
390 } // namespace | 392 } // namespace |
OLD | NEW |