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) 2005,2006 INRIA | 3 * Copyright (c) 2005,2006 INRIA |
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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 { | 276 { |
277 uint8_t v = iter.ReadU8 (); | 277 uint8_t v = iter.ReadU8 (); |
278 if (v != N) | 278 if (v != N) |
279 { | 279 { |
280 m_error = true; | 280 m_error = true; |
281 } | 281 } |
282 } | 282 } |
283 return N; | 283 return N; |
284 } | 284 } |
285 virtual void Print (std::ostream &os) const { | 285 virtual void Print (std::ostream &os) const { |
286 NS_UNUSED(os); | 286 NS_UNUSED (os); |
287 } | 287 } |
288 ATestHeader () | 288 ATestHeader () |
289 : ATestHeaderBase () {} | 289 : ATestHeaderBase () {} |
290 | 290 |
291 }; | 291 }; |
292 | 292 |
293 /** | 293 /** |
294 * \ingroup network-test | 294 * \ingroup network-test |
295 * \ingroup tests | 295 * \ingroup tests |
296 * | 296 * |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 { | 365 { |
366 uint8_t v = iter.ReadU8 (); | 366 uint8_t v = iter.ReadU8 (); |
367 if (v != N) | 367 if (v != N) |
368 { | 368 { |
369 m_error = true; | 369 m_error = true; |
370 } | 370 } |
371 } | 371 } |
372 return N; | 372 return N; |
373 } | 373 } |
374 virtual void Print (std::ostream &os) const { | 374 virtual void Print (std::ostream &os) const { |
375 NS_UNUSED(os); | 375 NS_UNUSED (os); |
376 } | 376 } |
377 ATestTrailer () | 377 ATestTrailer () |
378 : ATestTrailerBase () {} | 378 : ATestTrailerBase () {} |
379 | 379 |
380 }; | 380 }; |
381 | 381 |
382 /** | 382 /** |
383 * \ingroup network-test | 383 * \ingroup network-test |
384 * \ingroup tests | 384 * \ingroup tests |
385 * | 385 * |
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1050 }; | 1050 }; |
1051 | 1051 |
1052 PacketTestSuite::PacketTestSuite () | 1052 PacketTestSuite::PacketTestSuite () |
1053 : TestSuite ("packet", UNIT) | 1053 : TestSuite ("packet", UNIT) |
1054 { | 1054 { |
1055 AddTestCase (new PacketTest, TestCase::QUICK); | 1055 AddTestCase (new PacketTest, TestCase::QUICK); |
1056 AddTestCase (new PacketTagListTest, TestCase::QUICK); | 1056 AddTestCase (new PacketTagListTest, TestCase::QUICK); |
1057 } | 1057 } |
1058 | 1058 |
1059 static PacketTestSuite g_packetTestSuite; //!< Static variable for test initiali
zation | 1059 static PacketTestSuite g_packetTestSuite; //!< Static variable for test initiali
zation |
LEFT | RIGHT |