A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
olsr-traced-callback-typedef-test-suite.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2015 Lawrence Livermore National Laboratory
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Author: Peter D. Barnes, Jr. <pdbarnes@llnl.gov>
7 */
8
9#include "ns3/olsr-header.h"
10#include "ns3/olsr-routing-protocol.h"
11#include "ns3/traced-callback-typedef-test.h"
12
13/**
14 * @file
15 * @ingroup olsr-test
16 *
17 * Verify that the TracedCallback typedefs declared by the olsr module are
18 * invoked with the right type and number of arguments.
19 */
20
21namespace ns3
22{
23
24#ifndef DOXYGEN_SHOULD_SKIP_THIS
27#endif // DOXYGEN_SHOULD_SKIP_THIS
28
29/**
30 * @ingroup olsr-test
31 *
32 * TracedCallback typedef Testcase for the olsr module.
33 */
35{
36 public:
38
39 private:
40 void DoRun() override;
41};
42
47
48void
57
58/**
59 * @ingroup olsr-test
60 *
61 * @brief olsr TracedCallback typedef TestSuite
62 */
68
74
75/// Static variable for test initialization
77
78} // namespace ns3
TracedCallback typedef Testcase for the olsr module.
void DoRun() override
Implementation to actually run this TestCase.
void AddTestCase(TestCase *testCase, Duration duration=Duration::QUICK)
Add an individual child TestCase to this test suite.
Definition test.cc:296
@ QUICK
Fast test.
Definition test.h:1057
Type
Type of test.
Definition test.h:1271
TestSuite(std::string name, Type type=Type::UNIT)
Construct a new test suite.
Definition test.cc:494
TracedCallbackTypedefTestCase(std::string name)
Constructor.
The basic layout of any packet in OLSR is as follows (omitting IP and UDP headers):
Definition olsr-header.h:68
void(* PacketTxRxTracedCallback)(const PacketHeader &header, const MessageList &messages)
TracedCallback signature for Packet transmit and receive events.
void(* TableChangeTracedCallback)(uint32_t size)
TracedCallback signature for routing table computation.
#define TRACED_CALLBACK_CHECK(U,...)
Check the TracedCallback by calling its Invoke function.
#define TRACED_CALLBACK_TYPENAME(T)
Declare the stringified name of a TracedCallback typedef.
std::vector< MessageHeader > MessageList
Every class exported by the ns3 library is enclosed in the ns3 namespace.
static OlsrTracedCallbackTypedefTestSuite g_olsrTracedCallbackTypedefTestSuite
Static variable for test initialization.