A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
lr-wpan-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/lr-wpan-mac.h"
10#include "ns3/lr-wpan-phy.h"
11#include "ns3/traced-callback-typedef-test.h"
12
13/**
14 * @file
15 * @ingroup lr-wpan-test
16 *
17 * Verify that the TracedCallback typedefs declared by the lr-wpan module are
18 * invoked with the right type and number of arguments.
19 */
20
21namespace ns3
22{
23
24#ifndef DOXYGEN_SHOULD_SKIP_THIS
28#endif // DOXYGEN_SHOULD_SKIP_THIS
29
30/**
31 * @ingroup lr-wpan-test
32 *
33 * TracedCallback typedef Testcase for the lr-wpan module.
34 */
36{
37 public:
39
40 private:
41 void DoRun() override;
42};
43
48
49void
66
67/**
68 * @ingroup lr-wpan-test
69 *
70 * @brief lr-wpan TracedCallback typedef TestSuite
71 */
77
83
84/// Static variable for test initialization
86
87} // namespace ns3
TracedCallback typedef Testcase for the lr-wpan module.
void DoRun() override
Implementation to actually run this TestCase.
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.
void(* StateTracedCallback)(MacState oldState, MacState newState)
TracedCallback signature for MacState change events.
void(* SentTracedCallback)(Ptr< const Packet > packet, uint8_t retries, uint8_t backoffs)
TracedCallback signature for sent packets.
void(* StateTracedCallback)(Time time, PhyEnumeration oldState, PhyEnumeration newState)
TracedCallback signature for Trx state change 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.
MacState
MAC states.
Definition lr-wpan-mac.h:65
PhyEnumeration
IEEE802.15.4-2006 PHY Emumerations Table 18 in section 6.2.3.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
static LrWpanTracedCallbackTypedefTestSuite g_lrWpanTracedCallbackTypedefTestSuite
Static variable for test initialization.