A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
wifi-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/wifi-mac-header.h"
11#include "ns3/wifi-phy-state-helper.h"
12#include "ns3/wifi-remote-station-manager.h"
13
14/**
15 * @file
16 * @ingroup wifi-test
17 *
18 * Verify that the TracedCallback typedefs declared by the wifi module are
19 * invoked with the right type and number of arguments.
20 */
21
22namespace ns3
23{
24
25#ifndef DOXYGEN_SHOULD_SKIP_THIS
33#endif // DOXYGEN_SHOULD_SKIP_THIS
34
35/**
36 * @ingroup wifi-test
37 *
38 * TracedCallback typedef Testcase for the wifi module.
39 */
41{
42 public:
44
45 private:
46 void DoRun() override;
47};
48
53
54void
85
86/**
87 * @ingroup wifi-test
88 *
89 * @brief wifi TracedCallback typedef TestSuite
90 */
96
102
103/// Static variable for test initialization
105
106} // namespace ns3
Class for representing data rates.
Definition data-rate.h:78
an EUI-48 address
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
Simulation virtual time values and global simulation resolution.
Definition nstime.h:95
TracedCallbackTypedefTestCase(std::string name)
Constructor.
Implements the IEEE 802.11 MAC header.
void(* TracedCallback)(const WifiMacHeader &header)
TracedCallback signature for WifiMacHeader.
represent a single transmission mode
Definition wifi-mode.h:39
void(* StateTracedCallback)(Time start, Time duration, WifiPhyState state)
TracedCallback signature for state changes.
void(* RxEndErrorTracedCallback)(Ptr< const Packet > packet, double snr)
TracedCallback signature for receive end error event.
void(* RxOkTracedCallback)(Ptr< const Packet > packet, double snr, WifiMode mode, WifiPreamble preamble)
TracedCallback signature for receive end OK event.
void(* TxTracedCallback)(Ptr< const Packet > packet, WifiMode mode, WifiPreamble preamble, uint8_t powerLevel)
TracedCallback signature for transmit event.
void(* PowerChangeTracedCallback)(double oldPower, double newPower, Mac48Address remoteAddress)
TracedCallback signature for power change events.
void(* RateChangeTracedCallback)(DataRate oldRate, DataRate newRate, Mac48Address remoteAddress)
TracedCallback signature for rate change events.
TracedCallback typedef Testcase for the wifi module.
void DoRun() override
Implementation to actually run this TestCase.
#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.
WifiPreamble
The type of preamble to be used by an IEEE 802.11 transmission.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
WifiPhyState
The state of the PHY layer.
static WifiTracedCallbackTypedefTestSuite g_wifiTracedCallbackTypedefTestSuite
Static variable for test initialization.