MCPcopy Create free account
hub / github.com/cpputest/cpputest / EventComparator

Class EventComparator

examples/AllTests/EventDispatcherTest.cpp:45–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43};
44
45class EventComparator : public MockNamedValueComparator
46{
47public:
48 virtual bool isEqual(const void* object1, const void* object2)
49 {
50 return ((const Event*)object1)->type == ((const Event*)object2)->type;
51 }
52 virtual SimpleString valueToString(const void* object)
53 {
54 return StringFrom(((const Event*)object)->type);
55 }
56};
57
58
59TEST_GROUP(EventDispatcher)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected