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) 2014 Universita' di Firenze, Italy | 3 * Copyright (c) 2014 Universita' di Firenze, Italy |
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 { | 62 { |
63 m_rxPackets = 0; | 63 m_rxPackets = 0; |
64 } | 64 } |
65 | 65 |
66 LrWpanCollisionTestCase::~LrWpanCollisionTestCase () | 66 LrWpanCollisionTestCase::~LrWpanCollisionTestCase () |
67 { | 67 { |
68 } | 68 } |
69 | 69 |
70 void LrWpanCollisionTestCase::DataIndication (McpsDataIndicationParams params, P
tr<Packet> p) | 70 void LrWpanCollisionTestCase::DataIndication (McpsDataIndicationParams params, P
tr<Packet> p) |
71 { | 71 { |
| 72 NS_UNUSED (params); |
72 m_rxPackets++; | 73 m_rxPackets++; |
73 } | 74 } |
74 | 75 |
75 | 76 |
76 void | 77 void |
77 LrWpanCollisionTestCase::DoRun (void) | 78 LrWpanCollisionTestCase::DoRun (void) |
78 { | 79 { |
79 | 80 |
80 // Create 3 nodes, and a NetDevice for each one | 81 // Create 3 nodes, and a NetDevice for each one |
81 Ptr<Node> n0 = CreateObject <Node> (); | 82 Ptr<Node> n0 = CreateObject <Node> (); |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 LrWpanCollisionTestSuite (); | 237 LrWpanCollisionTestSuite (); |
237 }; | 238 }; |
238 | 239 |
239 LrWpanCollisionTestSuite::LrWpanCollisionTestSuite () | 240 LrWpanCollisionTestSuite::LrWpanCollisionTestSuite () |
240 : TestSuite ("lr-wpan-collision", UNIT) | 241 : TestSuite ("lr-wpan-collision", UNIT) |
241 { | 242 { |
242 AddTestCase (new LrWpanCollisionTestCase, TestCase::QUICK); | 243 AddTestCase (new LrWpanCollisionTestCase, TestCase::QUICK); |
243 } | 244 } |
244 | 245 |
245 static LrWpanCollisionTestSuite g_lrWpanCollisionTestSuite; //!< Static variable
for test initialization | 246 static LrWpanCollisionTestSuite g_lrWpanCollisionTestSuite; //!< Static variable
for test initialization |
OLD | NEW |