A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
bug780-test.h
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
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
5  * published by the Free Software Foundation;
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software
14  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15  *
16  * Authors: Pavel Boyko <boyko@iitp.ru>
17  */
18 
19 #ifndef BUG780_TEST_H
20 #define BUG780_TEST_H
21 
22 #include "ns3/test.h"
23 #include "ns3/nstime.h"
24 #include "ns3/node-container.h"
25 
26 namespace ns3
27 {
28 namespace olsr
29 {
30 class Bug780Test : public TestCase
31 {
32 public:
33  Bug780Test ();
34  ~Bug780Test ();
35 private:
37  static const char * const PREFIX;
39  const Time m_time;
41  void CreateNodes ();
43  void CheckResults ();
45  void DoRun ();
46 };
47 
48 }
49 }
50 
51 #endif /* BUG780_TEST_H */
keep track of time unit.
Definition: nstime.h:149
encapsulates test code
Definition: test.h:834
const Time m_time
Total simulation time.
Definition: bug780-test.h:39
void CheckResults()
Compare traces with reference ones.
Definition: bug780-test.cc:184
static const char *const PREFIX
Unique PCAP files prefix for this test.
Definition: bug780-test.h:37
void CreateNodes()
Create & configure test network.
Definition: bug780-test.cc:87