Callback test suite. More...
#include "ns3/callback.h"#include "ns3/test.h"#include <stdint.h>
Include dependency graph for callback-test-suite.cc: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. | |
| void | BasicCallbackTarget6 (int) |
| Callback 6 target function. | |
| int | BasicCallbackTarget7 (int a) |
| Callback 6 target function. | |
| int | CallbackEqualityTarget (double a, int b) |
| Non-member function used to test equality of callbacks. | |
| void | MakeBoundCallbackTarget1 (int a) |
| MakeBoundCallback 1 target function. | |
| void | MakeBoundCallbackTarget2 (bool *a) |
| MakeBoundCallback 2 target function. | |
| int | MakeBoundCallbackTarget3 (bool *a, int b) |
| MakeBoundCallback 3 target function. | |
| void | MakeBoundCallbackTarget4 (int a, int b) |
| MakeBoundCallback 4 target function. | |
| int | MakeBoundCallbackTarget5 (int a, int b) |
| MakeBoundCallback 5 target function. | |
| int | MakeBoundCallbackTarget6 (int a, int b, int c) |
| MakeBoundCallback 5 target function. | |
| void | MakeBoundCallbackTarget7 (int a, int b, int c) |
| MakeBoundCallback 7 target function. | |
| int | MakeBoundCallbackTarget8 (int a, int b, int c) |
| MakeBoundCallback 8 target function. | |
| int | MakeBoundCallbackTarget9 (int a, int b, int c, int d) |
| MakeBoundCallback 5 target function. | |
| void | MakeCallbackTarget5 () |
| MakeCallback 5 target function. | |
| void | MakeCallbackTarget6 (int) |
| MakeCallback 6 target function. | |
| int | MakeCallbackTarget7 (int a) |
| MakeCallback 7 target function. | |
| void | TestFFive (int, int, int, int, int) |
| Test function - does nothing. | |
| void | TestFFour (int, int, int, int) |
| Test function - does nothing. | |
| void | TestFOne (int) |
| Test function - does nothing. | |
| void | TestFRFive (int &, int &, int &, int &, int &) |
| Test function - does nothing. | |
| void | TestFRFour (int &, int &, int &, int &) |
| Test function - does nothing. | |
| void | TestFROne (int &) |
| Test function - does nothing. | |
| void | TestFRSix (int &, int &, int &, int &, int &, int &) |
| Test function - does nothing. | |
| void | TestFRThree (int &, int &, int &) |
| Test function - does nothing. | |
| void | TestFRTwo (int &, int &) |
| Test function - does nothing. | |
| void | TestFSix (int, int, int, int, int, int) |
| Test function - does nothing. | |
| void | TestFThree (int, int, int) |
| Test function - does nothing. | |
| void | TestFTwo (int, int) |
| Test function - does nothing. | |
| void | TestFZero () |
| Test function - does nothing. | |
Variables | |
| static CallbackTestSuite | g_gallbackTestSuite |
| Static variable for test initialization. | |
| static bool | gBasicCallbackTest5 |
| Variable to verify that a callback has been called. | |
| static bool | gBasicCallbackTest6 |
| Variable to verify that a callback has been called. | |
| static bool | gBasicCallbackTest7 |
| Variable to verify that a callback has been called. | |
| static bool | gBasicCallbackTest8 |
| Variable to verify that a callback has been called. | |
| static bool | gMakeCallbackTest5 |
| Variable to verify that a callback has been called. | |
| static bool | gMakeCallbackTest6 |
| Variable to verify that a callback has been called. | |
| static bool | gMakeCallbackTest7 |
| Variable to verify that a callback has been called. | |
| static int | gMakeBoundCallbackTest1 |
| Variable to verify that a callback has been called. | |
| static bool * | gMakeBoundCallbackTest2 |
| Variable to verify that a callback has been called. | |
| static bool * | gMakeBoundCallbackTest3a |
| Variable to verify that a callback has been called. | |
| static int | gMakeBoundCallbackTest3b |
| Variable to verify that a callback has been called. | |
| static int | gMakeBoundCallbackTest4a |
| Variable to verify that a callback has been called. | |
| static int | gMakeBoundCallbackTest4b |
| Variable to verify that a callback has been called. | |
| static int | gMakeBoundCallbackTest5a |
| Variable to verify that a callback has been called. | |
| static int | gMakeBoundCallbackTest5b |
| Variable to verify that a callback has been called. | |
| static int | gMakeBoundCallbackTest5c |
| Variable to verify that a callback has been called. | |
| static int | gMakeBoundCallbackTest6a |
| Variable to verify that a callback has been called. | |
| static int | gMakeBoundCallbackTest6b |
| Variable to verify that a callback has been called. | |
| static int | gMakeBoundCallbackTest6c |
| Variable to verify that a callback has been called. | |
| static int | gMakeBoundCallbackTest7a |
| Variable to verify that a callback has been called. | |
| static int | gMakeBoundCallbackTest7b |
| Variable to verify that a callback has been called. | |
| static int | gMakeBoundCallbackTest7c |
| Variable to verify that a callback has been called. | |
| static int | gMakeBoundCallbackTest8a |
| Variable to verify that a callback has been called. | |
| static int | gMakeBoundCallbackTest8b |
| Variable to verify that a callback has been called. | |
| static int | gMakeBoundCallbackTest8c |
| Variable to verify that a callback has been called. | |
| static int | gMakeBoundCallbackTest9a |
| Variable to verify that a callback has been called. | |
| static int | gMakeBoundCallbackTest9b |
| Variable to verify that a callback has been called. | |
| static int | gMakeBoundCallbackTest9c |
| Variable to verify that a callback has been called. | |
| static int | gMakeBoundCallbackTest9d |
| Variable to verify that a callback has been called. | |
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().
Here is the caller graph for this function:| void BasicCallbackTarget6 | ( | int | ) |
Callback 6 target function.
Definition at line 123 of file callback-test-suite.cc.
References gBasicCallbackTest6.
Referenced by BasicCallbackTestCase::DoRun().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| void MakeCallbackTarget5 | ( | ) |
MakeCallback 5 target function.
Definition at line 310 of file callback-test-suite.cc.
References gMakeCallbackTest5.
Referenced by MakeCallbackTestCase::DoRun().
Here is the caller graph for this function:| void MakeCallbackTarget6 | ( | int | ) |
MakeCallback 6 target function.
Definition at line 319 of file callback-test-suite.cc.
References gMakeCallbackTest6.
Referenced by MakeCallbackTestCase::DoRun().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| void TestFFour | ( | int | , |
| int | , | ||
| int | , | ||
| int | |||
| ) |
Test function - does nothing.
Definition at line 1031 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
Here is the caller graph for this function:| void TestFOne | ( | int | ) |
Test function - does nothing.
Definition at line 1028 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| void TestFRFour | ( | int & | , |
| int & | , | ||
| int & | , | ||
| int & | |||
| ) |
Test function - does nothing.
Definition at line 1038 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
Here is the caller graph for this function:| void TestFROne | ( | int & | ) |
Test function - does nothing.
Definition at line 1035 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| void TestFRThree | ( | int & | , |
| int & | , | ||
| int & | |||
| ) |
Test function - does nothing.
Definition at line 1037 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
Here is the caller graph for this function:| void TestFRTwo | ( | int & | , |
| int & | |||
| ) |
Test function - does nothing.
Definition at line 1036 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| void TestFThree | ( | int | , |
| int | , | ||
| int | |||
| ) |
Test function - does nothing.
Definition at line 1030 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
Here is the caller graph for this function:| void TestFTwo | ( | int | , |
| int | |||
| ) |
Test function - does nothing.
Definition at line 1029 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
Here is the caller graph for this function:| void TestFZero | ( | ) |
Test function - does nothing.
Definition at line 1027 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
Here is the caller graph for this function:
|
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().