Searched refs:EventCounter (Results 1 – 1 of 1) sorted by relevance
40 struct EventCounter : public RefBase { struct41 EventCounter(int *counter, int magic=1234) : mCounter(counter), mMagic(magic) { } in EventCounter() argument42 virtual ~EventCounter() { ++*mCounter; mMagic = 0; } in ~EventCounter() argument49 struct DerivedCounter : public EventCounter {50 DerivedCounter(int *counter, int magic=1234) : EventCounter(counter, magic) { } in DerivedCounter()78 AUnion<EventCounter, EventCounter *> d; in TEST_F()81 d.emplace<EventCounter>(&destructions); in TEST_F()82 d.del<EventCounter>(); in TEST_F()85 EventCounter *ctr = new EventCounter(&destructions); in TEST_F()86 d.emplace<EventCounter *>(ctr); in TEST_F()[all …]