A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
error-model-test-suite.cc File Reference
#include "ns3/address.h"
#include "ns3/callback.h"
#include "ns3/double.h"
#include "ns3/error-model.h"
#include "ns3/mac48-address.h"
#include "ns3/node.h"
#include "ns3/packet.h"
#include "ns3/pointer.h"
#include "ns3/queue.h"
#include "ns3/rng-seed-manager.h"
#include "ns3/simple-channel.h"
#include "ns3/simple-net-device.h"
#include "ns3/simulator.h"
#include "ns3/string.h"
#include "ns3/test.h"
+ Include dependency graph for error-model-test-suite.cc:

Go to the source code of this file.

Classes

class  BurstErrorModelSimple
 BurstErrorModel unit tests. More...
 
class  ErrorModelSimple
 ErrorModel unit tests. More...
 
class  ErrorModelTestSuite
 ErrorModel TestSuite. More...
 

Functions

static void BuildSimpleTopology (Ptr< Node > a, Ptr< Node > b, Ptr< SimpleNetDevice > input, Ptr< SimpleNetDevice > output, Ptr< SimpleChannel > channel)
 
static void SendPacket (int num, Ptr< NetDevice > device, Address &addr)
 

Variables

static ErrorModelTestSuite errorModelTestSuite
 Static variable for test initialization.
 

Function Documentation

◆ BuildSimpleTopology()

static void BuildSimpleTopology ( Ptr< Node a,
Ptr< Node b,
Ptr< SimpleNetDevice input,
Ptr< SimpleNetDevice output,
Ptr< SimpleChannel channel 
)
static

Definition at line 57 of file error-model-test-suite.cc.

References ns3::Mac48Address::Allocate(), ns3::ObjectFactory::Create(), ns3::ObjectFactory::Set(), and ns3::ObjectFactory::SetTypeId().

Referenced by ErrorModelSimple::DoRun(), and BurstErrorModelSimple::DoRun().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendPacket()

static void SendPacket ( int  num,
Ptr< NetDevice device,
Address addr 
)
static

Definition at line 46 of file error-model-test-suite.cc.

Referenced by ErrorModelSimple::DoRun(), and BurstErrorModelSimple::DoRun().

+ Here is the caller graph for this function:

Variable Documentation

◆ errorModelTestSuite

ErrorModelTestSuite errorModelTestSuite
static

Static variable for test initialization.

Definition at line 315 of file error-model-test-suite.cc.