A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
spectrum-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/spectrum-channel.h"
10#include "ns3/spectrum-value.h"
11#include "ns3/traced-callback-typedef-test.h"
12
13/**
14 * @file
15 * @ingroup spectrum-tests
16 *
17 * Verify that the TracedCallback typedefs declared by the spectrum module are
18 * invoked with the right type and number of arguments.
19 */
20
21namespace ns3
22{
23
24#ifndef DOXYGEN_SHOULD_SKIP_THIS
27#endif // DOXYGEN_SHOULD_SKIP_THIS
28
29/**
30 * @ingroup spectrum-tests
31 *
32 * TracedCallback typedef Testcase for the spectrum module.
33 */
35{
36 public:
38
39 private:
40 void DoRun() override;
41};
42
47
48void
58
59/**
60 * @ingroup spectrum-tests
61 *
62 * @brief spectrum TracedCallback typedef TestSuite
63 */
69
75
76/// Static variable for test initialization
78
79} // namespace ns3
Smart pointer class similar to boost::intrusive_ptr.
Definition ptr.h:70
void(* LossTracedCallback)(Ptr< const SpectrumPhy > txPhy, Ptr< const SpectrumPhy > rxPhy, double lossDb)
TracedCallback signature for path loss calculation events.
TracedCallback typedef Testcase for the spectrum module.
void DoRun() override
Implementation to actually run this TestCase.
void(* TracedCallback)(Ptr< SpectrumValue > value)
TracedCallback signature for SpectrumValue.
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.
#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 SpectrumTracedCallbackTypedefTestSuite g_spectrumTracedCallbackTypedefTestSuite
Static variable for test initialization.