A Discrete-Event Network Simulator
trickle-timer-test-suite.cc File Reference

Trickle Timer test suite. More...

#include "ns3/trickle-timer.h"
#include "ns3/test.h"
#include <vector>
#include <numeric>
#include <algorithm>
+ Include dependency graph for trickle-timer-test-suite.cc:

Go to the source code of this file.


class  ns3::tests::TrickleTimerTestCase
 TrickleTimer test. More...
class  ns3::tests::TrickleTimerTestSuite
 Trickle Timer test suite. More...


 Every class exported by the ns3 library is enclosed in the ns3 namespace.
 Namespace for test files, TestCases and TestSuites.


static TrickleTimerTestSuite ns3::tests::g_trickleTimerTestSuite
 TrickleTimerTestSuite instance variable. More...

Detailed Description

Trickle Timer test suite.

This test checks that the timer, in steady-state mode (i.e., after the transient period) have a frequency between [I/2, I + I/2].

The test also checks that the redundancy works, i.e., if the timer receives enough "consistent" events it will suppress its output.

Definition in file trickle-timer-test-suite.cc.