A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
mesh-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/peer-management-protocol.h"
10#include "ns3/traced-callback-typedef-test.h"
11
12/**
13 * @file
14 * @ingroup mesh-test
15 *
16 * Verify that the TracedCallback typedefs declared by the mesh module are
17 * invoked with the right type and number of arguments.
18 */
19
20namespace ns3
21{
22
23#ifndef DOXYGEN_SHOULD_SKIP_THIS
25#endif // DOXYGEN_SHOULD_SKIP_THIS
26
27/**
28 * @ingroup mesh-test
29 *
30 * TracedCallback typedef Testcase for the mesh module.
31 */
33{
34 public:
36
37 private:
38 void DoRun() override;
39};
40
45
46void
53
54/**
55 * @ingroup mesh-test
56 *
57 * @brief mesh TracedCallback typedef TestSuite
58 */
64
70
71/// Static variable for test initialization
73
74} // namespace ns3
TracedCallback typedef Testcase for the mesh module.
void DoRun() override
Implementation to actually run this TestCase.
an EUI-48 address
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.
void(* LinkOpenCloseTracedCallback)(Mac48Address src, const Mac48Address dst)
TracedCallback signature for link open/close events.
#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.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
static Dot11sTracedCallbackTypedefTestSuite g_dot11sTracedCallbackTypedefTestSuite
Static variable for test initialization.