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) 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 12 matching lines...) Expand all Loading... |
23 #include "ns3/traced-value.h" | 23 #include "ns3/traced-value.h" |
24 #include "ns3/trace-source-accessor.h" | 24 #include "ns3/trace-source-accessor.h" |
25 #include "ns3/callback.h" | 25 #include "ns3/callback.h" |
26 | 26 |
27 #include "ns3/singleton.h" | 27 #include "ns3/singleton.h" |
28 #include "ns3/object.h" | 28 #include "ns3/object.h" |
29 #include "ns3/object-vector.h" | 29 #include "ns3/object-vector.h" |
30 #include "ns3/names.h" | 30 #include "ns3/names.h" |
31 #include "ns3/pointer.h" | 31 #include "ns3/pointer.h" |
32 #include "ns3/log.h" | 32 #include "ns3/log.h" |
| 33 #include "ns3/unused.h" |
33 | 34 |
34 | 35 |
35 #include <sstream> | 36 #include <sstream> |
36 | 37 |
37 /** | 38 /** |
38 * \file | 39 * \file |
39 * \ingroup core-tests | 40 * \ingroup core-tests |
40 * \ingroup config | 41 * \ingroup config |
41 * \ingroup config-tests | 42 * \ingroup config-tests |
42 * Config test suite | 43 * Config test suite |
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
614 /** Constructor. */ | 615 /** Constructor. */ |
615 ObjectVectorTraceConfigTestCase (); | 616 ObjectVectorTraceConfigTestCase (); |
616 /** Destructor. */ | 617 /** Destructor. */ |
617 virtual ~ObjectVectorTraceConfigTestCase () {} | 618 virtual ~ObjectVectorTraceConfigTestCase () {} |
618 | 619 |
619 /** | 620 /** |
620 * Trace callback without context. | 621 * Trace callback without context. |
621 * \param oldValue The old value. | 622 * \param oldValue The old value. |
622 * \param newValue The new value. | 623 * \param newValue The new value. |
623 */ | 624 */ |
624 void Trace (int16_t oldValue, int16_t newValue) { m_newValue = newValue; } | 625 void Trace (int16_t oldValue, int16_t newValue) |
| 626 {· |
| 627 NS_UNUSED (oldValue);· |
| 628 m_newValue = newValue; |
| 629 } |
625 /** | 630 /** |
626 * Trace callback with context path. | 631 * Trace callback with context path. |
627 * \param path The context path. | 632 * \param path The context path. |
628 * \param old The old value. | 633 * \param old The old value. |
629 * \param newValue The new value. | 634 * \param newValue The new value. |
630 */ | 635 */ |
631 void TraceWithPath (std::string path, int16_t old, int16_t newValue) | 636 void TraceWithPath (std::string path, int16_t old, int16_t newValue) |
632 { m_newValue = newValue; m_path = path; } | 637 {· |
| 638 NS_UNUSED (old);· |
| 639 m_newValue = newValue; |
| 640 m_path = path; |
| 641 } |
633 | 642 |
634 private: | 643 private: |
635 virtual void DoRun (void); | 644 virtual void DoRun (void); |
636 | 645 |
637 int16_t m_newValue; //!< Flag to detect tracing result. | 646 int16_t m_newValue; //!< Flag to detect tracing result. |
638 std::string m_path; //!< The context path. | 647 std::string m_path; //!< The context path. |
639 }; | 648 }; |
640 | 649 |
641 ObjectVectorTraceConfigTestCase::ObjectVectorTraceConfigTestCase () | 650 ObjectVectorTraceConfigTestCase::ObjectVectorTraceConfigTestCase () |
642 : 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... |
845 * \ingroup config-tests | 854 * \ingroup config-tests |
846 * ConfigTestSuite instance variable. | 855 * ConfigTestSuite instance variable. |
847 */ | 856 */ |
848 static ConfigTestSuite g_configTestSuite; | 857 static ConfigTestSuite g_configTestSuite; |
849 | 858 |
850 | 859 |
851 } // namespace tests | 860 } // namespace tests |
852 | 861 |
853 } // namespace ns3 | 862 } // namespace ns3 |
854 ···· | 863 ···· |
OLD | NEW |