Home
last modified time | relevance | path

Searched refs:EventCounter (Results 1 – 1 of 1) sorted by relevance

/frameworks/av/media/libstagefright/foundation/tests/
DAData_test.cpp40 struct EventCounter : public RefBase { struct
41 EventCounter(int *counter, int magic=1234) : mCounter(counter), mMagic(magic) { } in EventCounter() argument
42 virtual ~EventCounter() { ++*mCounter; mMagic = 0; } in ~EventCounter() argument
49 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 …]