A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
sixlowpan-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/sixlowpan-net-device.h"
10#include "ns3/traced-callback-typedef-test.h"
11
12/**
13 * @file
14 * @ingroup sixlowpan-tests
15 *
16 * Verify that the TracedCallback typedefs declared by the sixlowpan module are
17 * invoked with the right type and number of arguments.
18 */
19
20namespace ns3
21{
22
23#ifndef DOXYGEN_SHOULD_SKIP_THIS
26#endif // DOXYGEN_SHOULD_SKIP_THIS
27
28/**
29 * @ingroup sixlowpan-tests
30 *
31 * TracedCallback typedef Testcase for the sixlowpan module.
32 */
34{
35 public:
37
38 private:
39 void DoRun() override;
40};
41
46
47void
61
62/**
63 * @ingroup sixlowpan-tests
64 *
65 * @brief sixlowpan TracedCallback typedef TestSuite
66 */
72
78
79/// Static variable for test initialization
81
82} // namespace ns3
Smart pointer class similar to boost::intrusive_ptr.
Definition ptr.h:70
void(* DropTracedCallback)(DropReason reason, Ptr< const Packet > packet, Ptr< SixLowPanNetDevice > sixNetDevice, uint32_t ifindex)
TracedCallback signature for packet drop events.
DropReason
Enumeration of the dropping reasons in SixLoWPAN.
void(* RxTxTracedCallback)(Ptr< const Packet > packet, Ptr< SixLowPanNetDevice > sixNetDevice, uint32_t ifindex)
TracedCallback signature for packet send/receive events.
TracedCallback typedef Testcase for the sixlowpan 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.
#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 SixLowPanTracedCallbackTypedefTestSuite g_sixLowPanTracedCallbackTypedefTestSuite
Static variable for test initialization.