A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
uan-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/traced-callback-typedef-test.h"
10#include "ns3/uan-mac-cw.h"
11#include "ns3/uan-mac-rc.h"
12#include "ns3/uan-mac.h"
13#include "ns3/uan-net-device.h"
14#include "ns3/uan-phy.h"
15
16/**
17 * @file
18 * @ingroup uan-test
19 *
20 * Verify that the TracedCallback typedefs declared by the uan module are
21 * invoked with the right type and number of arguments.
22 */
23
24namespace ns3
25{
26
27#ifndef DOXYGEN_SHOULD_SKIP_THIS
33#endif // DOXYGEN_SHOULD_SKIP_THIS
34
35/**
36 * @ingroup uan-test
37 *
38 * TracedCallback typedef Testcase for the uan module.
39 */
41{
42 public:
44
45 private:
46 void DoRun() override;
47};
48
53
54void
67
68/**
69 * @ingroup uan-test
70 *
71 * @brief uan TracedCallback typedef TestSuite
72 */
78
84
85/// Static variable for test initialization
87
88} // namespace ns3
A class used for addressing MAC8 MAC's.
Smart pointer class similar to boost::intrusive_ptr.
Definition ptr.h:70
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(* QueueTracedCallback)(Ptr< const Packet > packet, uint16_t proto)
TracedCallback signature for enqueue/dequeue of a packet.
Definition uan-mac-cw.h:96
void(* PacketModeTracedCallback)(Ptr< const Packet > packet, UanTxMode mode)
TracedCallback signature for packet reception/enqueue/dequeue events.
Definition uan-mac.h:113
void(* QueueTracedCallback)(Ptr< const Packet > packet, uint32_t proto)
TracedCallback signature for dequeue of a packet.
Definition uan-mac-rc.h:189
void(* RxTxTracedCallback)(Ptr< const Packet > packet, Mac8Address address)
TracedCallback signature for MAC send/receive events.
void(* TracedCallback)(Ptr< const Packet > pkt, double sinr, UanTxMode mode)
TracedCallback signature for UanPhy packet send/receive events.
Definition uan-phy.h:208
TracedCallback typedef Testcase for the uan module.
void DoRun() override
Implementation to actually run this TestCase.
Abstraction of packet modulation information.
Definition uan-tx-mode.h:32
#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 UanTracedCallbackTypedefTestSuite g_uanTracedCallbackTypedefTestSuite
Static variable for test initialization.