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) 2008 INRIA | 3 * Copyright (c) 2008 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 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
615 /** Constructor. */ | 615 /** Constructor. */ |
616 ObjectVectorTraceConfigTestCase (); | 616 ObjectVectorTraceConfigTestCase (); |
617 /** Destructor. */ | 617 /** Destructor. */ |
618 virtual ~ObjectVectorTraceConfigTestCase () {} | 618 virtual ~ObjectVectorTraceConfigTestCase () {} |
619 | 619 |
620 /** | 620 /** |
621 * Trace callback without context. | 621 * Trace callback without context. |
622 * \param oldValue The old value. | 622 * \param oldValue The old value. |
623 * \param newValue The new value. | 623 * \param newValue The new value. |
624 */ | 624 */ |
625 void Trace (int16_t oldValue, int16_t newValue) { NS_UNUSED(oldValue); m_newVa
lue = newValue; } | 625 void Trace (int16_t oldValue, int16_t newValue) |
| 626 {· |
| 627 NS_UNUSED (oldValue);· |
| 628 m_newValue = newValue; |
| 629 } |
626 /** | 630 /** |
627 * Trace callback with context path. | 631 * Trace callback with context path. |
628 * \param path The context path. | 632 * \param path The context path. |
629 * \param old The old value. | 633 * \param old The old value. |
630 * \param newValue The new value. | 634 * \param newValue The new value. |
631 */ | 635 */ |
632 void TraceWithPath (std::string path, int16_t old, int16_t newValue) | 636 void TraceWithPath (std::string path, int16_t old, int16_t newValue) |
633 { NS_UNUSED(old); m_newValue = newValue; m_path = path; } | 637 { |
| 638 NS_UNUSED (old);· |
| 639 m_newValue = newValue; |
| 640 m_path = path; |
| 641 } |
634 | 642 |
635 private: | 643 private: |
636 virtual void DoRun (void); | 644 virtual void DoRun (void); |
637 | 645 |
638 int16_t m_newValue; //!< Flag to detect tracing result. | 646 int16_t m_newValue; //!< Flag to detect tracing result. |
639 std::string m_path; //!< The context path. | 647 std::string m_path; //!< The context path. |
640 }; | 648 }; |
641 | 649 |
642 ObjectVectorTraceConfigTestCase::ObjectVectorTraceConfigTestCase () | 650 ObjectVectorTraceConfigTestCase::ObjectVectorTraceConfigTestCase () |
643 : TestCase ("Check ability to trace connect through vectors of Object using re
gular expressions") | 651 : TestCase ("Check ability to trace connect through vectors of Object using re
gular expressions") |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
846 * \ingroup config-tests | 854 * \ingroup config-tests |
847 * ConfigTestSuite instance variable. | 855 * ConfigTestSuite instance variable. |
848 */ | 856 */ |
849 static ConfigTestSuite g_configTestSuite; | 857 static ConfigTestSuite g_configTestSuite; |
850 | 858 |
851 | 859 |
852 } // namespace tests | 860 } // namespace tests |
853 | 861 |
854 } // namespace ns3 | 862 } // namespace ns3 |
855 ···· | 863 ···· |
LEFT | RIGHT |