Callback test suite. More...
#include "ns3/callback.h"
#include "ns3/test.h"
#include <stdint.h>
Go to the source code of this file.
Classes | |
class | BasicCallbackTestCase |
Test the basic Callback mechanism. More... | |
class | CallbackEqualityTestCase |
Test the callback equality implementation. More... | |
class | CallbackTestClass |
Derived class used to check the capability of callbacks to call public, protected, and private functions. More... | |
class | CallbackTestParent |
Class used to check the capability of callbacks to call public, protected, and private functions. More... | |
class | CallbackTestSuite |
The callback Test Suite. More... | |
class | MakeBoundCallbackTestCase |
Test the MakeBoundCallback mechanism. More... | |
class | MakeCallbackTemplatesTestCase |
Make sure that various MakeCallback template functions compile and execute; doesn't check an results of the execution. More... | |
class | MakeCallbackTestCase |
Test the MakeCallback mechanism. More... | |
class | NullifyCallbackTestCase |
Test the Nullify mechanism. More... | |
Functions | |
void | BasicCallbackTarget5 () |
Callback 5 target function. More... | |
void | BasicCallbackTarget6 (int) |
Callback 6 target function. More... | |
int | BasicCallbackTarget7 (int a) |
Callback 6 target function. More... | |
int | CallbackEqualityTarget (double a, int b) |
Non-member function used to test equality of callbacks. More... | |
void | MakeBoundCallbackTarget1 (int a) |
MakeBoundCallback 1 target function. More... | |
void | MakeBoundCallbackTarget2 (bool *a) |
MakeBoundCallback 2 target function. More... | |
int | MakeBoundCallbackTarget3 (bool *a, int b) |
MakeBoundCallback 3 target function. More... | |
void | MakeBoundCallbackTarget4 (int a, int b) |
MakeBoundCallback 4 target function. More... | |
int | MakeBoundCallbackTarget5 (int a, int b) |
MakeBoundCallback 5 target function. More... | |
int | MakeBoundCallbackTarget6 (int a, int b, int c) |
MakeBoundCallback 5 target function. More... | |
void | MakeBoundCallbackTarget7 (int a, int b, int c) |
MakeBoundCallback 7 target function. More... | |
int | MakeBoundCallbackTarget8 (int a, int b, int c) |
MakeBoundCallback 8 target function. More... | |
int | MakeBoundCallbackTarget9 (int a, int b, int c, int d) |
MakeBoundCallback 5 target function. More... | |
void | MakeCallbackTarget5 () |
MakeCallback 5 target function. More... | |
void | MakeCallbackTarget6 (int) |
MakeCallback 6 target function. More... | |
int | MakeCallbackTarget7 (int a) |
MakeCallback 7 target function. More... | |
void | TestFFive (int, int, int, int, int) |
Test function - does nothing. More... | |
void | TestFFour (int, int, int, int) |
Test function - does nothing. More... | |
void | TestFOne (int) |
Test function - does nothing. More... | |
void | TestFRFive (int &, int &, int &, int &, int &) |
Test function - does nothing. More... | |
void | TestFRFour (int &, int &, int &, int &) |
Test function - does nothing. More... | |
void | TestFROne (int &) |
Test function - does nothing. More... | |
void | TestFRSix (int &, int &, int &, int &, int &, int &) |
Test function - does nothing. More... | |
void | TestFRThree (int &, int &, int &) |
Test function - does nothing. More... | |
void | TestFRTwo (int &, int &) |
Test function - does nothing. More... | |
void | TestFSix (int, int, int, int, int, int) |
Test function - does nothing. More... | |
void | TestFThree (int, int, int) |
Test function - does nothing. More... | |
void | TestFTwo (int, int) |
Test function - does nothing. More... | |
void | TestFZero () |
Test function - does nothing. More... | |
Variables | |
static CallbackTestSuite | g_gallbackTestSuite |
Static variable for test initialization. More... | |
static bool | gBasicCallbackTest5 |
Variable to verify that a callback has been called. More... | |
static bool | gBasicCallbackTest6 |
Variable to verify that a callback has been called. More... | |
static bool | gBasicCallbackTest7 |
Variable to verify that a callback has been called. More... | |
static bool | gBasicCallbackTest8 |
Variable to verify that a callback has been called. More... | |
static bool | gMakeCallbackTest5 |
Variable to verify that a callback has been called. More... | |
static bool | gMakeCallbackTest6 |
Variable to verify that a callback has been called. More... | |
static bool | gMakeCallbackTest7 |
Variable to verify that a callback has been called. More... | |
static int | gMakeBoundCallbackTest1 |
Variable to verify that a callback has been called. More... | |
static bool * | gMakeBoundCallbackTest2 |
Variable to verify that a callback has been called. More... | |
static bool * | gMakeBoundCallbackTest3a |
Variable to verify that a callback has been called. More... | |
static int | gMakeBoundCallbackTest3b |
Variable to verify that a callback has been called. More... | |
static int | gMakeBoundCallbackTest4a |
Variable to verify that a callback has been called. More... | |
static int | gMakeBoundCallbackTest4b |
Variable to verify that a callback has been called. More... | |
static int | gMakeBoundCallbackTest5a |
Variable to verify that a callback has been called. More... | |
static int | gMakeBoundCallbackTest5b |
Variable to verify that a callback has been called. More... | |
static int | gMakeBoundCallbackTest5c |
Variable to verify that a callback has been called. More... | |
static int | gMakeBoundCallbackTest6a |
Variable to verify that a callback has been called. More... | |
static int | gMakeBoundCallbackTest6b |
Variable to verify that a callback has been called. More... | |
static int | gMakeBoundCallbackTest6c |
Variable to verify that a callback has been called. More... | |
static int | gMakeBoundCallbackTest7a |
Variable to verify that a callback has been called. More... | |
static int | gMakeBoundCallbackTest7b |
Variable to verify that a callback has been called. More... | |
static int | gMakeBoundCallbackTest7c |
Variable to verify that a callback has been called. More... | |
static int | gMakeBoundCallbackTest8a |
Variable to verify that a callback has been called. More... | |
static int | gMakeBoundCallbackTest8b |
Variable to verify that a callback has been called. More... | |
static int | gMakeBoundCallbackTest8c |
Variable to verify that a callback has been called. More... | |
static int | gMakeBoundCallbackTest9a |
Variable to verify that a callback has been called. More... | |
static int | gMakeBoundCallbackTest9b |
Variable to verify that a callback has been called. More... | |
static int | gMakeBoundCallbackTest9c |
Variable to verify that a callback has been called. More... | |
static int | gMakeBoundCallbackTest9d |
Variable to verify that a callback has been called. More... | |
Callback test suite.
Definition in file callback-test-suite.cc.
void BasicCallbackTarget5 | ( | ) |
Callback 5 target function.
Definition at line 114 of file callback-test-suite.cc.
References gBasicCallbackTest5.
Referenced by BasicCallbackTestCase::DoRun().
void BasicCallbackTarget6 | ( | int | ) |
Callback 6 target function.
Definition at line 123 of file callback-test-suite.cc.
References gBasicCallbackTest6.
Referenced by BasicCallbackTestCase::DoRun().
int BasicCallbackTarget7 | ( | int | a | ) |
Callback 6 target function.
a | The value passed by the callback. |
Definition at line 134 of file callback-test-suite.cc.
References gBasicCallbackTest7.
Referenced by BasicCallbackTestCase::DoRun().
int CallbackEqualityTarget | ( | double | a, |
int | b | ||
) |
Non-member function used to test equality of callbacks.
a | first argument |
b | second argument |
Definition at line 818 of file callback-test-suite.cc.
Referenced by CallbackEqualityTestCase::DoRun().
void MakeBoundCallbackTarget1 | ( | int | a | ) |
MakeBoundCallback 1 target function.
a | The value passed by the callback. |
Definition at line 487 of file callback-test-suite.cc.
References gMakeBoundCallbackTest1.
Referenced by MakeBoundCallbackTestCase::DoRun().
void MakeBoundCallbackTarget2 | ( | bool * | a | ) |
MakeBoundCallback 2 target function.
a | The value passed by the callback. |
Definition at line 497 of file callback-test-suite.cc.
References gMakeBoundCallbackTest2.
Referenced by MakeBoundCallbackTestCase::DoRun().
int MakeBoundCallbackTarget3 | ( | bool * | a, |
int | b | ||
) |
MakeBoundCallback 3 target function.
a | The value passed by the callback. |
b | The value passed by the callback. |
Definition at line 509 of file callback-test-suite.cc.
References gMakeBoundCallbackTest3a, and gMakeBoundCallbackTest3b.
Referenced by MakeBoundCallbackTestCase::DoRun().
void MakeBoundCallbackTarget4 | ( | int | a, |
int | b | ||
) |
MakeBoundCallback 4 target function.
a | The value passed by the callback. |
b | The value passed by the callback. |
Definition at line 522 of file callback-test-suite.cc.
References gMakeBoundCallbackTest4a, and gMakeBoundCallbackTest4b.
Referenced by MakeBoundCallbackTestCase::DoRun().
int MakeBoundCallbackTarget5 | ( | int | a, |
int | b | ||
) |
MakeBoundCallback 5 target function.
a | The value passed by the callback. |
b | The value passed by the callback. |
Definition at line 535 of file callback-test-suite.cc.
References gMakeBoundCallbackTest5a, and gMakeBoundCallbackTest5b.
Referenced by MakeBoundCallbackTestCase::DoRun().
int MakeBoundCallbackTarget6 | ( | int | a, |
int | b, | ||
int | c | ||
) |
MakeBoundCallback 5 target function.
a | The value passed by the callback. |
b | The value passed by the callback. |
c | The value passed by the callback. |
Definition at line 550 of file callback-test-suite.cc.
References gMakeBoundCallbackTest6a, gMakeBoundCallbackTest6b, and gMakeBoundCallbackTest6c.
Referenced by MakeBoundCallbackTestCase::DoRun().
void MakeBoundCallbackTarget7 | ( | int | a, |
int | b, | ||
int | c | ||
) |
MakeBoundCallback 7 target function.
a | The value passed by the callback. |
b | The value passed by the callback. |
c | The value passed by the callback. |
Definition at line 565 of file callback-test-suite.cc.
References gMakeBoundCallbackTest7a, gMakeBoundCallbackTest7b, and gMakeBoundCallbackTest7c.
Referenced by MakeBoundCallbackTestCase::DoRun().
int MakeBoundCallbackTarget8 | ( | int | a, |
int | b, | ||
int | c | ||
) |
MakeBoundCallback 8 target function.
a | The value passed by the callback. |
b | The value passed by the callback. |
c | The value passed by the callback. |
Definition at line 580 of file callback-test-suite.cc.
References gMakeBoundCallbackTest8a, gMakeBoundCallbackTest8b, and gMakeBoundCallbackTest8c.
Referenced by MakeBoundCallbackTestCase::DoRun().
int MakeBoundCallbackTarget9 | ( | int | a, |
int | b, | ||
int | c, | ||
int | d | ||
) |
MakeBoundCallback 5 target function.
a | The value passed by the callback. |
b | The value passed by the callback. |
c | The value passed by the callback. |
d | The value passed by the callback. |
Definition at line 597 of file callback-test-suite.cc.
References gMakeBoundCallbackTest9a, gMakeBoundCallbackTest9b, gMakeBoundCallbackTest9c, and gMakeBoundCallbackTest9d.
Referenced by MakeBoundCallbackTestCase::DoRun().
void MakeCallbackTarget5 | ( | ) |
MakeCallback 5 target function.
Definition at line 310 of file callback-test-suite.cc.
References gMakeCallbackTest5.
Referenced by MakeCallbackTestCase::DoRun().
void MakeCallbackTarget6 | ( | int | ) |
MakeCallback 6 target function.
Definition at line 319 of file callback-test-suite.cc.
References gMakeCallbackTest6.
Referenced by MakeCallbackTestCase::DoRun().
int MakeCallbackTarget7 | ( | int | a | ) |
MakeCallback 7 target function.
a | The value passed by the callback. |
Definition at line 330 of file callback-test-suite.cc.
References gMakeCallbackTest7.
Referenced by MakeCallbackTestCase::DoRun().
void TestFFive | ( | int | , |
int | , | ||
int | , | ||
int | , | ||
int | |||
) |
Test function - does nothing.
Definition at line 1032 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFFour | ( | int | , |
int | , | ||
int | , | ||
int | |||
) |
Test function - does nothing.
Definition at line 1031 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFOne | ( | int | ) |
Test function - does nothing.
Definition at line 1028 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFRFive | ( | int & | , |
int & | , | ||
int & | , | ||
int & | , | ||
int & | |||
) |
Test function - does nothing.
Definition at line 1039 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFRFour | ( | int & | , |
int & | , | ||
int & | , | ||
int & | |||
) |
Test function - does nothing.
Definition at line 1038 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFROne | ( | int & | ) |
Test function - does nothing.
Definition at line 1035 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFRSix | ( | int & | , |
int & | , | ||
int & | , | ||
int & | , | ||
int & | , | ||
int & | |||
) |
Test function - does nothing.
Definition at line 1040 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFRThree | ( | int & | , |
int & | , | ||
int & | |||
) |
Test function - does nothing.
Definition at line 1037 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFRTwo | ( | int & | , |
int & | |||
) |
Test function - does nothing.
Definition at line 1036 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFSix | ( | int | , |
int | , | ||
int | , | ||
int | , | ||
int | , | ||
int | |||
) |
Test function - does nothing.
Definition at line 1033 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFThree | ( | int | , |
int | , | ||
int | |||
) |
Test function - does nothing.
Definition at line 1030 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFTwo | ( | int | , |
int | |||
) |
Test function - does nothing.
Definition at line 1029 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFZero | ( | ) |
Test function - does nothing.
Definition at line 1027 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
|
static |
Static variable for test initialization.
Definition at line 1203 of file callback-test-suite.cc.
|
static |
Variable to verify that a callback has been called.
Definition at line 103 of file callback-test-suite.cc.
Referenced by BasicCallbackTarget5(), BasicCallbackTestCase::DoRun(), and BasicCallbackTestCase::DoSetup().
|
static |
Variable to verify that a callback has been called.
Definition at line 104 of file callback-test-suite.cc.
Referenced by BasicCallbackTarget6(), BasicCallbackTestCase::DoRun(), and BasicCallbackTestCase::DoSetup().
|
static |
Variable to verify that a callback has been called.
Definition at line 105 of file callback-test-suite.cc.
Referenced by BasicCallbackTarget7(), BasicCallbackTestCase::DoRun(), and BasicCallbackTestCase::DoSetup().
|
static |
Variable to verify that a callback has been called.
Definition at line 106 of file callback-test-suite.cc.
Referenced by BasicCallbackTestCase::DoRun(), and BasicCallbackTestCase::DoSetup().
|
static |
Variable to verify that a callback has been called.
Definition at line 455 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget1().
|
static |
Variable to verify that a callback has been called.
Definition at line 456 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget2().
|
static |
Variable to verify that a callback has been called.
Definition at line 457 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget3().
|
static |
Variable to verify that a callback has been called.
Definition at line 458 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget3().
|
static |
Variable to verify that a callback has been called.
Definition at line 459 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget4().
|
static |
Variable to verify that a callback has been called.
Definition at line 460 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget4().
|
static |
Variable to verify that a callback has been called.
Definition at line 461 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget5().
|
static |
Variable to verify that a callback has been called.
Definition at line 462 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget5().
|
static |
Variable to verify that a callback has been called.
Definition at line 463 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoSetup().
|
static |
Variable to verify that a callback has been called.
Definition at line 464 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget6().
|
static |
Variable to verify that a callback has been called.
Definition at line 465 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget6().
|
static |
Variable to verify that a callback has been called.
Definition at line 466 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget6().
|
static |
Variable to verify that a callback has been called.
Definition at line 467 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget7().
|
static |
Variable to verify that a callback has been called.
Definition at line 468 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget7().
|
static |
Variable to verify that a callback has been called.
Definition at line 469 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget7().
|
static |
Variable to verify that a callback has been called.
Definition at line 470 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget8().
|
static |
Variable to verify that a callback has been called.
Definition at line 471 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget8().
|
static |
Variable to verify that a callback has been called.
Definition at line 472 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget8().
|
static |
Variable to verify that a callback has been called.
Definition at line 473 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget9().
|
static |
Variable to verify that a callback has been called.
Definition at line 474 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget9().
|
static |
Variable to verify that a callback has been called.
Definition at line 475 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget9().
|
static |
Variable to verify that a callback has been called.
Definition at line 476 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget9().
|
static |
Variable to verify that a callback has been called.
Definition at line 300 of file callback-test-suite.cc.
Referenced by MakeCallbackTestCase::DoRun(), MakeCallbackTestCase::DoSetup(), and MakeCallbackTarget5().
|
static |
Variable to verify that a callback has been called.
Definition at line 301 of file callback-test-suite.cc.
Referenced by MakeCallbackTestCase::DoRun(), MakeCallbackTestCase::DoSetup(), and MakeCallbackTarget6().
|
static |
Variable to verify that a callback has been called.
Definition at line 302 of file callback-test-suite.cc.
Referenced by MakeCallbackTestCase::DoRun(), MakeCallbackTestCase::DoSetup(), and MakeCallbackTarget7().