26 #include "ns3/lte-spectrum-value-helper.h"
58 virtual void DoRun (
void);
76 double f = LteSpectrumValueHelper::GetCarrierFrequency (
m_earfcn);
102 virtual void DoRun (
void);
117 double f = LteSpectrumValueHelper::GetDownlinkCarrierFrequency (
m_earfcn);
143 virtual void DoRun (
void);
154 double f = LteSpectrumValueHelper::GetUplinkCarrierFrequency (
m_earfcn);
double f(double x, void *params)
Test case that is testing if the downlink frequency is properly converted from provided downlink EARF...
LteEarfcnDlTestCase(const char *str, uint32_t earfcn, double f)
Constructor.
virtual void DoRun(void)
Implementation to actually run this TestCase.
Test case that is testing if the frequency is properly generated from provided EARFCN frequency.
virtual ~LteEarfcnTestCase()
virtual void DoRun(void)
Implementation to actually run this TestCase.
uint32_t m_earfcn
the EARFCN
LteEarfcnTestCase(const char *str, uint32_t earfcn, double f)
Constructor.
Test suite for testing correct conversion of frequencies in the downlink and the uplink,...
Test case that is testing if the uplink frequency is properly converted from provided uplink EARFCN f...
virtual void DoRun(void)
Implementation to actually run this TestCase.
LteEarfcnUlTestCase(const char *str, uint32_t earfcn, double f)
Constructor.
void AddTestCase(TestCase *testCase, TestDuration duration=QUICK)
Add an individual child TestCase to this test suite.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#define NS_TEST_ASSERT_MSG_EQ_TOL(actual, limit, tol, msg)
Test that actual and expected (limit) values are equal to plus or minus some tolerance and report and...
static LteEarfcnTestSuite g_lteEarfcnTestSuite
Every class exported by the ns3 library is enclosed in the ns3 namespace.