Callback test suite. More...
#include "ns3/test.h"
#include "ns3/callback.h"
#include <stdint.h>
Go to the source code of this file.
Classes | |
class | BasicCallbackTestCase |
Test the basic Callback mechanism. 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 (void) |
Callback 5 target function. More... | |
void | BasicCallbackTarget6 (int) |
Callback 6 target function. More... | |
int | BasicCallbackTarget7 (int a) |
Callback 6 target function. 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 (void) |
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 (void) |
Test function - does nothing. More... | |
Variables | |
static CallbackTestSuite | g_gallbackTestSuite |
Static variable for test initialization. More... | |
static bool | gBasicCallbackTest5 |
Variable to verify that a calback has been called. More... | |
static bool | gBasicCallbackTest6 |
Variable to verify that a calback has been called. More... | |
static bool | gBasicCallbackTest7 |
Variable to verify that a calback has been called. More... | |
static bool | gMakeCallbackTest5 |
Variable to verify that a calback has been called. More... | |
static bool | gMakeCallbackTest6 |
Variable to verify that a calback has been called. More... | |
static bool | gMakeCallbackTest7 |
Variable to verify that a calback has been called. More... | |
static int | gMakeBoundCallbackTest1 |
Variable to verify that a calback has been called. More... | |
static bool * | gMakeBoundCallbackTest2 |
Variable to verify that a calback has been called. More... | |
static bool * | gMakeBoundCallbackTest3a |
Variable to verify that a calback has been called. More... | |
static int | gMakeBoundCallbackTest3b |
Variable to verify that a calback has been called. More... | |
static int | gMakeBoundCallbackTest4a |
Variable to verify that a calback has been called. More... | |
static int | gMakeBoundCallbackTest4b |
Variable to verify that a calback has been called. More... | |
static int | gMakeBoundCallbackTest5a |
Variable to verify that a calback has been called. More... | |
static int | gMakeBoundCallbackTest5b |
Variable to verify that a calback has been called. More... | |
static int | gMakeBoundCallbackTest5c |
Variable to verify that a calback has been called. More... | |
static int | gMakeBoundCallbackTest6a |
Variable to verify that a calback has been called. More... | |
static int | gMakeBoundCallbackTest6b |
Variable to verify that a calback has been called. More... | |
static int | gMakeBoundCallbackTest6c |
Variable to verify that a calback has been called. More... | |
static int | gMakeBoundCallbackTest7a |
Variable to verify that a calback has been called. More... | |
static int | gMakeBoundCallbackTest7b |
Variable to verify that a calback has been called. More... | |
static int | gMakeBoundCallbackTest7c |
Variable to verify that a calback has been called. More... | |
static int | gMakeBoundCallbackTest8a |
Variable to verify that a calback has been called. More... | |
static int | gMakeBoundCallbackTest8b |
Variable to verify that a calback has been called. More... | |
static int | gMakeBoundCallbackTest8c |
Variable to verify that a calback has been called. More... | |
static int | gMakeBoundCallbackTest9a |
Variable to verify that a calback has been called. More... | |
static int | gMakeBoundCallbackTest9b |
Variable to verify that a calback has been called. More... | |
static int | gMakeBoundCallbackTest9c |
Variable to verify that a calback has been called. More... | |
static int | gMakeBoundCallbackTest9d |
Variable to verify that a calback has been called. More... | |
Callback test suite.
Definition in file callback-test-suite.cc.
void BasicCallbackTarget5 | ( | void | ) |
Callback 5 target function.
Definition at line 107 of file callback-test-suite.cc.
References gBasicCallbackTest5.
Referenced by BasicCallbackTestCase::DoRun().
void BasicCallbackTarget6 | ( | int | ) |
Callback 6 target function.
Definition at line 116 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 127 of file callback-test-suite.cc.
References gBasicCallbackTest7.
Referenced by BasicCallbackTestCase::DoRun().
void MakeBoundCallbackTarget1 | ( | int | a | ) |
MakeBoundCallback 1 target function.
a | The value passed by the callback. |
Definition at line 446 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 456 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 468 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 481 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 494 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 509 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 524 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 539 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 556 of file callback-test-suite.cc.
References gMakeBoundCallbackTest9a, gMakeBoundCallbackTest9b, gMakeBoundCallbackTest9c, and gMakeBoundCallbackTest9d.
Referenced by MakeBoundCallbackTestCase::DoRun().
void MakeCallbackTarget5 | ( | void | ) |
MakeCallback 5 target function.
Definition at line 286 of file callback-test-suite.cc.
References gMakeCallbackTest5.
Referenced by MakeCallbackTestCase::DoRun().
void MakeCallbackTarget6 | ( | int | ) |
MakeCallback 6 target function.
Definition at line 295 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 306 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 776 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFFour | ( | int | , |
int | , | ||
int | , | ||
int | |||
) |
Test function - does nothing.
Definition at line 775 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFOne | ( | int | ) |
Test function - does nothing.
Definition at line 772 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFRFive | ( | int & | , |
int & | , | ||
int & | , | ||
int & | , | ||
int & | |||
) |
Test function - does nothing.
Definition at line 783 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFRFour | ( | int & | , |
int & | , | ||
int & | , | ||
int & | |||
) |
Test function - does nothing.
Definition at line 782 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFROne | ( | int & | ) |
Test function - does nothing.
Definition at line 779 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 784 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFRThree | ( | int & | , |
int & | , | ||
int & | |||
) |
Test function - does nothing.
Definition at line 781 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFRTwo | ( | int & | , |
int & | |||
) |
Test function - does nothing.
Definition at line 780 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 777 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFThree | ( | int | , |
int | , | ||
int | |||
) |
Test function - does nothing.
Definition at line 774 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFTwo | ( | int | , |
int | |||
) |
Test function - does nothing.
Definition at line 773 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
void TestFZero | ( | void | ) |
Test function - does nothing.
Definition at line 771 of file callback-test-suite.cc.
Referenced by MakeCallbackTemplatesTestCase::DoRun().
|
static |
Static variable for test initialization.
Definition at line 942 of file callback-test-suite.cc.
|
static |
Variable to verify that a calback has been called.
Definition at line 98 of file callback-test-suite.cc.
Referenced by BasicCallbackTarget5(), BasicCallbackTestCase::DoRun(), and BasicCallbackTestCase::DoSetup().
|
static |
Variable to verify that a calback has been called.
Definition at line 99 of file callback-test-suite.cc.
Referenced by BasicCallbackTarget6(), BasicCallbackTestCase::DoRun(), and BasicCallbackTestCase::DoSetup().
|
static |
Variable to verify that a calback has been called.
Definition at line 100 of file callback-test-suite.cc.
Referenced by BasicCallbackTarget7(), BasicCallbackTestCase::DoRun(), and BasicCallbackTestCase::DoSetup().
|
static |
Variable to verify that a calback has been called.
Definition at line 415 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget1().
|
static |
Variable to verify that a calback has been called.
Definition at line 416 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget2().
|
static |
Variable to verify that a calback has been called.
Definition at line 417 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget3().
|
static |
Variable to verify that a calback has been called.
Definition at line 418 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget3().
|
static |
Variable to verify that a calback has been called.
Definition at line 419 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget4().
|
static |
Variable to verify that a calback has been called.
Definition at line 420 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget4().
|
static |
Variable to verify that a calback has been called.
Definition at line 421 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget5().
|
static |
Variable to verify that a calback has been called.
Definition at line 422 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget5().
|
static |
Variable to verify that a calback has been called.
Definition at line 423 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoSetup().
|
static |
Variable to verify that a calback has been called.
Definition at line 424 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget6().
|
static |
Variable to verify that a calback has been called.
Definition at line 425 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget6().
|
static |
Variable to verify that a calback has been called.
Definition at line 426 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget6().
|
static |
Variable to verify that a calback has been called.
Definition at line 427 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget7().
|
static |
Variable to verify that a calback has been called.
Definition at line 428 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget7().
|
static |
Variable to verify that a calback has been called.
Definition at line 429 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget7().
|
static |
Variable to verify that a calback has been called.
Definition at line 430 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget8().
|
static |
Variable to verify that a calback has been called.
Definition at line 431 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget8().
|
static |
Variable to verify that a calback has been called.
Definition at line 432 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget8().
|
static |
Variable to verify that a calback has been called.
Definition at line 433 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget9().
|
static |
Variable to verify that a calback has been called.
Definition at line 434 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget9().
|
static |
Variable to verify that a calback has been called.
Definition at line 435 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget9().
|
static |
Variable to verify that a calback has been called.
Definition at line 436 of file callback-test-suite.cc.
Referenced by MakeBoundCallbackTestCase::DoRun(), MakeBoundCallbackTestCase::DoSetup(), and MakeBoundCallbackTarget9().
|
static |
Variable to verify that a calback has been called.
Definition at line 277 of file callback-test-suite.cc.
Referenced by MakeCallbackTestCase::DoRun(), MakeCallbackTestCase::DoSetup(), and MakeCallbackTarget5().
|
static |
Variable to verify that a calback has been called.
Definition at line 278 of file callback-test-suite.cc.
Referenced by MakeCallbackTestCase::DoRun(), MakeCallbackTestCase::DoSetup(), and MakeCallbackTarget6().
|
static |
Variable to verify that a calback has been called.
Definition at line 279 of file callback-test-suite.cc.
Referenced by MakeCallbackTestCase::DoRun(), MakeCallbackTestCase::DoSetup(), and MakeCallbackTarget7().