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. | |
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 103 of file callback-test-suite.cc.
References gBasicCallbackTest5.
Referenced by BasicCallbackTestCase::DoRun().
void BasicCallbackTarget6 | ( | int | ) |
Callback 6 target function.
Definition at line 112 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 123 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 807 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 476 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 486 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 498 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 511 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 524 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 539 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 554 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 569 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 586 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 299 of file callback-test-suite.cc.
References gMakeCallbackTest5.
Referenced by MakeCallbackTestCase::DoRun().
void MakeCallbackTarget6 | ( | int | ) |
MakeCallback 6 target function.
Definition at line 308 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 319 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 1021 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFFour | ( | int | , |
int | , | ||
int | , | ||
int | ) |
Test function - does nothing.
Definition at line 1020 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFOne | ( | int | ) |
Test function - does nothing.
Definition at line 1017 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFRFive | ( | int & | , |
int & | , | ||
int & | , | ||
int & | , | ||
int & | ) |
Test function - does nothing.
Definition at line 1028 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFRFour | ( | int & | , |
int & | , | ||
int & | , | ||
int & | ) |
Test function - does nothing.
Definition at line 1027 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFROne | ( | int & | ) |
Test function - does nothing.
Definition at line 1024 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 1029 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFRThree | ( | int & | , |
int & | , | ||
int & | ) |
Test function - does nothing.
Definition at line 1026 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFRTwo | ( | int & | , |
int & | ) |
Test function - does nothing.
Definition at line 1025 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 1022 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFThree | ( | int | , |
int | , | ||
int | ) |
Test function - does nothing.
Definition at line 1019 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFTwo | ( | int | , |
int | ) |
Test function - does nothing.
Definition at line 1018 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFZero | ( | ) |
Test function - does nothing.
Definition at line 1016 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
|
static |
Static variable for test initialization.
Definition at line 1192 of file callback-test-suite.cc.
|
static |
Variable to verify that a callback has been called.
Definition at line 92 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 93 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 94 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 95 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 444 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 445 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 446 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 447 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 448 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 449 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 450 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 451 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 452 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoSetup().
|
static |
Variable to verify that a callback has been called.
Definition at line 453 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 454 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 455 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 456 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 457 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 458 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 459 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 460 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 461 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 462 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 463 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 464 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 465 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 289 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 290 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 291 of file callback-test-suite.cc.
Referenced by MakeCallbackTestCase::DoRun(), MakeCallbackTestCase::DoSetup(), and MakeCallbackTarget7().