LEFT | RIGHT |
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) 2013 Magister Solutions | 3 * Copyright (c) 2013 Magister Solutions |
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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 * | 286 * |
287 * \brief Lte Handover Delay Test Suite | 287 * \brief Lte Handover Delay Test Suite |
288 */ | 288 */ |
289 | 289 |
290 static class LteHandoverDelayTestSuite : public TestSuite | 290 static class LteHandoverDelayTestSuite : public TestSuite |
291 { | 291 { |
292 public: | 292 public: |
293 LteHandoverDelayTestSuite () | 293 LteHandoverDelayTestSuite () |
294 : TestSuite ("lte-handover-delay", TestSuite::SYSTEM) | 294 : TestSuite ("lte-handover-delay", TestSuite::SYSTEM) |
295 { | 295 { |
296 //LogComponentEnable ("LteHandoverDelayTest", LOG_PREFIX_TIME); | 296 #if 0 |
297 //LogComponentEnable ("LteHandoverDelayTest", LOG_DEBUG); | 297 LogComponentEnable ("LteHandoverDelayTest", LOG_PREFIX_TIME); |
298 //LogComponentEnable ("LteHandoverDelayTest", LOG_INFO); | 298 LogComponentEnable ("LteHandoverDelayTest", LOG_DEBUG); |
| 299 LogComponentEnable ("LteHandoverDelayTest", LOG_INFO); |
| 300 #endif |
299 | 301 |
300 // HANDOVER DELAY TEST CASES WITH IDEAL RRC (THRESHOLD = 0.005 sec) | 302 // HANDOVER DELAY TEST CASES WITH IDEAL RRC (THRESHOLD = 0.005 sec) |
301 | 303 |
302 for (Time handoverTime = Seconds (0.100); handoverTime < Seconds (0.110); | 304 for (Time handoverTime = Seconds (0.100); handoverTime < Seconds (0.110); |
303 handoverTime += Seconds (0.001)) | 305 handoverTime += Seconds (0.001)) |
304 { | 306 { |
305 // arguments: useIdealRrc, handoverTime, delayThreshold, simulationDurat
ion | 307 // arguments: useIdealRrc, handoverTime, delayThreshold, simulationDurat
ion |
306 AddTestCase ( | 308 AddTestCase ( |
307 new LteHandoverDelayTestCase (1, true, handoverTime, Seconds (0.005)
, | 309 new LteHandoverDelayTestCase (1, true, handoverTime, Seconds (0.005)
, |
308 Seconds (0.200)), TestCase::QUICK); | 310 Seconds (0.200)), TestCase::QUICK); |
309 } | 311 } |
310 | 312 |
311 // HANDOVER DELAY TEST CASES WITH REAL RRC (THRESHOLD = 0.020 sec) | 313 // HANDOVER DELAY TEST CASES WITH REAL RRC (THRESHOLD = 0.020 sec) |
312 | 314 |
313 for (Time handoverTime = Seconds (0.100); handoverTime < Seconds (0.110); | 315 for (Time handoverTime = Seconds (0.100); handoverTime < Seconds (0.110); |
314 handoverTime += Seconds (0.001)) | 316 handoverTime += Seconds (0.001)) |
315 { | 317 { |
316 // arguments: useIdealRrc, handoverTime, delayThreshold, simulationDurat
ion | 318 // arguments: useIdealRrc, handoverTime, delayThreshold, simulationDurat
ion |
317 AddTestCase ( | 319 AddTestCase ( |
318 new LteHandoverDelayTestCase (1, false, handoverTime, Seconds (0.020
), | 320 new LteHandoverDelayTestCase (1, false, handoverTime, Seconds (0.020
), |
319 Seconds (0.200)), TestCase::QUICK); | 321 Seconds (0.200)), TestCase::QUICK); |
320 } | 322 } |
321 } | 323 } |
322 } g_lteHandoverDelayTestSuite; ///< the test suite | 324 } g_lteHandoverDelayTestSuite; ///< the test suite |
LEFT | RIGHT |