A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
bug780-test.h
Go to the documentation of this file.
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 {
31 class Bug780Test : public TestCase
32 {
33 public:
34  Bug780Test ();
35  ~Bug780Test ();
36 private:
38  static const char * const PREFIX;
40  const Time m_time;
42  void CreateNodes ();
44  void CheckResults ();
46  void DoRun ();
47 };
48 
49 }
50 }
51 
52 #endif /* BUG780_TEST_H */
Simulation virtual time values and global simulation resolution.
Definition: nstime.h:79
encapsulates test code
Definition: test.h:929
const Time m_time
Total simulation time.
Definition: bug780-test.h:40
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:38
void CreateNodes()
Create & configure test network.
Definition: bug780-test.cc:87