A Discrete-Event Network Simulator
API
tc-regression-test.h
Go to the documentation of this file.
1/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/*
3 * Copyright (c) 2009 IITP RAS
4 *
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
7 * published by the Free Software Foundation;
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 *
18 * Authors: Pavel Boyko <boyko@iitp.ru>
19 */
20
21#ifndef TC_REGRESSION_TEST_H
22#define TC_REGRESSION_TEST_H
23
24#include "ns3/test.h"
25#include "ns3/nstime.h"
26#include "ns3/socket.h"
27#include "ns3/ipv4-raw-socket-impl.h"
28#include "ns3/node-container.h"
29
30namespace ns3 {
31namespace olsr {
78{
79public:
82private:
84 const Time m_time;
86 void CreateNodes ();
87 void DoRun ();
88
93 void ReceivePktProbeA (Ptr<Socket> socket);
95 uint8_t m_countA;
98
103 void ReceivePktProbeB (Ptr<Socket> socket);
105 uint8_t m_countB;
108
113 void ReceivePktProbeC (Ptr<Socket> socket);
115 uint8_t m_countC;
118
119};
120
121}
122}
123
124#endif /* TC_REGRESSION_TEST_H */
encapsulates test code
Definition: test.h:994
Simulation virtual time values and global simulation resolution.
Definition: nstime.h:103
Less trivial test of OLSR Topology Control message generation.
void CreateNodes()
Create & configure test network.
void ReceivePktProbeB(Ptr< Socket > socket)
Receive raw data on node B.
uint8_t m_countB
Packet counter on node B.
Ptr< Ipv4RawSocketImpl > m_rxSocketB
Receiving socket on node B.
void ReceivePktProbeC(Ptr< Socket > socket)
Receive raw data on node C.
uint8_t m_countC
Packet counter on node C.
Ptr< Ipv4RawSocketImpl > m_rxSocketC
Receiving socket on node C.
void ReceivePktProbeA(Ptr< Socket > socket)
Receive raw data on node A.
void DoRun()
Implementation to actually run this TestCase.
const Time m_time
Total simulation time.
Ptr< Ipv4RawSocketImpl > m_rxSocketA
Receiving socket on node A.
uint8_t m_countA
Packet counter on node A.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Definition: olsr.py:1