A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
dsr-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/dsr-option-header.h"
10#include "ns3/traced-callback-typedef-test.h"
11
12/**
13 * @file
14 * @ingroup dsr-test
15 *
16 * Verify that the TracedCallback typedefs declared by the dsr 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 dsr-test
29 *
30 * TracedCallback typedef Testcase for the dsr module.
31 */
33{
34 public:
36
37 private:
38 void DoRun() override;
39};
40
45
46void
51
52/**
53 * @ingroup dsr-test
54 *
55 * @brief dsr TracedCallback typedef TestSuite
56 */
62
68
69/// Static variable for test initialization
71
72} // namespace ns3
TracedCallback typedef Testcase for the dsr 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.
Header of Dsr Option Source Route.
void(* TracedCallback)(const DsrOptionSRHeader &header)
TracedCallback signature for DsrOptionSrHeader.
#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 DsrTracedCallbackTypedefTestSuite g_dsrTracedCallbackTypedefTestSuite
Static variable for test initialization.