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 The Boeing Company | 3 * Copyright (c) 2011 The Boeing Company |
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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 { | 92 { |
93 } | 93 } |
94 | 94 |
95 LrWpanErrorDistanceTestCase::~LrWpanErrorDistanceTestCase () | 95 LrWpanErrorDistanceTestCase::~LrWpanErrorDistanceTestCase () |
96 { | 96 { |
97 } | 97 } |
98 | 98 |
99 void | 99 void |
100 LrWpanErrorDistanceTestCase::Callback (McpsDataIndicationParams params, Ptr<Pack
et> p) | 100 LrWpanErrorDistanceTestCase::Callback (McpsDataIndicationParams params, Ptr<Pack
et> p) |
101 { | 101 { |
| 102 NS_UNUSED (params); |
102 m_received++; | 103 m_received++; |
103 } | 104 } |
104 | 105 |
105 void | 106 void |
106 LrWpanErrorDistanceTestCase::DoRun (void) | 107 LrWpanErrorDistanceTestCase::DoRun (void) |
107 { | 108 { |
108 // Set the random seed and run number for this test | 109 // Set the random seed and run number for this test |
109 RngSeedManager::SetSeed (1); | 110 RngSeedManager::SetSeed (1); |
110 RngSeedManager::SetRun (6); | 111 RngSeedManager::SetRun (6); |
111 | 112 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 }; | 212 }; |
212 | 213 |
213 LrWpanErrorModelTestSuite::LrWpanErrorModelTestSuite () | 214 LrWpanErrorModelTestSuite::LrWpanErrorModelTestSuite () |
214 : TestSuite ("lr-wpan-error-model", UNIT) | 215 : TestSuite ("lr-wpan-error-model", UNIT) |
215 { | 216 { |
216 AddTestCase (new LrWpanErrorModelTestCase, TestCase::QUICK); | 217 AddTestCase (new LrWpanErrorModelTestCase, TestCase::QUICK); |
217 AddTestCase (new LrWpanErrorDistanceTestCase, TestCase::QUICK); | 218 AddTestCase (new LrWpanErrorDistanceTestCase, TestCase::QUICK); |
218 } | 219 } |
219 | 220 |
220 static LrWpanErrorModelTestSuite g_lrWpanErrorModelTestSuite; //!< Static variab
le for test initialization | 221 static LrWpanErrorModelTestSuite g_lrWpanErrorModelTestSuite; //!< Static variab
le for test initialization |
OLD | NEW |