Functions | |
template<typename T > | |
void | TracedValueCbSink (T oldValue, T newValue) |
Template for TracedValue sink functions. More... | |
template<> | |
void | TracedValueCbSink< SequenceNumber32 > (SequenceNumber32 oldValue, SequenceNumber32 newValue) |
TracedValueCbSink specialization for SequenceNumber32. More... | |
template<> | |
void | TracedValueCbSink< Time > (Time oldValue, Time newValue) |
TracedValueCbSink specialization for Time. More... | |
Stringify the known TracedValue type names. | |
| |
template<typename T > | |
std::string | TypeName (void) |
template<> | |
std::string | TypeName< bool > (void) |
template<> | |
std::string | TypeName< int8_t > (void) |
template<> | |
std::string | TypeName< int16_t > (void) |
template<> | |
std::string | TypeName< int32_t > (void) |
template<> | |
std::string | TypeName< uint8_t > (void) |
template<> | |
std::string | TypeName< uint16_t > (void) |
template<> | |
std::string | TypeName< uint32_t > (void) |
template<> | |
std::string | TypeName< double > (void) |
template<> | |
std::string | TypeName< Time > (void) |
template<> | |
std::string | TypeName< SequenceNumber32 > (void) |
Variables | |
std::string | g_Result = "" |
Result of callback test. More... | |
void anonymous_namespace{traced-value-callback-typedef-test-suite.cc}::TracedValueCbSink | ( | T | oldValue, |
T | newValue | ||
) |
Template for TracedValue sink functions.
This generates a sink function for any underlying type.
T | [explicit] The type of the value being traced. Since the point of this template is to create a sink function, the template type must be given explicitly. |
[in] | oldValue | The original value. |
[in] | newValue | The new value. |
Definition at line 75 of file traced-value-callback-typedef-test-suite.cc.
void anonymous_namespace{traced-value-callback-typedef-test-suite.cc}::TracedValueCbSink< SequenceNumber32 > | ( | SequenceNumber32 | oldValue, |
SequenceNumber32 | newValue | ||
) |
TracedValueCbSink specialization for SequenceNumber32.
Definition at line 101 of file traced-value-callback-typedef-test-suite.cc.
void anonymous_namespace{traced-value-callback-typedef-test-suite.cc}::TracedValueCbSink< Time > | ( | Time | oldValue, |
Time | newValue | ||
) |
TracedValueCbSink specialization for Time.
Definition at line 92 of file traced-value-callback-typedef-test-suite.cc.
|
inline |
Definition at line 36 of file traced-value-callback-typedef-test-suite.cc.
|
inline |
Definition at line 38 of file traced-value-callback-typedef-test-suite.cc.
|
inline |
Definition at line 45 of file traced-value-callback-typedef-test-suite.cc.
|
inline |
Definition at line 40 of file traced-value-callback-typedef-test-suite.cc.
|
inline |
Definition at line 41 of file traced-value-callback-typedef-test-suite.cc.
|
inline |
Definition at line 39 of file traced-value-callback-typedef-test-suite.cc.
|
inline |
Definition at line 47 of file traced-value-callback-typedef-test-suite.cc.
|
inline |
Definition at line 46 of file traced-value-callback-typedef-test-suite.cc.
|
inline |
Definition at line 43 of file traced-value-callback-typedef-test-suite.cc.
|
inline |
Definition at line 44 of file traced-value-callback-typedef-test-suite.cc.
|
inline |
Definition at line 42 of file traced-value-callback-typedef-test-suite.cc.
std::string anonymous_namespace{traced-value-callback-typedef-test-suite.cc}::g_Result = "" |
Result of callback test.
Since the sink function is outside the invoking class, which in this case is TracedValueCallbackTestCase, we can't use the test macros directly. Instead, we cache the result in the g_Result
global value, then inspect it in the TracedValueCallbackTestCase::CheckType method.
Definition at line 60 of file traced-value-callback-typedef-test-suite.cc.
Referenced by TracedValueCallbackTestCase::CheckType(), and TracedValueCallbackTestCase::CheckTvCb< T >::Invoke().