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 |
| 3 #ifdef NS3_OPENFLOW |
2 | 4 |
3 // An essential include is test.h | 5 // An essential include is test.h |
4 #include "ns3/test.h" | 6 #include "ns3/test.h" |
5 | 7 |
| 8 #include "switch-net-device.h" |
6 #include "openflow-interface.h" | 9 #include "openflow-interface.h" |
7 | 10 |
8 // Do not put your test classes in namespace ns3. You may find it useful | 11 // Do not put your test classes in namespace ns3. You may find it useful |
9 // to use the using directive to access the ns3 namespace directly | 12 // to use the using directive to access the ns3 namespace directly |
10 using namespace ns3; | 13 using namespace ns3; |
11 | 14 |
12 // This is an example TestCase. | 15 // This is an example TestCase. |
13 class SwitchFlowTableTestCase : public TestCase | 16 class SwitchFlowTableTestCase : public TestCase |
14 { | 17 { |
15 public: | 18 public: |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 SwitchTestSuite (); | 165 SwitchTestSuite (); |
163 }; | 166 }; |
164 | 167 |
165 SwitchTestSuite::SwitchTestSuite () : TestSuite ("switch", UNIT) | 168 SwitchTestSuite::SwitchTestSuite () : TestSuite ("switch", UNIT) |
166 { | 169 { |
167 AddTestCase (new SwitchFlowTableTestCase); | 170 AddTestCase (new SwitchFlowTableTestCase); |
168 } | 171 } |
169 | 172 |
170 // Do not forget to allocate an instance of this TestSuite | 173 // Do not forget to allocate an instance of this TestSuite |
171 SwitchTestSuite switchTestSuite; | 174 SwitchTestSuite switchTestSuite; |
| 175 |
| 176 #endif // NS3_OPENFLOW |
LEFT | RIGHT |