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 * This program is free software; you can redistribute it and/or modify | 3 * This program is free software; you can redistribute it and/or modify |
4 * it under the terms of the GNU General Public License version 2 as | 4 * it under the terms of the GNU General Public License version 2 as |
5 * published by the Free Software Foundation; | 5 * published by the Free Software Foundation; |
6 * | 6 * |
7 * This program is distributed in the hope that it will be useful, | 7 * This program is distributed in the hope that it will be useful, |
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 8 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
10 * GNU General Public License for more details. | 10 * GNU General Public License for more details. |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 { | 69 { |
70 } | 70 } |
71 | 71 |
72 CsmaBridgeTestCase::~CsmaBridgeTestCase () | 72 CsmaBridgeTestCase::~CsmaBridgeTestCase () |
73 { | 73 { |
74 } | 74 } |
75 | 75 |
76 void· | 76 void· |
77 CsmaBridgeTestCase::SinkRx (Ptr<const Packet> p, const Address &ad) | 77 CsmaBridgeTestCase::SinkRx (Ptr<const Packet> p, const Address &ad) |
78 { | 78 { |
79 NS_UNUSED(ad); | 79 NS_UNUSED (ad); |
80 m_count++; | 80 m_count++; |
81 } | 81 } |
82 | 82 |
83 // Network topology | 83 // Network topology |
84 // | 84 // |
85 // n0 n1 | 85 // n0 n1 |
86 // | |· | 86 // | |· |
87 // ---------- | 87 // ---------- |
88 // | Switch | | 88 // | Switch | |
89 // ---------- | 89 // ---------- |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 { | 178 { |
179 } | 179 } |
180 | 180 |
181 CsmaBroadcastTestCase::~CsmaBroadcastTestCase () | 181 CsmaBroadcastTestCase::~CsmaBroadcastTestCase () |
182 { | 182 { |
183 } | 183 } |
184 | 184 |
185 void· | 185 void· |
186 CsmaBroadcastTestCase::SinkRxNode1 (Ptr<const Packet> p, const Address &ad) | 186 CsmaBroadcastTestCase::SinkRxNode1 (Ptr<const Packet> p, const Address &ad) |
187 { | 187 { |
188 NS_UNUSED(ad); | 188 NS_UNUSED (ad); |
189 m_countNode1++; | 189 m_countNode1++; |
190 } | 190 } |
191 | 191 |
192 void· | 192 void· |
193 CsmaBroadcastTestCase::SinkRxNode2 (Ptr<const Packet> p, const Address &ad) | 193 CsmaBroadcastTestCase::SinkRxNode2 (Ptr<const Packet> p, const Address &ad) |
194 { | 194 { |
195 NS_UNUSED(ad); | 195 NS_UNUSED (ad); |
196 m_countNode2++; | 196 m_countNode2++; |
197 } | 197 } |
198 | 198 |
199 void· | 199 void· |
200 CsmaBroadcastTestCase::DropEvent (Ptr<const Packet> p) | 200 CsmaBroadcastTestCase::DropEvent (Ptr<const Packet> p) |
201 { | 201 { |
202 m_drops++; | 202 m_drops++; |
203 } | 203 } |
204 | 204 |
205 // | 205 // |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 { | 298 { |
299 } | 299 } |
300 | 300 |
301 CsmaMulticastTestCase::~CsmaMulticastTestCase () | 301 CsmaMulticastTestCase::~CsmaMulticastTestCase () |
302 { | 302 { |
303 } | 303 } |
304 | 304 |
305 void· | 305 void· |
306 CsmaMulticastTestCase::SinkRx (Ptr<const Packet> p, const Address& ad) | 306 CsmaMulticastTestCase::SinkRx (Ptr<const Packet> p, const Address& ad) |
307 { | 307 { |
308 NS_UNUSED(ad); | 308 NS_UNUSED (ad); |
309 m_count++; | 309 m_count++; |
310 } | 310 } |
311 | 311 |
312 void· | 312 void· |
313 CsmaMulticastTestCase::DropEvent (Ptr<const Packet> p) | 313 CsmaMulticastTestCase::DropEvent (Ptr<const Packet> p) |
314 { | 314 { |
315 m_drops++; | 315 m_drops++; |
316 } | 316 } |
317 | 317 |
318 // Network topology | 318 // Network topology |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 { | 461 { |
462 } | 462 } |
463 | 463 |
464 CsmaOneSubnetTestCase::~CsmaOneSubnetTestCase () | 464 CsmaOneSubnetTestCase::~CsmaOneSubnetTestCase () |
465 { | 465 { |
466 } | 466 } |
467 | 467 |
468 void· | 468 void· |
469 CsmaOneSubnetTestCase::SinkRxNode0 (Ptr<const Packet> p, const Address &ad) | 469 CsmaOneSubnetTestCase::SinkRxNode0 (Ptr<const Packet> p, const Address &ad) |
470 { | 470 { |
471 NS_UNUSED(ad); | 471 NS_UNUSED (ad); |
472 m_countNode0++; | 472 m_countNode0++; |
473 } | 473 } |
474 | 474 |
475 void· | 475 void· |
476 CsmaOneSubnetTestCase::SinkRxNode1 (Ptr<const Packet> p, const Address &ad) | 476 CsmaOneSubnetTestCase::SinkRxNode1 (Ptr<const Packet> p, const Address &ad) |
477 { | 477 { |
478 NS_UNUSED(ad); | 478 NS_UNUSED (ad); |
479 m_countNode1++; | 479 m_countNode1++; |
480 } | 480 } |
481 | 481 |
482 void· | 482 void· |
483 CsmaOneSubnetTestCase::DropEvent (Ptr<const Packet> p) | 483 CsmaOneSubnetTestCase::DropEvent (Ptr<const Packet> p) |
484 { | 484 { |
485 m_drops++; | 485 m_drops++; |
486 } | 486 } |
487 | 487 |
488 // Network topology | 488 // Network topology |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
589 { | 589 { |
590 } | 590 } |
591 | 591 |
592 CsmaPacketSocketTestCase::~CsmaPacketSocketTestCase () | 592 CsmaPacketSocketTestCase::~CsmaPacketSocketTestCase () |
593 { | 593 { |
594 } | 594 } |
595 | 595 |
596 void· | 596 void· |
597 CsmaPacketSocketTestCase::SinkRx (std::string path, Ptr<const Packet> p, const A
ddress& address) | 597 CsmaPacketSocketTestCase::SinkRx (std::string path, Ptr<const Packet> p, const A
ddress& address) |
598 { | 598 { |
599 NS_UNUSED(address); | 599 NS_UNUSED (address); |
600 m_count++; | 600 m_count++; |
601 } | 601 } |
602 | 602 |
603 void· | 603 void· |
604 CsmaPacketSocketTestCase::DropEvent (Ptr<const Packet> p) | 604 CsmaPacketSocketTestCase::DropEvent (Ptr<const Packet> p) |
605 { | 605 { |
606 m_drops++; | 606 m_drops++; |
607 } | 607 } |
608 | 608 |
609 // | 609 // |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
698 { | 698 { |
699 } | 699 } |
700 | 700 |
701 CsmaPingTestCase::~CsmaPingTestCase () | 701 CsmaPingTestCase::~CsmaPingTestCase () |
702 { | 702 { |
703 } | 703 } |
704 | 704 |
705 void· | 705 void· |
706 CsmaPingTestCase::SinkRx (Ptr<const Packet> p, const Address &ad) | 706 CsmaPingTestCase::SinkRx (Ptr<const Packet> p, const Address &ad) |
707 { | 707 { |
708 NS_UNUSED(ad); | 708 NS_UNUSED (ad); |
709 m_countSinkRx++; | 709 m_countSinkRx++; |
710 } | 710 } |
711 | 711 |
712 void· | 712 void· |
713 CsmaPingTestCase::PingRtt (std::string context, Time rtt) | 713 CsmaPingTestCase::PingRtt (std::string context, Time rtt) |
714 { | 714 { |
715 m_countPingRtt++; | 715 m_countPingRtt++; |
716 } | 716 } |
717 | 717 |
718 void· | 718 void· |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
818 { | 818 { |
819 } | 819 } |
820 | 820 |
821 CsmaRawIpSocketTestCase::~CsmaRawIpSocketTestCase () | 821 CsmaRawIpSocketTestCase::~CsmaRawIpSocketTestCase () |
822 { | 822 { |
823 } | 823 } |
824 | 824 |
825 void· | 825 void· |
826 CsmaRawIpSocketTestCase::SinkRx (Ptr<const Packet> p, const Address &ad) | 826 CsmaRawIpSocketTestCase::SinkRx (Ptr<const Packet> p, const Address &ad) |
827 { | 827 { |
828 NS_UNUSED(ad); | 828 NS_UNUSED (ad); |
829 m_count++; | 829 m_count++; |
830 } | 830 } |
831 | 831 |
832 void· | 832 void· |
833 CsmaRawIpSocketTestCase::DropEvent (Ptr<const Packet> p) | 833 CsmaRawIpSocketTestCase::DropEvent (Ptr<const Packet> p) |
834 { | 834 { |
835 m_drops++; | 835 m_drops++; |
836 } | 836 } |
837 | 837 |
838 // | 838 // |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
917 { | 917 { |
918 } | 918 } |
919 | 919 |
920 CsmaStarTestCase::~CsmaStarTestCase () | 920 CsmaStarTestCase::~CsmaStarTestCase () |
921 { | 921 { |
922 } | 922 } |
923 | 923 |
924 void· | 924 void· |
925 CsmaStarTestCase::SinkRx (Ptr<const Packet> p, const Address& ad) | 925 CsmaStarTestCase::SinkRx (Ptr<const Packet> p, const Address& ad) |
926 { | 926 { |
927 NS_UNUSED(ad); | 927 NS_UNUSED (ad); |
928 m_count++; | 928 m_count++; |
929 } | 929 } |
930 | 930 |
931 void· | 931 void· |
932 CsmaStarTestCase::DropEvent (Ptr<const Packet> p) | 932 CsmaStarTestCase::DropEvent (Ptr<const Packet> p) |
933 { | 933 { |
934 m_drops++; | 934 m_drops++; |
935 } | 935 } |
936 | 936 |
937 // Network topology (default) | 937 // Network topology (default) |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1094 AddTestCase (new CsmaMulticastTestCase, TestCase::QUICK); | 1094 AddTestCase (new CsmaMulticastTestCase, TestCase::QUICK); |
1095 AddTestCase (new CsmaOneSubnetTestCase, TestCase::QUICK); | 1095 AddTestCase (new CsmaOneSubnetTestCase, TestCase::QUICK); |
1096 AddTestCase (new CsmaPacketSocketTestCase, TestCase::QUICK); | 1096 AddTestCase (new CsmaPacketSocketTestCase, TestCase::QUICK); |
1097 AddTestCase (new CsmaPingTestCase, TestCase::QUICK); | 1097 AddTestCase (new CsmaPingTestCase, TestCase::QUICK); |
1098 AddTestCase (new CsmaRawIpSocketTestCase, TestCase::QUICK); | 1098 AddTestCase (new CsmaRawIpSocketTestCase, TestCase::QUICK); |
1099 AddTestCase (new CsmaStarTestCase, TestCase::QUICK); | 1099 AddTestCase (new CsmaStarTestCase, TestCase::QUICK); |
1100 } | 1100 } |
1101 | 1101 |
1102 // Do not forget to allocate an instance of this TestSuite | 1102 // Do not forget to allocate an instance of this TestSuite |
1103 static CsmaSystemTestSuite csmaSystemTestSuite; | 1103 static CsmaSystemTestSuite csmaSystemTestSuite; |
LEFT | RIGHT |